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