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

Forums

/

JW Player 4.4 "Load playlist from memory" broken?

7 replies [Last post]

I've been following the example here:
http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_5-2-4-0.html#

And it seems to work with versions 4.2 and 4.3, but when I switch to 4.4, I get "No valid filetypes found in this playlist." The only difference between my tests is changing the player.swf version files.

Is there a different variable or additional variable I need to add for 4.4 to work?

If your file URI ends in a recognized media file extension, you don't need the type flashvar.

With the v4.4.x players, using type when there is a recognized media file extension seems to break things.

So, remove this from each track:type:"video"Be sure that you remove the comma from the preceding line so the array is valid.

Thank you for the response. I tried removing the type and still not having any success. Tried with both .flv and .mp4.

It seems like it's not parsing the array correctly. If I send it the first element of the array, it works correctly. i'll try to snag the latest build from the repository, so if it's something that may have been corrected.

This works for me:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>Load Playlist From Memory - JWMP v4.4.x - swfobject v2.1</title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

    <script type="text/javascript">
      var player = null;

      function playerReady(obj)
      {
        player = gid(obj.id);
      };

/* one playlist item
      lst[n] =
      {
        file:             '',
        image:            '',
        link:             '',
        start:            '',
        duration:         '',
        author:           '',
        description:      '',
        title:            ''
      };
*/

      var lst = new Array();

      lst[0] =
      {  
        file:             'http://content.bitsontherun.com/videos/qyehIiBT.flv',
        image:            'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/thumb-video.jpg',
        link:             'http://www.jeroenwijering.com',
        author:           'Jeroen Wijering',
        description:      'Nightly heart pounding paranoia - What was that in the grass?',
        title:            'Grass by Night'
      };

      lst[1] =
      {
        file:             'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/sound_whitenoise.mp3',
        image:            'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/testpicture.png',
        link:             'http://www.jeroenwijering.com',
        author:           'Anonymous',
        description:      'Classical TV testpicture.png image and whitenoise.mp3',
        title:            'Testpicture'
      };

      lst[2] =
      {
        file:             'http://www.a2mrocks.com/live/12.mp3',
        image:            'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/HumanErrorLogo.jpg',
        link:             'http://www.a2mrocks.com/',
        author:           'a2m',
        description:      'a2m rocks',
        title:            'Human Error'
      };

      lst[3] =
      {  
        file:             'http://www.metinberlin.org/files/amerika.mp3',
        image:            'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/franzosen.jpg',
        link:             'http://www.metinberlin.org',
        author:           'Vivie',
        description:      'The art exhibition is over now - but the song is still cute.',
        title:            'a.m.e.r.i.k.a'
      };

      lst[4] =
      {  
        file:             'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/testvideo.flv',
        image:            'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/thumb-testvideo.gif',
        link:             'http://www.jeroenwijering.com',
        author:           'Anonymous',
        description:      'Classical TV testpicture - and the annoying 440hz tone.',
        title:            'Testvideo'
      };

      function gid(name)
      {
        return document.getElementById(name);
      };
    </script>

        
    <script type="text/javascript">
      var flashvars =
      {
        'file':                         'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/thumb-testvideo.gif',
        'image':                        'http://home5.inet.tele.dk/nyboe/flash/mediaplayer/thumb-testvideo.gif',
        'title':                        'Initial Image',
        'description':                  'This is the initial image that will be shown until a playlist is loaded.',
        'playlist':                     'bottom',
        'playlistsize':                 '120',
        'shuffle':                      'false',
        'repeat':                       'always',
        'id':                           'playerID',
        'autostart':                    'false'
      };

      var params =
      {
        'allowfullscreen':              'true', 
        'allowscriptaccess':            'always'
      }

      var attributes =
      {
        'id':                           'playerID',  
        'name':                         'playerID'
      };

      swfobject.embedSWF('player-4.4.202.swf', 'player', '320', '300', '9.0.124', false, flashvars, params, attributes);
    </script>

  </head>

  <body bgcolor="#DDDDDD">

    <a href="http://www.jeroenwijering.com/?item=JW_FLV_Media_Player">JW FLV Media Player</a>
    <br />
    Load a playlist from memory.
    <br />
    <br />
    <a href="#" onclick="player.sendEvent('LOAD', lst); return false;">LOAD Playlist from Memory</a>
    <br />
    <br />
    <div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>

  </body>

</html>

Ah... seems to be working now with 4.4.205. Thank you. Was on 4.4.174...

where to download version 4.4.205?

@poobalan - all old versions can be found here - http://developer.longtailvideo.com/trac/browser/tags