Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

youtube video and youtube playlist in same player

8 replies [Last post]

i have a question can we play youtube video and youtube playlist in same player. if i give id for youtube playlist it play the playlist and if i give id of single youtube video it should play youtube video

this is the code i am using

<div name="mediaspace" id="mediaspace">
<script type="text/javascript">
var so = new SWFObject('/Alex/player-viral.swf', 'mpl', '900', '500', '9.0.124');
so.addParam('allowscriptaccess', 'always');
so.addParam('allowfullscreen', 'true');
so.addParam('allownetworking', 'all');
so.addParam('wmode','opaque');
so.addVariable('plugins', 'ltas');
so.addVariable('ltas.cc', 'otkezbljgtyshnv');
//...playlist
so.addVariable('file', 'http://gdata.youtube.com/feeds/api/playlists/<?php echo $_GET[url]; ?>');
//...single item
//so.addVariable('file', 'http://www.youtube.com/watch?v=<?php echo $_GET[url]; ?>');
so.addVariable('playlist', 'right');
so.addVariable('playlistsize', '200');
so.addVariable('skin', '/Alex/snel.swf');
so.write('mediaspace');
</script>
</DIV>

thanks let me know.

youtube playlist works fine but when i give id for youtube single video it does not work

Can you provide a link to where you are running this? Thank you.

this is my website can u tell me anything wrong with code

You didn't provide a link to your website...

why u want to know the website link i want to find any problem with code.

A link to your website lets take a look at your actual implementation which gives us context and helps us to debug your problem.

plz set my youetube

Rashid, we cannot help you with this.