unpublish method

Future<int> unpublish(
  1. RCRTCMediaType type
)

ZH

加入房间后, 取消发布已经发布的本地资源 @param type 资源类型 @return 0: 成功, 非0: 失败

EN

Unpublish local resources after joining room @param type Resource type @return 0: success, non-zero: failure

Implementation

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