$createWTNStream method

Future $createWTNStream()

Implementation

Future $createWTNStream() async {
  if (Platform.isAndroid) {
    $wtn_instance = await ($instance as $a.RTCEngine).getWTNStream();
  } else if (Platform.isIOS) {
    $wtn_instance = await ($instance as $i.ByteRTCEngine).getWTNStream();
  } else {
    throw UnsupportedError(
      'Not Support Platform ${Platform.operatingSystem}',
    );
  }
  _wtnStream = WTNStream();
}