类 | |
struct | ExternalAudioFrame |
struct | ExternalVideoFrame |
class | IMicManager |
class | IPlayoutManager |
class | IRTCAudioFrameObserver |
class | IRTCChannel |
class | IRTCChannelEventHandler |
class | IRTCEngine |
class | IRTCEngineEventHandler |
class | IRTCVideoFrameObserver |
class | IVideoDeviceManager |
struct | LocalAudioStats |
struct | LocalVideoStats |
struct | RemoteAudioStats |
struct | RemoteVideoStats |
struct | RTC_RESULT |
struct | RtcRect |
struct | RTCStats |
统计信息 更多... | |
struct | Stru_RtmpLiveTranscoding |
struct | Stru_RtmpRtcImage |
struct | Stru_RtmpTranscodingUser |
struct | Stru_RtmpUplinesAddr |
struct | Stru_RtmpUplinesInfo |
struct | VideoProfile |
struct | YuvI420VideoFrame |
类型定义 | |
typedef void(* | SDK_CB) (RTC_RET_CODE) |
标准的sdk回调函数; 由于系统中有不少是异步调用方式,需要在后续返回结果 更多... | |
typedef void(* | log_func) (const char *msg) |
log function 更多... | |
typedef unsigned int | UserId |
typedef HWND | WindowIdType |
typedef struct rtc::RtcRect | Rect |
函数 | |
RTCSDKDLL_API VideoProfile * | getVideoProfile () |
RTCSDKDLL_API bool | getVideoResolution (RTC_VIDEO_RESOLUTION profile, int &width, int &height) |
变量 | |
const unsigned | MAX_DEVICE_ID_LENGTH = 512 |
const unsigned | MAX_DEVICE_COUNT = 16 |
类型定义说明
◆ SDK_CB
typedef void(* rtc::SDK_CB) (RTC_RET_CODE) |
标准的sdk回调函数; 由于系统中有不少是异步调用方式,需要在后续返回结果
◆ log_func
typedef void(* rtc::log_func) (const char *msg) |
log function
◆ UserId
typedef unsigned int rtc::UserId |
◆ WindowIdType
typedef HWND rtc::WindowIdType |
◆ Rect
typedef struct rtc::RtcRect rtc::Rect |
Definition of the rectangular region.
枚举类型说明
◆ RTCEngineType
enum rtc::RTCEngineType |
◆ RTCLOGTYPE
enum rtc::RTCLOGTYPE |
◆ RTC_RET_CODE
enum rtc::RTC_RET_CODE |
sdk event handler onError return-code
◆ RTC_MEDIA_DEVICE_STATE_TYPE
◆ RTC_MEDIA_DEVICE_TYPE
◆ RTC_VIDEO_RENDER_MODE
◆ CLIENT_ROLE_TYPE
◆ STREAM_FALLBACK_OPTIONS
Stream fallback options.
◆ RTC_AUDIO_CAPTURE_SRC_TYPE
◆ RTC_VIDEO_RATIO
enum rtc::RTC_VIDEO_RATIO |
◆ RTC_VIDEO_BITRATE
◆ RTC_VIDEO_RESOLUTION
◆ RTC_VIDEO_ROTATION
◆ RTC_VIDEO_QUALITY_PARAM_PRESET
:SDK推流画质预设选项
\\\\\\\\\\\\\\\\\ 推流的画面质量预设选项 \\\\\\\\\\\\\\\\\
- 1.2.0 版本开始引入推流画质接口 setVideoQualityParamPreset 用于傻瓜化的选择推流画质效果。
- LivePush::setVideoQualityParamPreset 内部通过预先配置不同的视频参数调整到对应的质量
- 目前支持的几种画质选项如下:
(1)标清 - 采用 640 * 360 级别分辨率,码率会在 400kbps - 800kbps 之间自适应,如果主播的网络条件不理想, 直播的画质会偏模糊,但总体卡顿率不会太高。 Android平台下这一档我们会选择采用软编码,软编码虽然更加耗电,但在运动画面的表现要优于硬编码。
(2)高清 - 采用 960 * 540 级别分辨率,码率会锁定在 1200kbps,如果主播的网络条件不理想,直播画质不会有变化, 但这段时间内会出现频繁的卡顿和跳帧。 两个平台下,这一档我们都会采用硬编码。
(3)超清 - 采用 1280 * 720 级别分辨率,码率会锁定在 1500kbps,对主播的上行带宽要求比较高,适合观看端是大屏的业务场景。
(4)大主播 - 顾名思义,连麦中大主播使用,因为是观众的主画面,追求清晰一些的效果,所以分辨率会优先选择 960 * 540。
(5)小主播 - 顾名思义,连麦中小主播使用,因为是小画面,画面追求流畅,分辨率采用 480 * 320, 码率 350kbps 固定。
(6)实时音视频通话 - 时延低,小画面,画面追求流畅,分辨率采用 480 * 320, 码率 350kbps 固定。
(7)静态画质场景 - 画面变动小,能保证非常低的码率下,视频相对清晰,如截屏正在播放的ppt,1080p,400kb左右码率。 【特别说明】
- 使用 setVideoQualityParamPreset 之后,依然可以使用setVideoBitrate、setVideoFPS、setAutoAdjustStrategy等设置自定义画质,以最后一次的设置为准。
◆ RTC_OUTPUT_VIDEO_FORMAT
◆ RTC_VIDEO_BUFFER_TYPE
◆ RTC_VIDEO_PIXEL_FORMAT
◆ RTC_BEAUTY_STYLE
◆ RTC_AUDIO_FRAME_FORMAT
◆ NETWORK_QUALITY_TYPE
◆ RTC_REMOTE_VIDEO_STATE
枚举值 | |
---|---|
REMOTE_VIDEO_STATE_STOPPED | ␈␈0: The remote video is in the default state, probably due to REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED (3), REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED (5), or REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE (7). |
REMOTE_VIDEO_STATE_STARTING | 1: The first remote video packet is received. |
REMOTE_VIDEO_STATE_DECODING | 2: The remote video stream is decoded and plays normally, probably due to REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY (2), REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED (4), REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED (6), or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY (9). |
REMOTE_VIDEO_STATE_FROZEN | 3: The remote video is frozen, probably due to REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION (1) or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK (8). |
REMOTE_VIDEO_STATE_FAILED | 4: The remote video fails to start, probably due to REMOTE_VIDEO_STATE_REASON_INTERNAL (0). |
◆ RTC_REMOTE_VIDEO_STATE_REASON
◆ RTC_LOCAL_VIDEO_STREAM_STATE
◆ RTC_LOCAL_VIDEO_STREAM_ERROR
Local video state error codes
◆ RTMP_STREAM_PUBLISH_STATE
◆ RTMP_STREAM_PUBLISH_ERROR
◆ REMOTE_AUDIO_STATE
◆ REMOTE_AUDIO_STATE_REASON
◆ CONNECTION_CHANGED_REASON_TYPE
Reasons for a connection state change.
◆ RTC_CONNECTION_STATE_TYPE
Connection states.
◆ VIDEO_BUFFERING_STATE
◆ REMOTE_VIDEO_STREAM_TYPE
◆ BUSI_USER_ROLE
enum rtc::BUSI_USER_ROLE |
◆ RAW_AUDIO_FRAME_OP_MODE_TYPE
Use modes of the onRecordAudioFrame callback.
◆ SUBSCRIPTION_STREAM_TYPE
◆ PRIORITY_TYPE
enum rtc::PRIORITY_TYPE |
◆ RTCFeature
enum rtc::RTCFeature |
◆ CHANNEL_MEDIA_RELAY_STATE
◆ CHANNEL_MEDIA_RELAY_ERROR
◆ CHANNEL_MEDIA_RELAY_EVENT
◆ RTC_AUDIO_PROCESS_MODE
◆ STREAM_SUBSCRIBE_STATE
◆ STREAM_PUBLISH_STATE
函数说明
◆ getVideoProfile()
RTCSDKDLL_API VideoProfile * rtc::getVideoProfile | ( | ) |
获取视频分辨率配置表
- 返回
- 返回视频分辨率配置表, 以各项数据为0表示结束,外部不能释放这个配置表
◆ getVideoResolution()
RTCSDKDLL_API bool rtc::getVideoResolution | ( | RTC_VIDEO_RESOLUTION | profile, |
int & | width, | ||
int & | height | ||
) |
变量说明
◆ MAX_DEVICE_ID_LENGTH
const unsigned rtc::MAX_DEVICE_ID_LENGTH = 512 |
◆ MAX_DEVICE_COUNT
const unsigned rtc::MAX_DEVICE_COUNT = 16 |