In order to improve publishing performance under poor network conditions, we have added support for RTC publishing in addition to the traditional RTMP protocol. This document compares the performance of publishing under different network conditions using the two protocols. The video below shows the effects of watching streams published over different methods.
Note:For instructions on how to publish streams, please see Publishing from Camera.
We simulated different network conditions at the publishing end and observed the playback effects (the streams were played over CDNs, and network conditions at the playback end were normal).
To prevent the use of different sources from affecting the results, we used V2TXLivePusher to publish the same video over RTMP and RTC.
Video parameters:
Parameter | Value |
---|---|
Resolution | 720 x 1280 |
Bitrate | 1800 Kbps |
Frame rate | 15 |
Note:For a description of the network parameters, see Appendix: Network Parameters.
Note:For a description of the network parameters, see Appendix: Network Parameters.
Parameter | Description |
---|---|
Frame rate | Frames rendered per second |
Packet loss | A packet loss rate of 50% means that for every 10 data packets sent, five fail to arrive at their destination. |
Latency | A latency of 200 ms indicates that data packets are delivered by the network only 200 ms after they are sent by the SDK. |
Transfer speed cap | A transfer speed cap of 800 Kbps means that 800 KB of data can be sent per second at most. |
Stutter rate | Stutter occurs if the interval between the rendering of two consecutive frames exceeds 200 ms. Stutter rate is the total stuttering time divided by the total playback time. |
Was this page helpful?