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

Forums

/

How to Pull Video from Two Different Sources??

5 replies [Last post]

Hi All,
I'm working on a JW player set up for a friend who wants her player to pull all videos from her YouTube user profile, PLUS play videos she's uploaded to her web site using a playlist.xml.

I know how to set up a JW player that pulls from YouTube, and I know how to set up a JW player that pulls from a playlist.xml. I just have no idea how to
tell the player to do both.

Any tips on what parameters to use to make this work?

I'd be so grateful for your help!

Kelli

Do you want to have two separate playlists with a method for the user to select one of them or everything in one playlist?

For the YouTube videos, your friend should create a YouTube playlist(s), then you can just load the YouTube playlist(s) directly into the JW FLV Media Player.

LefTy
Thanks a million for your response! I've seen your amazing answers to some of the other posters in this forum and was hoping you might answer my question:)

Okay, so here's what I know:

To pull from YouTube, I could use code like this:
<script type="text/javascript">
var so = new SWFObject('/MediaPlayer/player.swf','mpl','650','354','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://gdata.youtube.com/feeds/api/users/pulsepointdesign/uploads?orderby=updated&playlist=right&pla...');
so.write('player');
</script>

To pull from an xml playlist I could use code like this:
<script type='text/javascript'>
var s1 = new SWFObject('/mediaplayer/player.swf','ply','660','350','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('autoscroll','true');
s1.addParam('frontcolor','3d9f9a');
s1.addParam('lightcolor','81421a');
s1.addParam('screencolor','000000');
s1.addParam('usefullscreen','false');
s1.addParam('thumbsinplaylist','false');
s1.addParam('flashvars','file=/mediaplayer/playlist.xml&playlist=right&playlistsize=330&thumbsinplaylist=false&shuffle=true&stretching=none&skin=/mediaplayer/kleur.swf');
s1.write('preview');
</script>

But how do I set up the addParam, if I wanted one player to pull from two locations?

I'd love to hear your suggestions!

Kelli

You can't load two different playlists at the same time. You will have to have a links, images, buttons, or whatever, to load the selected playlist.

Just takes a bit of JavaScript. Do you want to do that?

Maybe something simple like we did here a long time ago:

      http://www.longtailvideo.com/support/forum/Setup-Problems/10095/Help-with-installing-media-player-3-...

LefTy,

Hmmm, what about this:

Is it possible to call a YouTube stream from an existing playlist.xml?

So that instead of calling a specific video, you're calling a stream of videos from YouTube, plus your other content?

Like this:
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>

<track>
<title>If Tomorrow Never Comes Interview</title>
<creator>Marlo Schalesky</creator>
<location>http://www.marloschalesky.com/mediaplayer/mp3s/IfTomorrowNeverComes.mp3</location>
<image>http://www.marloschalesky.com/mediaplayer/jpgs/ITNCaudio.jpg</image>
<info><![CDATA[http://www.christianbook.com/Christian/Books/product?event=AFF&amp;p=1136938&amp;item_no=420244]]></info>
<identifier>1</identifier>
</track>

<track>
<title>YouTube Videos from Marlo Schalesky</title>
<creator>Marlo Schalesky</creator>
<location>http://gdata.youtube.com/feeds/api/users/pulsepointdesign/uploads?orderby=updated</location>
<info><![CDATA[http://www.christianbook.com/Christian/Books/product?event=AFF&amp;p=1136938&amp;item_no=420161]]></info>
<identifier>2</identifier>
</track>

Would that make sense??

Kelli

You can't load a YouTube playlist within another playlist.

You could load the YouTube playlist by clicking on a link. The YouTube playlist will then replace the existing playlist.