publish method

Future<int> publish(
  1. RCRTCMediaType type
)

ZH

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

EN

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

Implementation

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