Home
Namespaces
TRTC
VERSION
checkSystemRequirements
isScreenShareSupported
getDevices
getCameras
getMicrophones
getSpeakers
createClient
createStream
TRTC.Logger
LogLevel
setLogLevel
enableUploadLog
disableUploadLog
Classes
Client
setProxyServer
setTurnServer
join
leave
publish
unpublish
subscribe
unsubscribe
switchRole
on
off
getRemoteMutedState
getTransportStats
getLocalAudioStats
getLocalVideoStats
getRemoteAudioStats
getRemoteVideoStats
startPublishCDNStream
stopPublishCDNStream
startMixTranscode
stopMixTranscode
enableAudioVolumeEvaluation
Stream
play
stop
resume
close
muteAudio
muteVideo
unmuteAudio
unmuteVideo
getId
getUserId
setAudioOutput
setAudioVolume
getAudioLevel
hasAudio
hasVideo
getAudioTrack
getVideoTrack
getVideoFrame
on
off
LocalStream
initialize
setAudioProfile
setVideoProfile
setScreenProfile
setVideoContentHint
switchDevice
addTrack
removeTrack
replaceTrack
play
stop
resume
close
muteAudio
muteVideo
unmuteAudio
unmuteVideo
getId
getUserId
setAudioOutput
getAudioLevel
hasAudio
hasVideo
getAudioTrack
getVideoTrack
getVideoFrame
on
off
RemoteStream
getType
play
stop
resume
close
muteAudio
muteVideo
unmuteAudio
unmuteVideo
getId
getUserId
setAudioOutput
setAudioVolume
getAudioLevel
hasAudio
hasVideo
getAudioTrack
getVideoTrack
getVideoFrame
on
off
RtcError
getCode
Modules
ClientEvent
STREAM_ADDED
STREAM_REMOVED
STREAM_UPDATED
STREAM_SUBSCRIBED
CONNECTION_STATE_CHANGED
PEER_JOIN
PEER_LEAVE
MUTE_AUDIO
MUTE_VIDEO
UNMUTE_AUDIO
UNMUTE_VIDEO
CLIENT_BANNED
NETWORK_QUALITY
AUDIO_VOLUME
ERROR
StreamEvent
PLAYER_STATE_CHANGED
SCREEN_SHARING_STOPPED
CONNECTION_STATE_CHANGED
ERROR
ErrorCode
INVALID_PARAMETER
INVALID_OPERATION
NOT_SUPPORTED
DEVICE_NOT_FOUND
SIGNAL_CHANNEL_SETUP_FAILED
SIGNAL_CHANNEL_ERROR
ICE_TRANSPORT_ERROR
JOIN_ROOM_FAILED
CREATE_OFFER_FAILED
SIGNAL_CHANNEL_RECONNECTION_FAILED
UPLINK_RECONNECTION_FAILED
DOWNLINK_RECONNECTION_FAILED
CLIENT_BANNED
SERVER_TIMEOUT
SUBSCRIPTION_TIMEOUT
PLAY_NOT_ALLOWED
DEVICE_AUTO_RECOVER_FAILED
START_PUBLISH_CDN_FAILED
STOP_PUBLISH_CDN_FAILED
START_MIX_TRANSCODE_FAILED
STOP_MIX_TRANSCODE_FAILED
NOT_SUPPORTED_H264
SWITCH_ROLE_FAILED
UNKNOWN
Tutorials
相关信息
SDK 升级指引
SDK 版本发布日志
WebRTC 已知问题及规避方案
错误码说明及处理建议
房间内上行用户个数限制
基础教程
快速跑通 Demo
基础音视频通话
互动直播
切换摄像头和麦克风
设置本地视频属性
动态关闭打开本地音频或视频
屏幕分享
音量大小检测
进阶教程
自定义采集与自定义播放渲染
自动播放受限处理建议
背景音乐和音效实现方案
检测浏览器支持性
检测通话前的网络质量
检测设备插拔行为
实现推流到 CDN
Global
RtcError
RtcError
new RtcError
()
RtcError 错误对象
Extends
Error
Methods
getCode
()
获取错误码
详细错误码列表参见
ErrorCode
。