Products / Plugins:Video Call / Voice Call
Platform / Framework:iOS / Android / Windows
Last updated:2021-09-26 18:24
This status cannot be synchronized to the server due to the abnormal exit of the stream publisher. The server needs to determine that the stream has stopped based on the timeout period.
After the timeout (about 100s), if the app has not been restarted and you have not logged in to the original room within 100s, the server sends out a notification that the stream is deleted.
At this time, the streaming subscriber will receive the corresponding notification through the onRoomStreamUpdate
callback, and the business side should stop playing the corresponding stream.
When using OBS to publish the stream and SDK to play the stream, the image was stuck or the sound and image were not synchronized.
When using OBS to publish streams, the video stream carrying B-frame is published. Streams with B-frame have high latency in live streaming scenarios. By default, the ZEGO Express SDK does not support decoding video streams with B-frames, so there are stuck or out-of-sync.
The following are 3 solutions provided by ZEGO:
Set not to publish B-frame in OBS settings: Go to Advanced > Profile, select baseline or using soft decoding for stream playing with the SDK.
If you are using the OBS classic version, go to Advanced > Config file, and select baseline.
If the played images quality is unstable after you set not to publish B-frame in OBS, refer to the third solution.
To play the B-frame video streams with the SDK, call the enableCheckPoc(false)
and the requireHardwareDecoder(false)
methods before stream playing.
It is possibly because the image is too complex to be encoded. You can refer to the following 3 methods:
medium
. The higher the CPU usage, the better the picture quality.profile
to main
, and at the same time, the stream playing end needs to be set to support B-frame. Manage the stream IDs by yourself, and perform the room login and stream playing operations simultaneously. (Call theLoginRoom
first, and then call the startPlayingStream
method).
Call the switchRoom
to switch the room. (Use the loginRoom
method for first room login, and you will be able to use switchRoom
next time after you exit a room.)
The SDK allows a user to play 12 channels of streaming at the same time by default. To play more than 12 channels of streaming, contact ZEGO technical support.