muteAllPlayVideoStreams method
- bool mute
Can the pull stream receive all video data.
Available since: 3.10.0 Description: In the process of real-time video and video interaction, local users can use this function to control whether to receive all remote users' video data when pulling the stream (including the video stream pushed by the new user who joins the room after calling this function). By default, users can receive video data pushed by all remote users after joining the room. When the developer does not receive the video data, the hardware and network overhead can be reduced. Use cases: This function can be called when developers need to quickly close and resume watching remote video. Compared to re-flow, it can greatly reduce the time and improve the interactive experience. When to call: This function can be called after calling createEngine. Caution:
- This function cannot be used together with muteAllPlayStreamVideo throughout the SDK lifecycle.
- When you mute the video stream, the view remains at the last frame by default, if you need to clear the last frame, please contact ZEGO technical support. Related APIs: You can call the mutePlayStreamVideo function to control whether to receive a single piece of video data. Note: This function is only available in ZegoExpressVideo SDK!
mute
Whether it is possible to receive all remote users' video data when streaming, "true" means prohibition, "false" means receiving, and the default value is "false".
Implementation
Future<void> muteAllPlayVideoStreams(bool mute) async {
return await ZegoExpressImpl.instance.muteAllPlayVideoStreams(mute);
}