/// <summary> /// 启动辅助的摄像头,摄像头数据通过SetVideoCaptureDataCb设置采集回调返回,不直接通过视频通话发送给对方,并且不参与设备监听检测 /// </summary> /// <param name="id">摄像头标识,用于开关及数据回调时的对应,不能为空。(同一id下设备将不重复启动,如果设备device_path不同会先关闭前一个设备开启新设备)</param> /// <param name="device_path">设备路径</param> /// <param name="fps">摄像头为采样频率</param> /// <param name="json_extension">打开摄像头是允许设置 kNIMDeviceWidth 和 kNIMDeviceHeight,并取最接近设置值的画面模式</param> /// <param name="handler">回调</param> ///<returns>无返回值</returns> public static void StartExtendCamera(string id, string device_path, uint fps, string json_extension, StartDeviceResultHandler handler) { var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(handler); DeviceNativeMethods.nim_vchat_start_extend_camera(id, device_path, fps, json_extension, StartExtendCameraCb, ptr); }