subscribeCustomStream method

Future<int> subscribeCustomStream(
  1. String userId,
  2. String tag,
  3. RCRTCMediaType type,
  4. bool tiny,
)

Implementation

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