setRemoteCustomStreamView method

Future<int> setRemoteCustomStreamView(
  1. String userId,
  2. String tag,
  3. RCRTCView view
)

ZH

设置远端自定义视频预览窗口 @param userId @param tag @param view @return

EN

Set remote custom video preview window @param userId @param tag @param view @return

Implementation

Future<int> setRemoteCustomStreamView(
  String userId,
  String tag,
  RCRTCView view,
) async {
  Map<String, dynamic> arguments = {
    'id': userId,
    'tag': tag,
    'view': view._id,
  };
  int code =
      await _channel.invokeMethod('setRemoteCustomStreamView', arguments) ??
      -1;
  return code;
}