How to get current uploading speed when live stream with RTMP

85 Views Asked by At

I want to create an application to live stream with RTMP. And I use NetStream.publish to live stream.

When I set NetStream.bufferTime=0 (default value), I can create a Timer to get NetStream.info.currentBytesPerSecond as uploading speed.

But if I set NetStream.bufferTime= 1(Some value larger then 0) , NetStream.info.currentBytesPerSecond becomes 0 and never change~

Can someone help me? Thanks

0

There are 0 best solutions below