设置音视频数据接收模式,需要在进房前设置才能生效。

    参数名称 参数描述 参数类型
    autoRecvAudio true:自动接收音频数据;false:需要调用 muteRemoteAudio 进行请求或取消。默认值:true。 bool
    autoRecvVideo true:自动接收视频数据;false:需要调用 startRemoteView/stopRemoteView 进行请求或取消。默认值:true。 bool

    使用:

    1. TencentRtcPlugin.setDefaultStreamRecvMode(
    2. autoRecvAudio: true,
    3. autoRecvVideo: true,
    4. );