cn.tee3.avd_SDK-C++
2.1.0
|
视频发布选项类. 更多...
Public 成员函数 | |
PublishVideoOptions () | |
PublishVideoOptions (uint32 aoptionset) | |
bool | hasQuality (VideoQuality value) const |
判断视频发布中是否支持指定视频质量 更多... | |
VideoRatio | getRatio () const |
获取视频发布中采用的宽高比类型 更多... | |
void | setRatio (VideoRatio value) |
设置视频发布中采用的宽高比类型 更多... | |
VideoRotation | getRotation () const |
获取视频发布中采用的角度信息类型 更多... | |
void | setRotation (VideoRotation value) |
设置视频发布中采用的角度信息类型 更多... | |
Result | setStreamOptions (StreamType type, VideoQuality quality, VideoCodec codec=codec_default) |
设置指定流的视频发布参数 更多... | |
Result | setStreamOptions (StreamType type, const CameraCapability &cap, VideoCodec codec=codec_default) |
设置指定流的视频发布参数 更多... | |
CameraCapability | getStreamCapability (StreamType type) const |
获取指定流的分辨率帧率 更多... | |
VideoQuality | getStreamQuality (StreamType type) const |
获取指定流的视频质量 更多... | |
VideoCodec | getStreamCodec (StreamType type) const |
获取指定流的编码参数 更多... | |
int | getStreamPayload (StreamType type) const |
获取指定流的payload参数,SDK内部使用 更多... | |
bool | hasMainStream () const |
判断视频发布中是否有主流 更多... | |
bool | hasAssist1 () const |
判断视频发布中是否有辅流1 更多... | |
bool | hasAssist2 () const |
判断视频发布中是否有辅流2 更多... | |
void | normalize (uint32 deviceOptions) |
规范化视频发布选项,SDK内部使用 更多... | |
bool | isCodecHWSupported (StreamType type) const |
判断指定流是否支持硬件编码,SDK内部使用 更多... | |
bool | isCodecSupported (StreamType type) const |
判断指定流是否支持编码,SDK内部使用 更多... | |
StreamType | getPrioritySubscribeStream (VideoQuality quality, bool mustQuality) const |
获取视频发布中当前入会者优先订阅流,SDK内部使用 更多... | |
Public 属性 | |
uint32 | optionset |
视频发布选项类.
视频发布选项类定义了某视频设备在视频发布时视频流指定的视频质量、分辨率、宽高比和编码方式等参数集合。
PublishVideoOptions::PublishVideoOptions | ( | ) |
PublishVideoOptions::PublishVideoOptions | ( | uint32 | aoptionset | ) |
StreamType PublishVideoOptions::getPrioritySubscribeStream | ( | VideoQuality | quality, |
bool | mustQuality | ||
) | const |
获取视频发布中当前入会者优先订阅流,SDK内部使用
[in] | quality | 指定视频质量。 |
[in] | mustQuality | 是否必须选指定的视频质量。 |
VideoRatio PublishVideoOptions::getRatio | ( | ) | const |
获取视频发布中采用的宽高比类型
VideoRotation PublishVideoOptions::getRotation | ( | ) | const |
获取视频发布中采用的角度信息类型
CameraCapability PublishVideoOptions::getStreamCapability | ( | StreamType | type | ) | const |
获取指定流的分辨率帧率
VideoCodec PublishVideoOptions::getStreamCodec | ( | StreamType | type | ) | const |
获取指定流的编码参数
int PublishVideoOptions::getStreamPayload | ( | StreamType | type | ) | const |
获取指定流的payload参数,SDK内部使用
VideoQuality PublishVideoOptions::getStreamQuality | ( | StreamType | type | ) | const |
获取指定流的视频质量
bool PublishVideoOptions::hasAssist1 | ( | ) | const |
判断视频发布中是否有辅流1
bool PublishVideoOptions::hasAssist2 | ( | ) | const |
判断视频发布中是否有辅流2
bool PublishVideoOptions::hasMainStream | ( | ) | const |
判断视频发布中是否有主流
bool PublishVideoOptions::hasQuality | ( | VideoQuality | value | ) | const |
判断视频发布中是否支持指定视频质量
[in] | value | 指定视频质量。 |
bool PublishVideoOptions::isCodecHWSupported | ( | StreamType | type | ) | const |
判断指定流是否支持硬件编码,SDK内部使用
bool PublishVideoOptions::isCodecSupported | ( | StreamType | type | ) | const |
判断指定流是否支持编码,SDK内部使用
void PublishVideoOptions::normalize | ( | uint32 | deviceOptions | ) |
规范化视频发布选项,SDK内部使用
void PublishVideoOptions::setRatio | ( | VideoRatio | value | ) |
设置视频发布中采用的宽高比类型
[in] | value | 指定视频宽高比。 |
void PublishVideoOptions::setRotation | ( | VideoRotation | value | ) |
设置视频发布中采用的角度信息类型
[in] | value | 指定角度信息。 |
Result PublishVideoOptions::setStreamOptions | ( | StreamType | type, |
VideoQuality | quality, | ||
VideoCodec | codec = codec_default |
||
) |
设置指定流的视频发布参数
[in] | type | 流类型。 |
[in] | quality | 视频质量。 |
[in] | codec | 编码类型。 |
Result PublishVideoOptions::setStreamOptions | ( | StreamType | type, |
const CameraCapability & | cap, | ||
VideoCodec | codec = codec_default |
||
) |
设置指定流的视频发布参数
[in] | type | 流类型。 |
[in] | cap | 视频分辨率帧率。 |
[in] | codec | 编码类型。 |
uint32 PublishVideoOptions::optionset |