@Override
public AbstractMediaPlayer getPlayer(String playerName, String mediaURL, boolean autoplay, String height, String width)
throws PluginNotFoundException, PluginVersionException {
if (playerName.equals("Capsule")) {
try {
return new Capsule(mediaURL, autoplay);
} catch (LoadException ex) {
throw new IllegalStateException(ex);
}
} else if (playerName.equals("FlatVideoPlayer")) {
try {