public interface RCRTCCDNInputStream extends RCRTCInputStream
RCRTCStream.RCRTCTypeRONG_TAG, TAG_CDN, TAG_DEFAULT, TAG_MCU_LIVE, TAG_SCREEN_SHARE| 限定符和类型 | 方法和说明 |
|---|---|
RCRTCParamsType.RCRTCVideoFps |
getHighestFPS()
Added from 5.1.5
当前订阅成功的 CDN 流最高支持的帧率
|
RCRTCParamsType.RCRTCVideoResolution |
getHighestResolution()
Added from 5.1.5
当前订阅成功的 CDN 流最高支持的分辨率
|
RCRTCParamsType.RCRTCVideoFps |
getVideoFps()
Added from 5.1.5
获取订阅 CDN 流前设置的帧率
|
RCRTCParamsType.RCRTCVideoResolution |
getVideoResolution()
Added from 5.1.5
获取订阅 CDN 流前设置的分辨率
|
RCRTCVideoView |
getVideoView()
Added from 5.1.5
获取视频流的渲染视图
|
void |
setVideoConfig(RCRTCParamsType.RCRTCVideoResolution videoResolution,
RCRTCParamsType.RCRTCVideoFps videoFps,
IRCRTCResultCallback callback)
Added from 5.1.5
该方法有两个功能如下:
1.
|
void |
setVideoView(RCRTCVideoView videoView)
Added from 5.1.5
设置视频流的渲染视图
|
getMediaType, getResourceState, getStreamId, getTag, getType, getUserId, isMute, mutevoid setVideoView(RCRTCVideoView videoView)
videoView - RCRTCVideoViewRCRTCVideoView getVideoView()
void setVideoConfig(RCRTCParamsType.RCRTCVideoResolution videoResolution, RCRTCParamsType.RCRTCVideoFps videoFps, IRCRTCResultCallback callback)
videoResolution - 默认为null。为null时默认订阅原始 CDN 流分辨率videoFps - 默认为null。为null时默认订阅原始 CDN 流帧率RCRTCParamsType.RCRTCVideoFps getVideoFps()
getHighestFPS()。通过RCRTCCDNInputStream#setVideoConfig(RCRTCVideoResolution, RCRTCVideoFps, IRCRTCResultCallback) 设置RCRTCParamsType.RCRTCVideoResolution getVideoResolution()
getHighestResolution()。通过RCRTCCDNInputStream#setVideoConfig(RCRTCVideoResolution, RCRTCVideoFps, IRCRTCResultCallback) 设置RCRTCParamsType.RCRTCVideoResolution getHighestResolution()
RCRTCParamsType.RCRTCVideoFps getHighestFPS()