getVideoDeviceManager method

Future<IVideoDeviceManager?> getVideoDeviceManager()

@valid since 3.56 @detail api @author likai.666 @brief 创建视频设备管理实例 @return 视频设备管理实例,详见 IVideoDeviceManager{@link #IVideoDeviceManager}

Implementation

Future<IVideoDeviceManager?> getVideoDeviceManager() async {
  $a() async => packObject(
      await ($instance as $p_a.RTCEngine).getVideoDeviceManager(),
      () => IVideoDeviceManager());
  $i() async => packObject(
      await ($instance as $p_i.ByteRTCEngine).getVideoDeviceManager(),
      () => IVideoDeviceManager());

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}