I have two problems with YouTube embedded code:
to the player i use this code:
problems :
1- in Firefox this code work's OK with no problems at all, put in ie8 i get this error "Object doesn't support this property or method".
2- when i use FancyBox the YouTube player overlap with it even i added the "wmode=opaq ue", this problem appear in chrome and ie.
Code:
<object id="selected-box_11027" width="460" height="330" data="http://www.youtube.com/v/We-eNqzmtEw?feature=player_embedded&enablejsapi=1&playerapiid=selected-box_11027&version=8&rel=1&fs=1&wmode=opaque"> <param name="allowFullScreen" value="true"></param> <param name="wmode" value="opaque"></param> <param name="movie" value="http://www.youtube.com/v/We-eNqzmtEw?feature=player_embedded&enablejsapi=1&playerapiid=selected-box_11027&version=8&rel=1&fs=1&wmode=opaque"></param> <param name="allowScriptAccess" value="always"></param> <embed width="460" height="330" src="http://www.youtube.com/v/We-eNqzmtEw?feature=player_embedded&enablejsapi=1&playerapiid=selected-box_11027&version=8&rel=1&fs=1&wmode=opaque" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="opaque"></embed> </object>
Code:
var ytplayer = $('object')[0]; // play ytplayer.playVideo();
1- in Firefox this code work's OK with no problems at all, put in ie8 i get this error "Object doesn't support this property or method".
2- when i use FancyBox the YouTube player overlap with it even i added the "wmode=opaq ue", this problem appear in chrome and ie.
Comment