In some instances, the viewer of a stream gets the javascript event trigger STREAM_STATUS.NOT_ENOUGH_BANDWIDTH
I know this relates to the webrtc_cc2_bitrate_overuse_event_threshold setting in flashphoner.properties. This is now set on 0.1.
1. What I don't get is why the stream.getNetworkBandwidth() is sometimes 0. These events are logged to the server and if there temporarily is no connection at all no client to server logging can be done at all at that time.
2. Also, it seems that you can only read stream.getNetworkBandwidth() when a NOT_ENOUGH_BANDWIDTH occurs. Is that correct? Why can't you read this value/function or the stream.getRemoteBitrate() value on a STREAM_STATUS.PLAYING event?
3. Next, what should be the course of action when such a STREAM_STATUS.NOT_ENOUGH_BANDWIDTH event occurs? Should I lower the bitrate (of the player not the publisher) immediately? Can I do that while the stream is still playing or is it done by flashphoner.js automatically?
4. Why is there a huge difference in the values of stream.getRemoteBitrate() during these bandwidth events ? Is it because flashphoner automatically lowers the bitrate after such an event? We see values ranging from 250 to 2500 and the webrtc_cc_min_bitrate was set on 500000 so it should be 500 at minimum.
5. On the domain/:8081/?action=stat url we can see some cpu load stats etc. The last 2 values are always zero:
global_bandwidth_in
global_bandwidth_out
Why is that, is there a setting somewhere to change that? And is this value a total value, current value or average?
I know this relates to the webrtc_cc2_bitrate_overuse_event_threshold setting in flashphoner.properties. This is now set on 0.1.
1. What I don't get is why the stream.getNetworkBandwidth() is sometimes 0. These events are logged to the server and if there temporarily is no connection at all no client to server logging can be done at all at that time.
2. Also, it seems that you can only read stream.getNetworkBandwidth() when a NOT_ENOUGH_BANDWIDTH occurs. Is that correct? Why can't you read this value/function or the stream.getRemoteBitrate() value on a STREAM_STATUS.PLAYING event?
3. Next, what should be the course of action when such a STREAM_STATUS.NOT_ENOUGH_BANDWIDTH event occurs? Should I lower the bitrate (of the player not the publisher) immediately? Can I do that while the stream is still playing or is it done by flashphoner.js automatically?
4. Why is there a huge difference in the values of stream.getRemoteBitrate() during these bandwidth events ? Is it because flashphoner automatically lowers the bitrate after such an event? We see values ranging from 250 to 2500 and the webrtc_cc_min_bitrate was set on 500000 so it should be 500 at minimum.
5. On the domain/:8081/?action=stat url we can see some cpu load stats etc. The last 2 values are always zero:
global_bandwidth_in
global_bandwidth_out
Why is that, is there a setting somewhere to change that? And is this value a total value, current value or average?