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

Forums

/

bandwidth detection information

6 replies [Last post]

Hi all,

I'm trying to setup bandwidth detection for 3.xx, but am unable to find information on this site how to go about doing this. I feel like an idiot, but I can't find anything past a few mentions in the forums about a "bwfile" flashvar. Sounds like other people are doing it. How do I actually get the player to detect bandwidth? I want to stream different bandwidths of a video from my RTMP server.

Thanks and I hope this isn't redundant,

Mike

Still good in the v3.16 media player.

You need a 100kb jpg named "100k.jpg" and a set of video files that correspond to the bandwidth that you want to provide.

The bandwidth detection looked like this:

s1.addVariable('bwfile', '100k.jpg');
s1.addVariable('bwstreams', '128,256,512');
s1.addVariable('file', 'video.flv');

So you would need video_128.flv, video_256.flv, and video_512.flv for the three bwstreams.

thanks, kLink! works great!

Is there any way to get this to work with playlists, like to play playlist_128.xml instead of video_12.flv? Otherwise I guess I could do some sort of workaround like start playing playlist_128.xml if it detects that video_128.flv is playing.

Also, is this implemented for 4.0? I might be upgrading soon...

Thanks again!

-Mike

You can ( I haven't done this in a while, so the details are a bit sketchy ) put the bwstreams in each track of your playlist.

<track>
  <creator>Creator</creator>
  <title>Title</title>
  <location>http://my.domain.com/path/video.flv</location>
  <image>http://my.domain.com/path/image.jpg</image>
  <meta rel='bwstreams'>128,256,512</meta>
  <info>http://my.domain.com/</info>
</track>

Thanks for the reply.I can't seem to get it to work. I tried also adding in <meta rel='bwfile'>100k.jpg</meta> to see if that helped and it didn't. Also tried commenting out bwstreams in my flashvars. Also did nothing.

I'll find an old playlsit that has the correct format. Yes, you should comment out the bwstreams in your player code. bwfile stays in the player code.

Later...

I thought that for sure I would have a playlist example with bwstreams, but I can't find one.

But the format I posted above is correct. And you should disable bwstreams in the player code if you have bwstreams in the playlist. I can't think of anything else to tell you to do or to try. If I think of something, I'll post it here.