By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,253 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,253 IT Pros & Developers. It's quick & easy.

Youtube embedded code problem ie8

100+
P: 150
I have two problems with YouTube embedded code:
Expand|Select|Wrap|Line Numbers
  1. <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">
  2.         <param name="allowFullScreen" value="true"></param>
  3.         <param name="wmode" value="opaque"></param>
  4.         <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>
  5.         <param name="allowScriptAccess" value="always"></param>
  6.         <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>
  7.       </object>
  8.  
to the player i use this code:
Expand|Select|Wrap|Line Numbers
  1. var ytplayer = $('object')[0];
  2. // play
  3. ytplayer.playVideo();
  4.  
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=opaque", this problem appear in chrome and ie.
Dec 12 '11 #1

✓ answered by acoder

See if the following link helps (at least for the 1st question):
http://code.google.com/apis/youtube/...html#Embedding

Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
See if the following link helps (at least for the 1st question):
http://code.google.com/apis/youtube/...html#Embedding
Dec 16 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.