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

Forums

/

HD bandwidth detection?

11 replies [Last post]

I've got two streams on FMS - one HD, one LD.

I'm using the HD plugin so people can switch between the two and it works fine. But it would be much nicer if the plugin could detect if the HD version is downloading too slow and automatically switch out to the LD version.

Any ideas?

what is an HD plug-in? I would like to use this.
Thanks,
GWenda

Oli,

I believe that is how it functions at the moment. You can manually set the bit rate that you want the plugin to test against using this config parameter (i'm using xml):

<hd.bitrate>400</hd.bitrate>

Then if the client is streaming slower than that, it will degrade to the low band stream.

Gabe -

Are there any other params? The HD product page (http://www.longtailvideo.com/addons/plugins/65/get-instructions.html?addon=65&q=) only shows two flash vars

hd.file: the HD file that one can toggle to.
hd.state is the state of the HD toggle (true/false).

thanks!

The HD plugin does not read in hd.bitrate, it only reads in hd.file and hd.state.

I've patched the HD plugin to let you specify bitrate, as well as toggle this auto-switch behavior on/off.

http://interfacelab.com/patch-for-hd-plugin-for-jw-player/

Thats not what I was told from longtail. They said you have to add the hd.bitrate flashvar for streaming servers to help it autodetect but for files off your own server it will detect the bandwidth without the flashvar.

The plugin doesn't read the hd.bitrate flashvar. It listens for the bitrate metadata event to be dispatched. It then sets the *bitrate* flashvar, and updates hd.state if the user's bandwidth can't handle the bitrate (see http://developer.longtailvideo.com/trac/browser/plugins/hd/com/jeroenwijering/plugins/HD.as#L101).

Since metadata event aren't guaranteed to come, you may need to manually set the bitrate flashvar so that the bandwidth to bitrate comparison isn't comparing null values.

So, in laymans terms, how exactly is it set up?

Set the hd.state flashvar.

Will this support RTMP streams, or just FLV?

It should support all models, though if you need to use a different application / streamer, it might get tricky.