thank you.

but I already got that. I already figured out how to embed a player
onmy page and mek it play that 1 simgle video.... I got that from the
same sample you sent me.
But how then can I make it play a diferentvideo? or make the player go
away to then embed a new player with a DIFFERENT video?

Also the API to which you point to has really NO information about
this.
it barely explains how to embed a p[layer on the page and then it
elaborates aboyut simple commands like, play, stop, pause etc...

there is nothing like Paythatvideo(), or unloadthatvideo() and then
Loadthatspecificvideo() etc...

this in itself is disapointing... but there is the real source for the
SWFobject which I dont know why it is not easyer to find that groop
(it took me some work to accidently come accross it)
http://code.google.com/p/swfobject/

but all this is much too complicated for me. I am not a javascript
expert... remember?

I just need a simple example or sample code

On Nov 18, 8:38 pm, "Aran Rhee" <[EMAIL PROTECTED]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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