hiimnalaa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

allowFullScreen NOT working for YouTube Videos, regardless of browser #490

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The problem can be seen here:  http://video.healthhaven.com

Everything else seems to work as expected.

The code...

<script type="text/javascript">
var row = "<%response.write(row)%>";
var replaceID = "ytapiplayer";
var params = { allowScriptAccess: "always", wmode: "window", allowFullScreen: 
"true" };
var atts = { id: 'player'+row };
var flashVars = params;
var installURL = "/swfobject/expressInstall.swf";
var videoWidth = "640";
var videoHeight = "385";
var minVersion = "8";
var videoID = "<%response.write(videoID)%>";
var videoURL = 
"http://www.youtube.com/v/"+videoID+"?enablejsapi=1&playerapiid=ytplayer"+row;
swfobject.embedSWF(videoURL, replaceID, videoWidth, videoHeight, minVersion, 
installURL, flashVars, params, atts);
</script>

function onYouTubePlayerReady(playerId) {
try{
ytplayer1 = document.getElementById('player1');
ytplayer2 = document.getElementById('player2');
ytplayer3 = document.getElementById('player3');
ytplayer4 = document.getElementById('player4');
ytplayer5 = document.getElementById('player5');
ytplayer6 = document.getElementById('player6');
ytplayer7 = document.getElementById('player7');
ytplayer8 = document.getElementById('player8');
ytplayer9 = document.getElementById('player9');
ytplayer10 = document.getElementById('player10');
ytplayer11 = document.getElementById('player11');
ytplayer12 = document.getElementById('player12');
ytplayer13 = document.getElementById('player13');
ytplayer14 = document.getElementById('player14');
ytplayer15 = document.getElementById('player15');
ytplayer16 = document.getElementById('player16');
ytplayer17 = document.getElementById('player17');
ytplayer18 = document.getElementById('player18');
ytplayer19 = document.getElementById('player19');
ytplayer20 = document.getElementById('player20');
}catch(err){}

}

Original issue reported on code.google.com by rebel.fo...@gmail.com on 7 Aug 2010 at 9:36

GoogleCodeExporter commented 9 years ago
Add simpler version of the same problem can be seen here: 
http://video.healthhaven.com/test.aspx

Original comment by rebel.fo...@gmail.com on 8 Aug 2010 at 12:17

GoogleCodeExporter commented 9 years ago
Your videos displayed full-screen when I clicked the YouTube playbar's 
'full-screen' button. Plus you're using the YouTube API to handle full-screen 
mode, which is not a part of SWFObject.  I am concluding this is not a 
SWFObject bug and am closing this ticket. If you feel the ticket should remain 
open, please post a reply.

Thanks

Original comment by platelu...@gmail.com on 8 Nov 2010 at 6:40