unsubscribeAudio method
Unsubscribe to a user's audio.
Parameter userId
The user ID defined by customer.
Returns
- ResultCode.OK Success
- others: Failure
Note When a user stops the audio or leaves the channel, the user's audio will be automatically unsubscribed.
取消订阅用户的音频。
Parameter userId
客户定义的用户标识。
Returns
- ResultCode.OK 成功
- 其他: 失败
Note 当用户停止音频或者离开频道的时候,用户的音频将会被自动取消订阅。
Implementation
@override
Future<ResultCode> unsubscribeAudio(String userId) {
return _invokeCodeMethod('unsubscribeAudio', {'userId': userId});
}