XML YouTube Player Gallery
Price: $27.00
Flash Player Version: 8
Swishmax Version: Swishmax2, 2008.08.12
Comments: 11 comments
A Powerfull custom YouTube Player Gallery, powered by Youtube player API and XML.
You can now display YouTube videos on your website with a gallery that looks like your site’s design.
You just need to add the YouTube video code, video title and, if you like, a description for the video.
Example:
1 2 3 4 5 | <video> <videoTitle>PearlJam - The Fixer</videoTitle> <youtubeCode>PdF1Rqet9E8</youtubeCode> <description>Nice song from PearlJam</description> </video> |
You can change its appearance just by editing the XML file… something like this:
1 2 3 4 5 6 7 8 9 10 11 | defaultVolume = "85" buttonsColor="0xebebeb" buttonsOverColor="0x353535" iconsColor="0x353535" iconsOverColor="0x94e100" barsColor="0x94e100" row1Color="0xebebeb" row2Color="0xcacaca" selectedMovieThumb="0x94e100" descriptionColor="0x555555" titleColor="0x000000" |


hi, does this work with swishmax3?
I haven’t tested it with SM3 (personally, I don’t use SM3 yet because it’s still very buggy), but it shell work with no problems!
Can this player be embedded in a swish movie ?
loadMovie(”YouTube-XML-Video-Gallery-1.swf”); …etc… ?
tks
Yes, it can!
Yes it can ?
Well, so I brought it… but to load it into another swish seems difficult : a lot of scripts are resizing it according to Stage.height …etc.. , and, when loaded in another one, it’s a mess.
Is there a version whithout this kind of scaling mode ?
Tks.
Another problem : when embedded in another swish, if you leave the scene where your player is, without stopping it, the sound continues to play, even if you go back to the video scene : no way to stop it.
Please tell me how to correct this problem too.
Tks
Well, you need to play with the script depending on what you need.
“no way to stop it”…
When unloading a YouTube player, you should always call destroy() first. This will close the NetStream object and stop the video from continuing to download even after the player has been unloaded. It will also remove references to the player SWF so if you load a new player SWF into your application, the new SWF can load and initialize properly.
Read more about it here:
http://code.google.com/apis/youtube/flash_api_reference_as2.html
Well, so far, i’m fighting to improve…
Now, i’ve a problem that you can check even with your example :
Load your example page… then , try to reload the page : the playing list seems to be freezed.
How can I (and can you) get rid of it ?
Tks
I’ve opened the page and refreshed 3 times… no freezing there!
Maybe it’s better if you send me your files so I can take a look.
mail them to support@theswishdock.com
Be sure to explain what you need to do.
So, problem found…. There’s a refresh problem with IE8 (even with your page), vhen reloaded, it looks like that :
http://zeubest.free.fr/argh.jpg
Problem solved using php instead of html, by adding a rand to the call of the swf :
…/…
var mainswf = new SWFObject(”", “youtube”, “788″, “365″, “8″, “#222222″);
mainswf.addParam(”scale”, “noscale”);
…/…
Now, I go back to fight with the prior embedding problem.
Tks.
Nice Focus….
I really like the direction you’ve decided to take this blog….