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

Forums

/

multiple "visible" playlists

17 replies [Last post]

I've been searching forums for a couple of days for multiple playlists but all the examples use "invisible" playlist, e.g. links that reload the page and player with a new playlist.
What I would like to do:
1.Have 3 visible playlists, with their contents - thumbnails, title, description, etc. without a video view screen.
2.Have 1 video view screen, with or without a playlist.
3.Be able to click on any item from any playlist to load the main view screen.
I guess what I need is a way to send data from one player to another, does that sound right? Any other ideas?

Thanks, DC

I've done this with two playlist only players and one display area player (three players).

You could easily add more playlists by replicating the code for the two existing playlist displays.

You can have a playlist display under/beside the display area player by just adding the playlist & playlistsize flashvars and adjusting the height/width appropriately.

Since the display area player and the playlist display players are separate players, you can position them wherever you want with CSS.

On startup, the two playlists are concatenated into one playlist which is loaded into the display area player. When a selection is made on either of the playlists, the appropriate index on the display area player is selected and played.

One of many test pages is here: http://willswonders.myip.org:8074/Two%20Playlists%20SC_A1.html

The left playlist is MP3s with images — no thumbnails, the right playlist is a video from an RTMP server — with thumbnails, illustrating how to serve mixed media from different servers. You can have any combination of settings that you would have in normal players/playlists.

Don't expect YouTube-like performance on the video, my upstream bandwidth is severly constrained (256kbps).

Exactly! And it's swfobject 2.2 compliant! (it is isn't it?)

I'll reply again with a link once I get it setup.

Thanks again!

 
"Exactly! And it's swfobject 2.2 compliant! (it is isn't it?)"

It's good that you asked that question, because it reminded me that you can't re-use flashvars or attributes with swfobject-2.2 final.

You have to use flashvars1, flashvars2, flashvars3, and attributes1, attributes2, attributes3, etc. The params can be re-used because they are all the same for each player.

Here's an example: http://willswonders.myip.org:8074/Separate Player-Playlist.html

lol, yeah it pays to ask.

I'm making the changes now, thanks for the update!

This is what I have so far, almost works.
http://www.isolatedground.com/Credits/multLists2.html

Videos I have stored locally work like it does on your site.
Videos from Youtube play in both the main window and the playlist window.

I've turned off the sound so it's not a major distraction but for those on IE, it's a little ugly.

Any ideas?

btw do you have a site where I can contact you?

I tweaked your page a bit, you can see the code here: http://willswonders.myip.org:8074/DC.html

I see what you mean about the second playlist playing. The player is definitely getting sent a stop, but because it is still loading, the stop doesn't have the desired effect. So I added a STATE Listener to fix that.

I temporarily put controlbars on the playlists so you could see if either playlist player was playing.

So now you just need to add the third playlist.    :D

Thanks I'll check it out.

Edit:
We're getting very close, I'll leave the current test page up for anyone following this thread. I'll make sure and put the latest version here. The working copy will be on another page linked in the isolatedground.com web site.

Thanks again Will, It IS exactly what I wanted!

DC

Okay here's my 3 list (4 player) combo.
http://www.isolatedground.com/Credits/multLists3.html

I'll leave "this" page up for the thread results and pull the prior page.

Thanks "Lost" and did you ever figure out why it still starts playing on load?

 
"did you ever figure out why it still starts playing on load?"

Are you talking about "starts playing" on initial page load or the playlist players start when an item is selected?

I fixed the latter; I didn't know the former was an issue.

So do you want the player to load and NOT start playing?

That's probably just sending a STOP after the concatenated playlist is loaded here:

player1.sendEvent('LOAD', playlistX);

To stop selection & play on page load, just comment out the one line of code in the playlistMonitor — or change the index to some other track that you do want to start on???

      function playlistMonitor(obj)
      {
        //...set the item to start on page load - first track on playlist3 = playlist2Length
        //...comment out if you don't want the player to start on page load
        setTimeout("player1.sendEvent('ITEM', playlist2Length)", 250);
      };

Yep, just wanted to stop the initial playblack on load.
That did it, thanks again!

hello
i need little help i just downloaded jw player and i have the source code how this player can play on my site what i should change in this code below :

<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('/jw/embed/player.swf','mpl','470','470','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured&playlist=bottom&dock=false');
so.write('player');
</script>

insted of <div id="player">This text will be replaced</div>what should i put there

Change this URI to the location of your swfobject.js file.<script type="text/javascript" src="<strong>http://www.jeroenwijering.com/embed/swfobject.js</strong>"></script>

Change this URI to the location of your player.swf file:var so = new SWFObject('<strong>http://www.domain.com/jw/embed/player.swf</strong>','mpl','470','470',<strong>'9.0.124'</strong>);require the Adobe Flash Player version 9,0,124,0.

it's not usefull that the example links never work

 
So are you sayin' it would be better if nobody ever posted any examples.

No, but just keep the links alive