Stream mixing issues
The SDK supports mixed single stream. In the current scenario, the mixed stream task will automatically retry to pull the disconnected stream for 90 seconds (the disconnected stream screen stays at the last frame), and will not retry after 90 seconds. You need to manually call stopMixerTask method to stop the mixed stream task.
ZegoExpress SDK provides the following two methods:
- Use stream additional information: User calls setStreamExtraInfo The interface is passed in, and other users in the same room monitor onRoomStreamExtraInfoUpdate Call back to obtain additional stream information.
- Use custom signaling: call sendCustomCommand interface to the specified user Send stream name information, the user monitors onIMRecvCustomCommand Call back to get corresponding information.
Note: Users can also use their own signaling service to send and receive mixed stream name information.
It is recommended to push the stream to ZEGO Lianmai server at the beginning, and then pass addPublishCdnUrl method adds retweets to the specified CDN address. Since ZEGO pulls the low-latency stream from the Lianmai server for mixed streaming, it will not interfere with the previously existing single stream, so in this scenario, as long as the stream is not stopped, the stream forwarded to the CDN will always exist.
In pure audio scenarios, the mixed stream does not support background images by default. If you want to display the background image, you need special configuration in the ZEGO background. Because this configuration needs to consider the traffic generated by the transmission of the background image, a certain amount of mixed flow fee is added. Please contact ZEGO technical support for consultation.
Soundwave "soundLevel" is turned on during mixing, and soundwave uses "SEI", which is not compatible with some browsers. Please set the parameter "withSoundLevel" to "false" to turn off the sound mixing function.
- In the test environment, the "seq" value does not affect the initiation of the mixed flow task.
- In a formal environment, for mixed streams initiated by the same "id_name", the size of "seq" will be detected. If a request with a smaller "seq" arrives at the server, it will not be executed; for tasks with different "id_name", it will not Compare the size of "seq"; it is recommended to use only one "id_name" to initiate and update the mixed stream.
