Hi to all again,

In my website i allow streaming only for playing flv files from my server.
The flv files are uploaded by users as (avi,wmv,mp3..) and in the server
side i convert the files to flv
with FFMPEG.

I want to limit the bit rate per second to 18KByte because my upload
bandwidth is 5Mbps that is 625KB.
So i will able to handle 34 connections at same time.

I add this part to appConnect
//---------------------------------------------
measureBandwidth(conn);
if (conn instanceof IStreamCapableConnection) {
  IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
  SimpleConnectionBWConfig bwConfig = new SimpleConnectionBWConfig();
  bwConfig.getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] = 18 *
1024 * 8;
  bwConfig.getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
18 * 1024 * 8;
  streamConn.setBandwidthConfigure(bwConfig);
}
//---------------------------------------------
But now the movie is freeze after 5 second, i try to limit to 32KByte and it
still freeze.

Maybe i have to handle this part in the client side in the SWF ?
Or my limit is not good ?
Do i have to convert the flv file to be 18KByte ?

Thank you for your help.
-- 
View this message in context: 
http://www.nabble.com/Bandwidth-limit..-tf4236655.html#a12054063
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to