my apologies. you are right when you say: "On the example page, just paste in another YouTube video ID like 22bS3WLWPpE into the load video input field, and then press the load video button. The video will be replaced.
This is calling the loadVideoById() function as described on the API page I linked you to." but then again this is exactly what I was after and I guess this was the right way to get to it.. thanks you hve given me lots to work with now... On Nov 19, 1:59 am, "Aran Rhee" <[EMAIL PROTECTED]> wrote: > On the example page, just paste in another YouTube video ID like 22bS3WLWPpE > into the load video input field, and then press the load video button. The > video will be replaced. > > This is calling the loadVideoById() function as described on the API page I > linked you to. > > To unload a video, you call clearVideo() which will remove the actual video > from the player. If you want to hide the player itself, you can set the > visibility of the <div> via CSS etc > (http://www.w3schools.com/CSS/pr_class_visibility.asp- > object.style.visibility="hidden" ) > > Perhaps a bit more of a thorough read / test is required... > > RE: to finding the project - it is the #1 entry for "swfobject 2" in Google > and #3 for "swfobject" (after Geoff's swfobject v1.5 pages which link to the > 2.0 project pages anyhow). The Google code project is the "real source" for > swfobject. What were you expecting :) ? > > In regards to how to implement the specifics of the YouTube API etc, that is > really out of the scope of the swfobject lists. We are here to try to help > out people with their swfobject issues, not project specific Flash / js > implementations. If you need to learn javascript to complete your project > there are many resources on the web which are available. > > Aran > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bcweed > Sent: Wednesday, 19 November 2008 3:55 PM > To: SWFObject > Subject: Re: how can I instruct the you tube player embeded thru javascript > which video to play, and then change the video to another one? > > 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 -- 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 -~----------~----~----~----~------~----~------~--~---
