You should check out the Youtube API for the Chromeless player:
http://code.google.com/apis/youtube/chromeless_player_reference.html


Here is an example page which allows you to load a new video via js/ the
API:
http://code.google.com/apis/youtube/chromeless_example_1.html


Aran 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of bcweed
Sent: Wednesday, 19 November 2008 3:17 PM
To: SWFObject
Subject: how can I instruct the you tube player embeded thru javascript
which video to play, and then change the video to another one?‏


how can I instruct the you tube player embeded thru javascript which
video to play, and then change the video to another one?

I am not an Javascript expert but I have figurd out how to embed a
player and make it play 1 video.


But then once that video has played, the player remains on the page.
So I really need to know how to make the player go away?


and also maybe how then Could I make that same player play a
different
video? How could I instruct it to play a different video than the one
it just played?


or again, since I know how to embed a video on the page and make it
play a video thru javascript, then how can I make this player go away
at the end, to then be able to embed another player with a defferent
video on the page?


Because like I said can make a player appear on the page playing a
video by calling this function VideoIt():


function VideoIt(){
              var params = { allowScriptAccess: "always" };
          var atts = { id: "myytplayer" };
      swfobject.embedSWF("http://www.youtube.com/v/
ma9I9VBKPiw&border=0&enablejsapi=1&playerapiid=ytplayer",
                         "ytapiplayer", "425", "344", "8", null,
null,
params, atts);



}


but the problem is that at the end it remains on the page. so if I
want to then play another video, I either want to instruct the same
player to play that video, or make that player disapear and go away
and embed another different player with a different video on the page

either or, I have no idea how to do this...


Can anyone shed light please?


Marc




--~--~---------~--~----~------------~-------~--~----~
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