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

Forums

/

Help with simple playlist?

10 replies [Last post]

I need help making my first playlist using the JW Player and rtmp through imediasee. I want to make three videos in each playlist, with an intro video, the main content and then a closing video. The intro and closing video will be encoded at the same bitrate (1000kbps) and the main content will be encoded at 1000kbps and 2000kbps and I would like to use bandwidth detection (HD plugin) on the main content. How do I go about setting up a playlist to do the above? I will make the same type of playlist for all of my videos including the same intro and closing video. Also, do I just add the playlist as my file in the code for JW Player and then the playlist does the work from there? Thanks for the help.

Chad

Super Way easy method I use is:
see this page http://rickcaylor.websitetoolbox.com/post?id=3646487

 
The current HD plugin does not have bandwidth detection. It's a simple manual toggle from the dock or the controlbar.

Automatic bandwidth detection over a short period of time does not work because of the tremendous variation in latency of the Internet over a short period of time. (Longer averages are better, but do you want to wait 60 seconds for a bandwidth measurement?)

Playlist documentation and examples are here:

    http://developer.longtailvideo.com/trac/wiki/FlashFormats#XMLPlaylists

The playlist URI is the value of the file flashvar.

Be aware that once you start using a playlist, all of the File Properties flashvars must come from the playlist, with the obvious exception of the file flashvar and the streamer flashvar, which can be global. File Properties flashvars in the player embedding code are ignored.

    http://developer.longtailvideo.com/trac/wiki/FlashVars#Fileproperties

Can I load the intro video and the closing video on my own server, then use my streaming server (imediasee) to stream my main content?

Where does the playlist reside? On my server? Does it make a difference? I dont see in the examples above where you enter your rtmp information.

Lets say (hypothetically) my intro file is called (video_intro.mp4) it resides on my server. My main content is called (my_video_1000.mp4 and my_video_2000.mp4) and it resides on my streaming server here (streamer=rtmp://fstream.imediasee.com/me/My Account), and my closing video is called (video_end.mp4) and it is located on my server.

These are an example and do not really exist but If they did how would I add that info to an xml playlist to get it to play back through jw player. Thanks for all of the help guys!

The playlist should be on your server with the Flash movie (player.swf) so you don't have cross-domain issues.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
  <channel>
    <title>hollywood's MediaRSS</title>
    <description>hollywood's MediaRSS playlist using the jwplayer namespace.</description>
    <link>http://www.hollywood.com/info/</link>
    <item>
      <jwplayer:title>Intro Video</jwplayer:title>
      <jwplayer:author>hollywood</jwplayer:author>
      <jwplayer:description>This is the intro video served by progressive download.</jwplayer:description>
      <jwplayer:file>video_intro.mp4</jwplayer:file>
      <jwplayer:link>http://www.hollywood.com/</jwplayer:link>
    </item>
    <item>
      <jwplayer:title>Main Contentt</jwplayer:title>
      <jwplayer:author>hollywood</jwplayer:author>
      <jwplayer:description>This is the main content served by RTMP streaming.</jwplayer:description>
      <jwplayer:file>my_video_1000.mp4</jwplayer:file>
      <jwplayer:hd.file>my_video_2000.mp4</jwplayer:hd.file>
      <jwplayer:streamer>rtmp://fstream.imediasee.com/me/My Account</jwplayer:streamer>
      <jwplayer:link>http://www.hollywood.com/</jwplayer:link>
    </item>
    <item>
      <jwplayer:title>Closing Video</jwplayer:title>
      <jwplayer:author>hollywood</jwplayer:author>
      <jwplayer:description>This is the closing video served by progressive download.</jwplayer:description>
      <jwplayer:file>video_end.mp4</jwplayer:file>
      <jwplayer:link>http://www.hollywood.com/</jwplayer:link>
    </item>
  </channel>
</rss>

That helps so much! I just needed that to help me get familiar with the settings! I got it to work on a test video but the hd toggle did not seem to work, should I add it to the main content video section of the playlist above? Also, how do you make it so the videos continually play through from the first to the last? Thanks for all of the help.

Chad

 
repeat=list or repeat=always

See: http://developer.longtailvideo.com/trac/wiki/FlashVars#Behaviour

Did you specify the HD plugin in your player code?

Here is an example of my code below.

<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','720','432','9.0.115.0');
s1.addParam('allowfullscreen','true');
s1.addParam('wmode','transparent');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=test_playlist.xml&plugins=gapro-1,hd-1&dock=true&repeat=list&fullscreen=true&skin=snel2.swf');
s1.write('player');
</script>

Would it work better if I made the playlist intro and closing video with an hd file and regular file even if they were the same file to help? Also, when I click the HD button it only automatically switches from HD mode to non HD mode, once I hit the HD button again to go back to HD it just shows the play button and I have to start the video over. Also if I am in the middle of a video and use the HD toggle it starts the video over when before it would go to were I already was in the video. The toggle is not working becuase the same video plays no matter what. Also were do I add the hd.bitrate flashvar? Here is an example of my test page below.

http://www.steelheadstalkers.com/test.htm

And my xml code if that help.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
<channel>
<title>hollywood's Test Playlist</title>
<description>hollywood's MediaRSS playlist using the jwplayer namespace.</description>
<link>http://www.steelheadstalkers.com/</link>
<item>
<jwplayer:title>Intro Video</jwplayer:title>
<jwplayer:author>hollywood</jwplayer:author>
<jwplayer:description>This is the intro video served by progressive download.</jwplayer:description>
<jwplayer:image>videos/quick-clip_wickiup.jpg</jwplayer:image>
<jwplayer:file>videos/clinch_knot.mp4</jwplayer:file>
<jwplayer:link>http://www.steelheadstalkers.com/</jwplayer:link>
</item>
<item>
<jwplayer:title>Main Contentt</jwplayer:title>
<jwplayer:author>hollywood</jwplayer:author>
<jwplayer:description>This is the main content served by RTMP streaming.</jwplayer:description>
<jwplayer:hd.bitrate>2000</jwplayer:hd.bitrate>
<jwplayer:file>episodes/mckenzie_steelhead_1000.mp4</jwplayer:file>
<jwplayer:streamer>rtmp://fstream.imediasee.com</jwplayer:streamer>
<jwplayer:link>http://www.steelheadstalkers.com/</jwplayer:link>
</item>
<item>
<jwplayer:title>Closing Video</jwplayer:title>
<jwplayer:author>hollywood</jwplayer:author>
<jwplayer:description>This is the closing video served by progressive download.</jwplayer:description>
<jwplayer:file>videos/egg_loop2.mp4</jwplayer:file>
<jwplayer:link>http://www.steelheadstalkers.com/</jwplayer:link>
</item>
</channel>
</rss>

Thanks for all of the help.

As I stated in an earlier post, the current HD plugin does not do bandwidth detection.

See:

    http://www.longtailvideo.com/AddOns/get-instructions.html?addon=65&q=

There is no hd.bitrate flashvar.

The current HD plugin is a simple manual toggle between SD & HD.

The video always starts from the beginning when you toggle SD/HD; that's just the way it works.

It used to work with bandwidth detection. When did that stop working? I used to be able to play it on my dads and have the video start in HD then it would automatically switch the non HD after about four or five seconds on my slow connection!

http://www.steelheadstalkers.com/test.htm

On the page above you can play the first video (non playlist) and it will start and play when you click the HD toggle button the video will continue to play from the spot you stopped at, the video does not start over. You can move forward in the video then hit the HD toggle and it will switch quality and keep playing from the current position.

The second video (playlist) does not switch with the toggle the same way, and when it does change its actually not playing the different quality version but the same video. I confirmed with my streaming server. Why is the playlist video (second one) behaving differently? Thanks again.

 
According to the hd.xml document available here:

    http://developer.longtailvideo.com/trac/browser/plugins/hd/hd.xml

version 1.3 of the HD plugin should have the features that you are looking for.

So try this in your player code:s1.addParam('flashvars','file=test_playlist.xml&plugins=gapro-1,<strong>hd-1.3</strong>&dock=true&repeat=list&skin=snel2');