您目前访问的是 TRTC SDK 4.x 的文档。
点击这里升级到 TRTC SDK 5.x 的版本。
Home
Namespaces
TRTC
VERSION
checkSystemRequirements
isScreenShareSupported
isSmallStreamSupported
getDevices
getCameras
getMicrophones
getSpeakers
createClient
createStream
TRTC.Logger
LogLevel
setLogLevel
enableUploadLog
disableUploadLog
Classes
Client
join
leave
destroy
publish
unpublish
subscribe
unsubscribe
switchRole
on
off
getRemoteMutedState
getTransportStats
getLocalAudioStats
getLocalVideoStats
getRemoteAudioStats
getRemoteVideoStats
startPublishCDNStream
stopPublishCDNStream
startMixTranscode
stopMixTranscode
enableAudioVolumeEvaluation
enableSmallStream
disableSmallStream
setSmallStreamProfile
setRemoteVideoStreamType
sendSEIMessage
setProxyServer
setTurnServer
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
setAudioCaptureVolume
play
stop
resume
close
muteAudio
muteVideo
unmuteAudio
unmuteVideo
getId
getUserId
setAudioOutput
getAudioLevel
hasAudio
hasVideo
getAudioTrack
getVideoTrack
getVideoFrame
on
off
RemoteStream
getType
play
stop
resume
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
SEI_MESSAGE
ERROR
StreamEvent
PLAYER_STATE_CHANGED
SCREEN_SHARING_STOPPED
CONNECTION_STATE_CHANGED
DEVICE_AUTO_RECOVERED
ERROR
ErrorCode
INVALID_PARAMETER
INVALID_OPERATION
NOT_SUPPORTED
DEVICE_NOT_FOUND
INITIALIZE_FAILED
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
REMOTE_STREAM_NOT_EXIST
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
API_CALL_TIMEOUT
SCHEDULE_FAILED
API_CALL_ABORTED
UNKNOWN
Tutorials
相关信息
SDK 升级指引
SDK 版本发布日志
WebRTC 已知问题及规避方案
错误码说明及处理建议
房间内上行用户个数限制
浏览器与应用环境信息
基础教程
快速跑通 Demo
开始集成音视频通话
实现互动直播连麦
切换摄像头和麦克风
设置本地视频属性
动态关闭打开本地音频或视频
屏幕分享
音量大小检测
进阶教程
自定义采集与自定义播放渲染
背景音乐和音效实现方案
通话前环境与设备检测
通话前的网络质量检测
检测设备插拔行为
实现推流到 CDN
开启大小流传输
开启美颜
开启水印
实现跨房连麦
实现云端混流
实现云端录制
实时语音识别
实现 AI 降噪
实现 3D 空间音频
实现变声
最佳实践
自动播放受限处理建议
Electron 屏幕分享方案
企业内网代理方案
Global
RtcError
RtcError
new RtcError
()
RtcError 错误对象
Extends
Error
Methods
getCode
()
获取错误码
详细错误码列表参见
ErrorCode
。