[Red5] I there any bandwidth detection function built in red5 ?

gate@kishta gate at kishta.org.il
Tue Sep 8 07:11:48 PDT 2009


I`ve read the link you sent me, Nicolay, thanks.
What I need is only the server to client bandwidth check as I will be
streaming FLV files from the server to the client.
I`d like to make sure I understood correctly what Code I need to embed in my
client AS3 flash application.
In the link there are two snippets of code that seem to me relevant, but I`m
not sure I understand correctly how to use them. These are the 2 code
snippets as copied from the documentation:

Client Side Download Detection
Client side callback methods are setup to enable the detection. 

public function onBWCheck(obj:Object):void
		{
				dispatchStatus(obj);
		}
			
		public function onBWDone(obj:Object):void 
		{ 
			dispatchComplete(obj);
		} 

And then the information is obtainable on the Object argument 

public function onServerClientComplete(event:BandwidthDetectEvent):void
		{
			txtLog.data += "\n\n kbit Down: " +
event.info.kbitDown + " Delta Down: " + event.info.deltaDown + " Delta Time:
" + event.info.deltaTime + " Latency: " + event.info.latency;
			txtLog.data += "\n\n Server Client Bandwidth Detect
Complete";
			txtLog.data += "\n\n Detecting Client Server
Bandwidth\n\n";
			ClientServer();
		}

I understand that onBWCheck() and onBWDone are being called by the
server-side application. What I am not sure about are the two other
functions which are only mentioned by name but do not actually exist in
code. Which are: dispatchStatus() and
dispatchComplete()
There`s also a third function that is brought in full code:
onServerClientComplete()

1. Is there some mix-up in the text and instead of calling
dispatchComplete() one should actually call onServerClientComplete() ?
2. What do I need dispatchStatus() function for ?
3. the callBWDone() function in the server-side application is supposed to
send the following 4 parameters to the onBWDone() function on the client
side:
.kbitDown - the kbits down value 
.deltaDown - 
.deltaTime - 
.latency - The latency delay calculated between server and client
I do not fully understand them nor How do I know by these the server to
client speed ? is it kbitDown/deltaTime ?

Thanks.


-----Original Message-----
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Nicolay Vizovitin
Sent: Monday, September 07, 2009 11:49 AM
To: red5 at osflash.org
Subject: Re: [Red5] I there any bandwidth detection function built in red5 ?

You should probably see this doc:
http://trac.red5.org/wiki/Documentation/UsersReferenceManual/Red5CoreTechnol
ogies/09-Demo-Applications#BandwidthCheckApplication

On 9/7/09, gate at kishta <gate at kishta.org.il> wrote:
> Hi, I`d like to be able to detect my clients bandwidth and stream to them
a
> suitable version of the flv - encoded in the appropriate bitrate.
>
> Does red5 have that function built in, or do I have to write it myself in
my
> application ?
>
> If I have to write it, does anyone have a link that helps with this ? (
I`m
> using flash AS3)
>
> Thanks
>
>
>
>


--Best regards,
  Nicolay

_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

__________ Information from ESET Smart Security, version of virus signature
database 4109 (20090527) __________

The message was checked by ESET Smart Security.

http://www.eset.com


 

__________ Information from ESET Smart Security, version of virus signature
database 4109 (20090527) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 




More information about the Red5 mailing list