You are currently accessing the documentation for TRTC SDK version 4.x.
Please click here to upgrade to TRTC SDK version 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
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
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
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
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
NOT_SUPPORTED_H264
SWITCH_ROLE_FAILED
API_CALL_TIMEOUT
SCHEDULE_FAILED
API_CALL_ABORTED
UNKNOWN
Tutorials
Related Information
SDK Upgrade Guide
SDK Changelog
WebRTC Known Issues and Solutions
Error Codes and Solutions
Maximum Number of Upstream Users in a Room
Browsers Supported
Basic Tutorials
Demo Quick Run
Quick Start Call
Interactive Live Streaming
Switching Cameras/Mics
Setting Local Video Properties
Dynamically Enabling/Disabling Local Audio/Video
Screen Sharing
Detecting Volume
Advanced Tutorials
Custom Capturing and Playback Rendering
Adding Music and Audio Effects
Environment and Device Check Before Calls
Network Quality Check Before Calls
Device Change Check
Enabling Dual-Stream Mode
Enabling Beauty Filters
Enabling Watermarking
Cross-Room Communication
Best Practices
Suggested Solutions for Autoplay Restrictions
Electron uses TRTC Web SDK for screen sharing
Using proxy to handle firewall restrictions
Implement AI noise reduction
Implement 3D spatial audio
Implement voice change
Global
Tutorial: Error Codes and Solutions
Error Codes and Solutions