WebRTC Native M96 SDK接口封装--muteRemoteVideoStream接收/停止接收指定远端用户的视频流

之前,介绍了如何实现muteLocalVideoStream和muteLocalAudioStream。

在这里插入图片描述

接口定义(Agora)

接口名:
   muteRemoteVideoStream

接口定义:

virtual int agora::rtc::IRtcEngine::muteRemoteVideoStream(uid_t userId, bool mute)  

接口功能:
   接收/停止接收指定远端用户的视频流。

注解:
   如果之前调用过 muteAllRemoteVideoStreams (true) 停止接收放所有远端视频流,在调用本 API 之前请确保你已调用 muteAllRemoteVideoStreams (false) 。muteAllRemoteVideoStreams 是全局控制,muteRemoteVideoStream 是精细控制。

参数:
userId 指定用户的用户 ID。
mute
true: 停止接收指定远端用户的视频流;
false: 允许接收指定远端用户的视频流(默认)。

返回:
0: 方法调用成功
< 0: 方法调用失败

猜你喜欢

转载自blog.csdn.net/wangshubo1989/article/details/124001210