hi im trying to embed youtube video using jsapi like this

<object id="myytplayer" style="height: 390px; width: 640px">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?
version=3?
version=3&enablejsapi=1&playerapiid=ytplayer&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<embed  src="http://www.youtube.com/v/u1zgFlCw8Aw?version=3?
version=3&enablejsapi=1&playerapiid=ytplayer&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded"
type="application/x-shockwave-flash" allowfullscreen="true"
allowScriptAccess="always" width="425" height="344"></object>

not using swf.object,its possible in this case to use jsapi function
like for example

function play() {
   ytplayer = document.getElementById("myytplayer");

  if (ytplayer) {
    ytplayer.playVideo();
  }
}

<a href="javascript:void(0);" onclick="play();">Play</a>
because it doesn t work for me anyone have any suggestions or
solutions?jsapi functions can work only with swf.object embed?
thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to