muteRemoteVideoStream method Null safety
暂停/恢复接收指定的远端视频流。
该接口仅暂停/恢复接收指定的远端用户的视频流,但并不释放显示资源,所以如果暂停,视频画面会冻屏在 mute 前的最后一帧。
参数:
userId 对方的用户标识
mute 是否暂停接收
Implementation
Future<void> muteRemoteVideoStream(
String userId, // 用户ID
bool mute // 是否停止接收
) {
return _channel.invokeMethod('muteRemoteVideoStream', {
"userId": userId,
"mute": mute,
});
}