public AbstractMediaPlayer getPlayer(String playerName, String mediaURL, boolean autoplay, String height, String width)
throws PluginNotFoundException, PluginVersionException {
if (playerName.equals(FLASH_PLAYER)) {
return new VimeoFlashPlayer(mediaURL, autoplay, width, height);
} else if (playerName.equals(UNIVERSAL_PLAYER)) {
return new VimeoUniversalPlayer(mediaURL, autoplay, width, height);
} else {
throw new IllegalArgumentException("Player '" + playerName + "' not known to this provider");
}
}