getWTNStream method
@detail api @author lihuan.wuti2ha @brief 获取 WTN 管理接口。 @return WTN 管理接口,参看 IWTNStream{@link #IWTNStream}。
Implementation
Future<IWTNStream?> getWTNStream() async {
$a() async => packObject(
await ($instance as $p_a.RTCEngine).getWTNStream(), () => IWTNStream());
$i() async => packObject(
await ($instance as $p_i.ByteRTCEngine).getWTNStream(),
() => IWTNStream());
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}