AbstractMediaPlayer player = null;
PlayerParameters pp = new PlayerParameters();
pp.setAutoplay(autoplay);
if (playerName.equals("YouTube")) {
player = new YouTubePlayer(videoId, width, height);
player.setConfigParameter(YouTubeConfigParameter.URLParameters, pp);
} else if (playerName.equals("Chromeless")) {
player = new ChromelessPlayer(videoId, width, height);
player.setConfigParameter(YouTubeConfigParameter.URLParameters, pp);
} else if (playerName.equals("IYouTube")) {