|
cn.3tee.avd_SDK-C
3.2.0
|
类 | |
| struct | Video_Callback |
| 房间中视频模块回调接口. 更多... | |
| struct | FakeVideoCallback |
| 房间中导入视频的回调 更多... | |
| struct | VideoDevice_Callback |
| 视频设备管理回调接口. 更多... | |
类型定义 | |
| typedef struct Video_Callback * | LPVideo_Callback |
| 房间中视频模块回调接口. 更多... | |
| typedef struct FakeVideoCallback * | LFakeVideoCallback |
| 房间中导入视频的回调 更多... | |
| typedef struct VideoDevice_Callback * | LPVideoDevice_Callback |
| 视频设备管理回调接口. 更多... | |
函数 | |
| RT_API_EXPORT AVDBool | avd_videooption_hasQuality (uint32 deviceQualities, rtc::VideoQuality value) |
| video option operate 更多... | |
| RT_API_EXPORT int | avd_videooption_getCapabilitiesCount (uint32 deviceQualities) |
| 获取摄像头设备采集参数集中参数的数量。 更多... | |
| RT_API_EXPORT void | avd_videooption_getCapabilities (uint32 deviceQualities, uint32 &ncount, AVDCameraCapability *&capabilities) |
| 根据摄像头设备采集参数集获取采集参数列表。 更多... | |
| RT_API_EXPORT rtc::VideoRatio | avd_videooption_getRatio (uint32 publishQualities) |
| 根据摄像头发布参数集获取发布的视频宽高比例。 更多... | |
| RT_API_EXPORT void | avd_videooption_setRatio (uint32 &publishQualities, rtc::VideoRatio value) |
| 设置摄像头发布参数集中发布的视频宽高比例。 更多... | |
| RT_API_EXPORT Result | avd_videooption_setStreamOptions (uint32 &publishQualities, rtc::StreamType type, rtc::VideoQuality quality, rtc::VideoCodec codec) |
| 设置指定流的视频发布参数 更多... | |
| RT_API_EXPORT Result | avd_videooption_setStreamOptionsWithCapability (uint32 &publishQualities, rtc::StreamType type, const AVDCameraCapability &cap, rtc::VideoCodec codec) |
| 设置指定流的视频发布参数 更多... | |
| RT_API_EXPORT Result | avd_videooption_getStreamCapability (uint32 publishQualities, rtc::StreamType type, AVDCameraCapability &cap) |
| 根据摄像头发布参数集获取指定流的分辨率帧率 更多... | |
| RT_API_EXPORT rtc::VideoQuality | avd_videooption_getStreamQuality (uint32 publishQualities, rtc::StreamType type) |
| 根据摄像头发布参数集获取指定流的质量 更多... | |
| RT_API_EXPORT rtc::VideoCodec | avd_videooption_getStreamCodec (uint32 publishQualities, rtc::StreamType type) |
| 根据摄像头发布参数集获取指定流的编码类型 更多... | |
| RT_API_EXPORT AVDBool | avd_videooption_hasStream (uint32 publishQualities, rtc::StreamType type) |
| 根据摄像头发布参数集判断是否有主流或辅流 更多... | |
| RT_API_EXPORT Result | avd_video_init (AVDHandle roomHandle, LPVideo_Callback cb, AVDHandle &videoHandle) |
| 房间中视频模块接口. 更多... | |
| RT_API_EXPORT Result | avd_video_uninit (AVDHandle videoHandle) |
| 反初始屏幕窗口共享模块接口 更多... | |
| RT_API_EXPORT Result | avd_video_previewLocalCamera (AVDHandle videoHandle, AVDHandle renderHandle) |
| 预览本地缺省摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_unpreviewLocalCamera (AVDHandle videoHandle) |
| 取消预览缺省摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_updateCaptureCapability (AVDHandle videoHandle, const char *deviceId, AVDCameraCapability &quality) |
| 更新正在使用的摄像头的视频质量(分辨率和帧率)。 更多... | |
| RT_API_EXPORT Result | avd_video_publishLocalCamera (AVDHandle videoHandle) |
| 发布缺省摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_unpublishLocalCamera (AVDHandle videoHandle) |
| 取消发布缺省摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_setVideoBitrate (AVDHandle videoHandle, const char *deviceId, int minBitrateBps, int maxBitrateBps) |
| 设置视频动态码率调整的范围,最小和最大比特率, 更多... | |
| RT_API_EXPORT Result | avd_video_subscribe (AVDHandle videoHandle, const char *deviceId) |
| 订阅摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_subscribeWithStreamType (AVDHandle videoHandle, const char *deviceId, AVDStreamType stream) |
| 订阅摄像头视频指定视频质量视频 更多... | |
| RT_API_EXPORT Result | avd_video_changeSubscribedVideoQuality (AVDHandle videoHandle, const char *deviceId, AVDVideoQuality quality) |
| 更改订阅视频的视频质量 更多... | |
| RT_API_EXPORT Result | avd_video_unsubscribe (AVDHandle videoHandle, const char *deviceId) |
| 取消订阅摄像头视频 更多... | |
| RT_API_EXPORT uint32 | avd_video_getPublishedCameraCount (AVDHandle videoHandle) |
| 获取已发布的摄像头数量 更多... | |
| RT_API_EXPORT Result | avd_video_getPublishedCamera (AVDHandle videoHandle, uint32 index, AVDCamera &item) |
| 根据索引获取发布的摄像头信息 更多... | |
| RT_API_EXPORT Result | avd_video_getPublishedCameras (AVDHandle videoHandle, uint32 &ncount, AVDCamera *&items) |
| 获取发布的摄像头信息列表 更多... | |
| RT_API_EXPORT uint32 | avd_video_getSubscribedCameraCount (AVDHandle videoHandle) |
| 获取已订阅的摄像头数量 更多... | |
| RT_API_EXPORT Result | avd_video_getSubscribedCamera (AVDHandle videoHandle, uint32 index, AVDCamera &item) |
| 根据索引获取已订阅的摄像头信息 更多... | |
| RT_API_EXPORT Result | avd_video_getSubscribedCameras (AVDHandle videoHandle, uint32 &ncount, AVDCamera *&items) |
| 获取已订阅的摄像头信息列表 更多... | |
| RT_API_EXPORT Result | avd_video_switchLocalCamera (AVDHandle videoHandle, const char *fromId, const char *toId) |
| 已发布摄像头切换功能 更多... | |
| RT_API_EXPORT AVDBool | avd_video_isCameraPublished (AVDHandle videoHandle, const char *deviceId) |
| 判断摄像头是否已经发布到房间中 更多... | |
| RT_API_EXPORT AVDBool | avd_video_isCameraSubscribed (AVDHandle videoHandle, const char *deviceId) |
| 判断摄像头是否已经被本用户订阅 更多... | |
| RT_API_EXPORT Result | avd_video_previewLocalCameraWithDeviceId (AVDHandle videoHandle, const char *deviceId, AVDHandle renderHandle) |
| 预览本地某一摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_unpreviewLocalCameraWithDeviceId (AVDHandle videoHandle, const char *deviceId) |
| 取消预览摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_publishLocalCameraWithDevice (AVDHandle videoHandle, const AVDCamera &device) |
| 发布摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_unpublishLocalCameraWithDeviceId (AVDHandle videoHandle, const char *deviceId) |
| 取消发布摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_muteLocalCamera (AVDHandle videoHandle, const char *deviceId) |
| 已经published或preview的视频暂停:视频卡住,且也不发送到网络上 更多... | |
| RT_API_EXPORT Result | avd_video_unmuteLocalCamera (AVDHandle videoHandle, const char *deviceId) |
| 取消视频暂停 更多... | |
| RT_API_EXPORT Result | avd_video_remotecmdPublishCamera (AVDHandle videoHandle, const AVDCamera &device) |
| 命令远端用户发布某一摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_remotecmdUnpublishCamera (AVDHandle videoHandle, const char *deviceId) |
| 命令远端用户取消发布摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_attachRender (AVDHandle videoHandle, const char *deviceId, AVDHandle renderHandle) |
| 关联视频数据和显示对象,在render中显示视频 更多... | |
| RT_API_EXPORT Result | avd_video_detachRenderWithDeviceId (AVDHandle videoHandle, const char *deviceId) |
| 解除摄像头视频数据的所有显示对象关联 更多... | |
| RT_API_EXPORT Result | avd_video_detachRender (AVDHandle videoHandle, AVDHandle renderHandle) |
| 解除某一显示对象与摄像头视频数据的关联 更多... | |
| RT_API_EXPORT Result | avd_fakeVideoCapturer_create (AVDHandle &videoCapturerHandle, rtc::FourCC fourFormat, AVDBool isScreen, LFakeVideoCallback cb) |
| 创建一个视频导入对象句柄 更多... | |
| RT_API_EXPORT bool | avd_fakeVideoisRunning (AVDHandle videoCapturerHandle) |
| 判断Capturer是否正在运行 更多... | |
| RT_API_EXPORT Result | avd_fakeVideoCapturer_inputCapturedFrame (AVDHandle videoCapturerHandle, uint64 timestamp_ns, uint32 format, int w, int h, const uint8 *data, size_t len, int rotation, bool mirror) |
| 给Capturer输入原始图像 更多... | |
| RT_API_EXPORT Result | avd_fakeVideoCapturer_inputEncodedFrame (AVDHandle videoCapturerHandle, uint64 timestamp_ns, int w, int h, const uint8 *sample, size_t sample_size) |
| 给Capturer输入编码后的数据 更多... | |
| RT_API_EXPORT Result | avd_fakeVideoCapturer_destory (AVDHandle videoCapturerHandle) |
| 销毁一个视频导入对象句柄 更多... | |
| RT_API_EXPORT Result | avd_video_previewLocalCameraWithFakeCapturer (AVDHandle videoHandle, AVDCamera &fakeDevice, AVDHandle videoCapturerHandle, AVDHandle renderHandle) |
| 预览模拟摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_publishLocalCameraWithFakeCapturer (AVDHandle videoHandle, AVDCamera &fakeDevice, AVDHandle videoCapturerHandle) |
| 发布模拟摄像头视频 更多... | |
| RT_API_EXPORT Result | avd_video_updateCameraData (AVDHandle videoHandle, const char *deviceId, int level, const char *description) |
| 摄像头数据更改 更多... | |
| RT_API_EXPORT Result | avd_video_setMirror (AVDHandle handle, const char *deviceId, bool mirror) |
| RT_API_EXPORT Result | avd_videodevice_init (AVDHandle videoHandle, LPVideoDevice_Callback cb, AVDHandle &vdeviceHandle) |
| 初始屏视频设备管理接口 更多... | |
| RT_API_EXPORT Result | avd_videodevice_uninit (AVDHandle vdeviceHandle) |
| 反初始屏视频设备管理接口 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getCamera (AVDHandle vdeviceHandle, const char *deviceId, AVDCamera &item) |
| 获取指定设备Id的摄像头信息 更多... | |
| RT_API_EXPORT uint32 | avd_videodevice_getLocalCameraCount (AVDHandle vdeviceHandle) |
| 获取本地摄像头信息数量 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getLocalCamera (AVDHandle vdeviceHandle, uint32 index, AVDCamera &item) |
| 根据索引获取本地摄像头信息数量 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getLocalCameras (AVDHandle vdeviceHandle, uint32 &ncount, AVDCamera *&cameras) |
| 获取机摄像头设备列表 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getLocalCameraIdByType (AVDHandle videoHandle, rtc::CameraType type, char *deviceId, uint32 &size) |
| 获取指定类型的本机摄像头信息 更多... | |
| RT_API_EXPORT uint32 | avd_videodevice_getCameraCapabilitiesCount (AVDHandle vdeviceHandle, const char *deviceId) |
| 获取指定设备Id的摄像头可支持的采集参数个数 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getCameraCapabilities (AVDHandle vdeviceHandle, const char *deviceId, uint32 &ncount, AVDCameraCapability *&capabilities) |
| 获取指定设备Id的摄像头采集参数列表 更多... | |
| RT_API_EXPORT uint32 | avd_videodevice_getRemoteCameraCount (AVDHandle vdeviceHandle, const char *userId) |
| 获取远端用户的摄像头设备个数 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getRemoteCameras (AVDHandle vdeviceHandle, const char *userId, uint32 &ncount, AVDCamera *&cameras) |
| 获取远端用户的摄像头设备列表 更多... | |
| RT_API_EXPORT Result | avd_videodevice_getDefaultCamera (AVDHandle vdeviceHandle, AVDCamera &defaultCamera) |
| 获取本机缺省摄像头信息 更多... | |
| RT_API_EXPORT Result | avd_videodevice_setDefaultCamera (AVDHandle vdeviceHandle, const char *deviceId) |
| 设置本机缺省摄像头信息 更多... | |
| typedef struct FakeVideoCallback* LFakeVideoCallback |
房间中导入视频的回调
| typedef struct Video_Callback* LPVideo_Callback |
房间中视频模块回调接口.
视频模块回调接口定义了房间中视频相关的通知和视频异步操作返回。
| typedef struct VideoDevice_Callback* LPVideoDevice_Callback |
视频设备管理回调接口.
视频设备管理回调接口定义了视频设备相关通知。
| RT_API_EXPORT Result avd_fakeVideoCapturer_create | ( | AVDHandle & | videoCapturerHandle, |
| rtc::FourCC | fourFormat, | ||
| AVDBool | isScreen, | ||
| LFakeVideoCallback | cb | ||
| ) |
创建一个视频导入对象句柄
| [in] | videoCapturerHandle | 视频导入对象句柄。 |
| [in] | fourFormat | 将要传入的视频数据类型。 |
| [in] | isScreen | 是否是桌面共享。 |
| RT_API_EXPORT Result avd_fakeVideoCapturer_destory | ( | AVDHandle | videoCapturerHandle | ) |
| RT_API_EXPORT Result avd_fakeVideoCapturer_inputCapturedFrame | ( | AVDHandle | videoCapturerHandle, |
| uint64 | timestamp_ns, | ||
| uint32 | format, | ||
| int | w, | ||
| int | h, | ||
| const uint8 * | data, | ||
| size_t | len, | ||
| int | rotation, | ||
| bool | mirror | ||
| ) |
给Capturer输入原始图像
| [in] | timestamp_ns | 时间戳, nanos second |
| [in] | format | 原始图像格式,见FourCC枚举 |
| [in] | w | 图像宽度 |
| [in] | h | 图像高度 |
| [in] | data | 图像内容数据指针 |
| [in] | len | 图像内容大小 |
| [in] | rotation | 图像需要旋转的角度,顺时针方向,取值:0,90,180,270 |
| [in] | mirror | 镜面图像,左右翻转 |
| RT_API_EXPORT Result avd_fakeVideoCapturer_inputEncodedFrame | ( | AVDHandle | videoCapturerHandle, |
| uint64 | timestamp_ns, | ||
| int | w, | ||
| int | h, | ||
| const uint8 * | sample, | ||
| size_t | sample_size | ||
| ) |
给Capturer输入编码后的数据
| [in] | timestamp_ns | 时间戳, nanos second |
| [in] | w | 图像宽度 |
| [in] | h | 图像高度 |
| [in] | sample | 图像内容数据指针 |
| [in] | sample_size | 图像内容大小 |
| RT_API_EXPORT bool avd_fakeVideoisRunning | ( | AVDHandle | videoCapturerHandle | ) |
判断Capturer是否正在运行
| RT_API_EXPORT Result avd_video_attachRender | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| AVDHandle | renderHandle | ||
| ) |
关联视频数据和显示对象,在render中显示视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路共享的摄像头视频。 |
| [in] | renderHandle | 显示对象接口指针。 |
| RT_API_EXPORT Result avd_video_changeSubscribedVideoQuality | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| AVDVideoQuality | quality | ||
| ) |
更改订阅视频的视频质量
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| [in] | quality | 视频质量。 |
| RT_API_EXPORT Result avd_video_detachRender | ( | AVDHandle | videoHandle, |
| AVDHandle | renderHandle | ||
| ) |
解除某一显示对象与摄像头视频数据的关联
| [in] | videoHandle | 视频模块句柄。 |
| [in] | renderHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_detachRenderWithDeviceId | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
解除摄像头视频数据的所有显示对象关联
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路共享的摄像头视频。 |
| RT_API_EXPORT Result avd_video_getPublishedCamera | ( | AVDHandle | videoHandle, |
| uint32 | index, | ||
| AVDCamera & | item | ||
| ) |
根据索引获取发布的摄像头信息
| [in] | videoHandle | 视频模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 摄像头信息。 |
| RT_API_EXPORT uint32 avd_video_getPublishedCameraCount | ( | AVDHandle | videoHandle | ) |
获取已发布的摄像头数量
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_getPublishedCameras | ( | AVDHandle | videoHandle, |
| uint32 & | ncount, | ||
| AVDCamera *& | items | ||
| ) |
获取发布的摄像头信息列表
| [in] | videoHandle | 视频模块句柄。 |
| [in,out] | ncount | 请求窗口数量;实际消息返回数量。 |
| [out] | items | 摄像头集合存放列表。 |
| RT_API_EXPORT Result avd_video_getSubscribedCamera | ( | AVDHandle | videoHandle, |
| uint32 | index, | ||
| AVDCamera & | item | ||
| ) |
根据索引获取已订阅的摄像头信息
| [in] | videoHandle | 视频模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 摄像头信息。 |
| RT_API_EXPORT uint32 avd_video_getSubscribedCameraCount | ( | AVDHandle | videoHandle | ) |
获取已订阅的摄像头数量
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_getSubscribedCameras | ( | AVDHandle | videoHandle, |
| uint32 & | ncount, | ||
| AVDCamera *& | items | ||
| ) |
获取已订阅的摄像头信息列表
| [in] | videoHandle | 视频模块句柄。 |
| [in,out] | ncount | 请求窗口数量;实际消息返回数量。 |
| [out] | items | 摄像头集合存放列表。 |
| RT_API_EXPORT Result avd_video_init | ( | AVDHandle | roomHandle, |
| LPVideo_Callback | cb, | ||
| AVDHandle & | videoHandle | ||
| ) |
房间中视频模块接口.
房间视频模块定义房间中视频发布、订阅功能接口。初始视频模块接口.
| [in] | roomHandle | 房间句柄。 |
| [in] | cb | 视频模块回调接口指针。 |
| [out] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT AVDBool avd_video_isCameraPublished | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
判断摄像头是否已经发布到房间中
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| RT_API_EXPORT AVDBool avd_video_isCameraSubscribed | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
判断摄像头是否已经被本用户订阅
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| RT_API_EXPORT Result avd_video_muteLocalCamera | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
已经published或preview的视频暂停:视频卡住,且也不发送到网络上
| [in] | deviceId | 摄像头设备ID。 |
| RT_API_EXPORT Result avd_video_previewLocalCamera | ( | AVDHandle | videoHandle, |
| AVDHandle | renderHandle | ||
| ) |
预览本地缺省摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | renderHandle | 显示对象接口指针 |
| RT_API_EXPORT Result avd_video_previewLocalCameraWithDeviceId | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| AVDHandle | renderHandle | ||
| ) |
预览本地某一摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| [in] | renderHandle | 显示对象接口指针 |
| RT_API_EXPORT Result avd_video_previewLocalCameraWithFakeCapturer | ( | AVDHandle | videoHandle, |
| AVDCamera & | fakeDevice, | ||
| AVDHandle | videoCapturerHandle, | ||
| AVDHandle | renderHandle | ||
| ) |
预览模拟摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in,out] | fakeDevice | 模拟摄像头信息,接口会生成deviceId,生成规则:"userId_"+(用户输入的deviceId), 此处deviceId不能包含'_'和'{'、'}'此三个字符。 |
| [in] | videoCapturerHandle | 视频导入对象句柄。 |
| [in] | renderHandle | 视频渲染对象句柄 |
| RT_API_EXPORT Result avd_video_publishLocalCamera | ( | AVDHandle | videoHandle | ) |
发布缺省摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_publishLocalCameraWithDevice | ( | AVDHandle | videoHandle, |
| const AVDCamera & | device | ||
| ) |
发布摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | device | 摄像头信息。 |
| RT_API_EXPORT Result avd_video_publishLocalCameraWithFakeCapturer | ( | AVDHandle | videoHandle, |
| AVDCamera & | fakeDevice, | ||
| AVDHandle | videoCapturerHandle | ||
| ) |
发布模拟摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in,out] | fakeDevice | 模拟摄像头信息,接口会生成deviceId,生成规则:"userId_"+(用户输入的deviceId), 此处deviceId不能包含'_'和'{'、'}'此三个字符。 |
| [in] | videoCapturerHandle | 视频导入对象句柄。 |
| RT_API_EXPORT Result avd_video_remotecmdPublishCamera | ( | AVDHandle | videoHandle, |
| const AVDCamera & | device | ||
| ) |
命令远端用户发布某一摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | device | 远端摄像头信息。 |
| RT_API_EXPORT Result avd_video_remotecmdUnpublishCamera | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
命令远端用户取消发布摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id。 |
| RT_API_EXPORT Result avd_video_setMirror | ( | AVDHandle | handle, |
| const char * | deviceId, | ||
| bool | mirror | ||
| ) |
| RT_API_EXPORT Result avd_video_setVideoBitrate | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| int | minBitrateBps, | ||
| int | maxBitrateBps | ||
| ) |
设置视频动态码率调整的范围,最小和最大比特率,
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 视频设备对应ID。 |
| [in] | minBitrateBps | 最小比特率,单位bps |
| [in] | maxBitrateBps | 最大比特率,单位bps |
| RT_API_EXPORT Result avd_video_subscribe | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
订阅摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| RT_API_EXPORT Result avd_video_subscribeWithStreamType | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| AVDStreamType | stream | ||
| ) |
订阅摄像头视频指定视频质量视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| [in] | stream | 指定视频流(主流,辅流1,辅流2)。 |
| RT_API_EXPORT Result avd_video_switchLocalCamera | ( | AVDHandle | videoHandle, |
| const char * | fromId, | ||
| const char * | toId | ||
| ) |
已发布摄像头切换功能
| [in] | videoHandle | 视频模块句柄。 |
| [in] | fromId | 已发布摄像头Id。 |
| [in] | toId | 目标摄像头Id。 |
| RT_API_EXPORT Result avd_video_uninit | ( | AVDHandle | videoHandle | ) |
反初始屏幕窗口共享模块接口
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_unmuteLocalCamera | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
取消视频暂停
| [in] | deviceId | 摄像头设备ID。 |
| RT_API_EXPORT Result avd_video_unpreviewLocalCamera | ( | AVDHandle | videoHandle | ) |
取消预览缺省摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_unpreviewLocalCameraWithDeviceId | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
取消预览摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id。 |
| RT_API_EXPORT Result avd_video_unpublishLocalCamera | ( | AVDHandle | videoHandle | ) |
取消发布缺省摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| RT_API_EXPORT Result avd_video_unpublishLocalCameraWithDeviceId | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
取消发布摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | *deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| RT_API_EXPORT Result avd_video_unsubscribe | ( | AVDHandle | videoHandle, |
| const char * | deviceId | ||
| ) |
取消订阅摄像头视频
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一路摄像头视频。 |
| RT_API_EXPORT Result avd_video_updateCameraData | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| int | level, | ||
| const char * | description | ||
| ) |
摄像头数据更改
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | deviceId | 摄像头Id,唯一标示一个摄像头。 |
| [in] | level | 摄像头整形数据。 |
| [in] | description | 摄像头字符串数据。 |
| RT_API_EXPORT Result avd_video_updateCaptureCapability | ( | AVDHandle | videoHandle, |
| const char * | deviceId, | ||
| AVDCameraCapability & | quality | ||
| ) |
更新正在使用的摄像头的视频质量(分辨率和帧率)。
| [in] | videoHandle | 视频模块句柄。 |
| [in] | deviceId | 摄像头Id。 |
| [in] | quality | 视频质量。 |
| RT_API_EXPORT Result avd_videodevice_getCamera | ( | AVDHandle | vdeviceHandle, |
| const char * | deviceId, | ||
| AVDCamera & | item | ||
| ) |
获取指定设备Id的摄像头信息
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | *deviceId | 设备Id。 |
| [in] | item | 摄像头信息。 |
| RT_API_EXPORT Result avd_videodevice_getCameraCapabilities | ( | AVDHandle | vdeviceHandle, |
| const char * | deviceId, | ||
| uint32 & | ncount, | ||
| AVDCameraCapability *& | capabilities | ||
| ) |
获取指定设备Id的摄像头采集参数列表
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | deviceId | 设备Id。 |
| [in,out] | ncount | 请求数量;实际消息返回数量。 |
| [out] | *&capabilities | 摄像头采集参数列表。 |
| RT_API_EXPORT uint32 avd_videodevice_getCameraCapabilitiesCount | ( | AVDHandle | vdeviceHandle, |
| const char * | deviceId | ||
| ) |
获取指定设备Id的摄像头可支持的采集参数个数
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | deviceId | 设备Id。 |
| RT_API_EXPORT Result avd_videodevice_getDefaultCamera | ( | AVDHandle | vdeviceHandle, |
| AVDCamera & | defaultCamera | ||
| ) |
获取本机缺省摄像头信息
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [out] | defaultCamera | 摄像头设备。 |
| RT_API_EXPORT Result avd_videodevice_getLocalCamera | ( | AVDHandle | vdeviceHandle, |
| uint32 | index, | ||
| AVDCamera & | item | ||
| ) |
根据索引获取本地摄像头信息数量
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | index | 索引号,从0开始。 |
| [in] | item | 摄像头信息。 |
| RT_API_EXPORT uint32 avd_videodevice_getLocalCameraCount | ( | AVDHandle | vdeviceHandle | ) |
获取本地摄像头信息数量
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| RT_API_EXPORT Result avd_videodevice_getLocalCameraIdByType | ( | AVDHandle | videoHandle, |
| rtc::CameraType | type, | ||
| char * | deviceId, | ||
| uint32 & | size | ||
| ) |
获取指定类型的本机摄像头信息
| [in] | videoHandle | 视频设备管理模块句柄。 |
| [in] | type | 摄像头类型。 |
| [out] | deviceId | 摄像头设备ID号。 |
| [out] | size | 摄像头设备ID长度。 |
| RT_API_EXPORT Result avd_videodevice_getLocalCameras | ( | AVDHandle | vdeviceHandle, |
| uint32 & | ncount, | ||
| AVDCamera *& | cameras | ||
| ) |
获取机摄像头设备列表
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in,out] | ncount | 请求数量;实际消息返回数量。 |
| [in,out] | cameras | 摄像头设备列表。 |
| RT_API_EXPORT uint32 avd_videodevice_getRemoteCameraCount | ( | AVDHandle | vdeviceHandle, |
| const char * | userId | ||
| ) |
获取远端用户的摄像头设备个数
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | userId | 用户Id。 |
| RT_API_EXPORT Result avd_videodevice_getRemoteCameras | ( | AVDHandle | vdeviceHandle, |
| const char * | userId, | ||
| uint32 & | ncount, | ||
| AVDCamera *& | cameras | ||
| ) |
获取远端用户的摄像头设备列表
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | userId | 用户Id。 |
| [in,out] | ncount | 请求数量;实际消息返回数量。 |
| [out] | *&cameras | 摄像头设备列表。 |
| RT_API_EXPORT Result avd_videodevice_init | ( | AVDHandle | videoHandle, |
| LPVideoDevice_Callback | cb, | ||
| AVDHandle & | vdeviceHandle | ||
| ) |
初始屏视频设备管理接口
| [in] | videoHandle | 视频模块句柄。 |
| [in] | cb | 视频设备管理模块回调接口指针。 |
| [out] | vdeviceHandle | 视频设备管理模块句柄。 |
| RT_API_EXPORT Result avd_videodevice_setDefaultCamera | ( | AVDHandle | vdeviceHandle, |
| const char * | deviceId | ||
| ) |
设置本机缺省摄像头信息
| [in] | vdeviceHandle | 视频设备管理模块句柄。 |
| [in] | deviceId | 设备Id。 |
| RT_API_EXPORT Result avd_videodevice_uninit | ( | AVDHandle | vdeviceHandle | ) |
| RT_API_EXPORT void avd_videooption_getCapabilities | ( | uint32 | deviceQualities, |
| uint32 & | ncount, | ||
| AVDCameraCapability *& | capabilities | ||
| ) |
根据摄像头设备采集参数集获取采集参数列表。
| [in] | deviceQualities | 摄像头设备采集参数集。 |
| [in,out] | ncount | 请求数量,实际返回数量。 |
| [in] | *&capabilities | 摄像头设备采集参数列表。 |
| RT_API_EXPORT int avd_videooption_getCapabilitiesCount | ( | uint32 | deviceQualities | ) |
获取摄像头设备采集参数集中参数的数量。
| [in] | deviceQualities | 摄像头设备采集参数集。 |
| RT_API_EXPORT rtc::VideoRatio avd_videooption_getRatio | ( | uint32 | publishQualities | ) |
根据摄像头发布参数集获取发布的视频宽高比例。
| [in] | publishQualities | 摄像头发布参数集。 |
| RT_API_EXPORT Result avd_videooption_getStreamCapability | ( | uint32 | publishQualities, |
| rtc::StreamType | type, | ||
| AVDCameraCapability & | cap | ||
| ) |
根据摄像头发布参数集获取指定流的分辨率帧率
| [in] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| [out] | cap | 视频分辨率帧率。 |
| RT_API_EXPORT rtc::VideoCodec avd_videooption_getStreamCodec | ( | uint32 | publishQualities, |
| rtc::StreamType | type | ||
| ) |
根据摄像头发布参数集获取指定流的编码类型
| [in] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| RT_API_EXPORT rtc::VideoQuality avd_videooption_getStreamQuality | ( | uint32 | publishQualities, |
| rtc::StreamType | type | ||
| ) |
根据摄像头发布参数集获取指定流的质量
| [in] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| RT_API_EXPORT AVDBool avd_videooption_hasQuality | ( | uint32 | deviceQualities, |
| rtc::VideoQuality | value | ||
| ) |
video option operate
根据摄像头设备采集参数集判断是否支持指定的视频质量。
| [in] | deviceQualities | 摄像头设备采集参数集。 |
| [in] | value | 视频质量 |
| RT_API_EXPORT AVDBool avd_videooption_hasStream | ( | uint32 | publishQualities, |
| rtc::StreamType | type | ||
| ) |
根据摄像头发布参数集判断是否有主流或辅流
| [in] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| RT_API_EXPORT void avd_videooption_setRatio | ( | uint32 & | publishQualities, |
| rtc::VideoRatio | value | ||
| ) |
设置摄像头发布参数集中发布的视频宽高比例。
| [in,out] | publishQualities | 摄像头发布参数集。 |
| [in] | value | 视频宽高比例。 |
| RT_API_EXPORT Result avd_videooption_setStreamOptions | ( | uint32 & | publishQualities, |
| rtc::StreamType | type, | ||
| rtc::VideoQuality | quality, | ||
| rtc::VideoCodec | codec | ||
| ) |
设置指定流的视频发布参数
| [in,out] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| [in] | quality | 视频质量。 |
| [in] | codec | 编码类型。 |
| RT_API_EXPORT Result avd_videooption_setStreamOptionsWithCapability | ( | uint32 & | publishQualities, |
| rtc::StreamType | type, | ||
| const AVDCameraCapability & | cap, | ||
| rtc::VideoCodec | codec | ||
| ) |
设置指定流的视频发布参数
| [in,out] | publishQualities | 摄像头发布参数集。 |
| [in] | type | 流类型。 |
| [in] | cap | 视频分辨率帧率。 |
| [in] | codec | 编码类型。 |
1.8.15