unsubscribeLiveMix method

Future<int> unsubscribeLiveMix(
  1. RCRTCMediaType type
)

ZH

取消订阅主播合流资源, 仅供直播观众用户使用 @param type 资源类型 @return 0: 成功, 非0: 失败

EN

Unsubscribe from host's mixed stream (for live audience only) @param type Resource type @return 0: success, non-zero: failure

Implementation

Future<int> unsubscribeLiveMix(RCRTCMediaType type) async {
  Map<String, dynamic> arguments = {'type': type.index};
  int code =
      await _channel.invokeMethod('unsubscribeLiveMix', arguments) ?? -1;
  return code;
}