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

Forums

/

Simple Plugin for hide server streaming

1 reply [Last post]

Hi there,
what I need it's quite simple but I have no idea how to start... so, I'm here to ask for suggestions.

To hide the streamer name (rtmp://myserver/myapp) I would like to create a simple plugin to read one flash var and decide the server app.

Example:

flashvar: station=stationX

and this plugin may read

if(station == 'stationX'){

streamer = 'rtmp://stationX/appx';

}else if (station == 'stationY'){

streamer = 'rtmp://stationY/appY';

}

Well.. as I said.. it's quite simple.. I have only 5 stations that I need to hide on swf but have no idea how to start.

The best place to start is to look at the plugin development guide:

http://developer.longtailvideo.com/trac/wiki/PluginsBuilding

and

http://developer.longtailvideo.com/trac/wiki/PluginsCompiling

Also, check out the events the player throws. Listening to those will allow you to change the streamer before the player loads the video. See:

http://developer.longtailvideo.com/trac/wiki/FlashEvents