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

Forums

/

JW Box - Playlist - RTMP

7 replies [Last post]

@hobbs

Now that I have the JW Box setup and working the way I want for single files I'd really like to be able to use it with a playlist. Problem is when it finishes the 1st item in a playlist it stops playing. At that point if I click the next button it will advance and play the next item. I think my javascript in the html is working OK and that the root cause is in the jquery.jwbox.js Here's a link to my test page<strong>http://jim.playourvideo.net/jwboxtest.htm?id=jwboxtest.xml</strong> if you'd have a moment to take a look. I'm just not smart enough to know how and where to tweak the jquery. I think it's at this point that I need to make such a modification.

jQuery.jwbox = {
lightbox : null,
player : null,
toggle : function(context) {
if (!$.jwbox.lightbox) {
$.jwbox.lightbox = $(".jwbox_hidden", context);
$.jwbox.center();
$("#jwbox_background").fadeIn("fast");
$.jwbox.lightbox.css("display","block")
$.jwbox.center();
$("#jwbox_background").fadeTo(0, 0.8);
$("object", context).each(function(){
$.jwbox.player = document.getElementById(this.id);
});
} else if ((context.className == 'jwbox_content')) {
<strong> } else {
try {
$.jwbox.player.sendEvent("STOP");
$.jwbox.player = null;</strong>

If I need to have a seperate version of jquery for playlist use that would be fine too.

Could you have a look - Jimb

This doesn't work?

      var flashvars =
      {
        'file':                                   theFile,
        'image':                                 '',
        'stretching':                            'uniform',
        <strong>'repeat':                                'list',</strong>
        'id':                                    'playerID',
        'autostart':                             'true'
      };

Scratching my head :) It does play the entire playlist now but now the stateMonitor no longer close the JW Box.

Guess I need to go reread the docs. I thought the repeat statement just forced the player to process the playlist again after it played the last item? Isn't that the way it used to work?

Once again though, thanks for your great advice. I'll go try to get the autoclose feature working again.

Jimb

Damn... A closer read confirms what my 3rd grade teacher noted when she wrote

Does not read and follw instructions carefully

This will terminate things ONLY at the end of the playlist.

if((obj.newstate == 'COMPLETED') && ((currentItem + 1) == player.getPlaylist().length))

Thanks hobbs

You always seem to have solid insight and I'm sure many here reall appreciate your help

I sure do - Jim

You're welcome, Jim.

We appreciate your contributions also.

sorry for being a pain but could i have a look at you code for this I'm a newbie but I would love to try this for an arcive page and use a playlist i already have set up

dave - Can you provide a link to where you are running this?