Custom signaling
Function description
Based on WEBRTC to achieve many-to-many real-time audio and video interactive communication, it is necessary to build a signaling server as a signaling forwarding operation
Signaling is actually a signal used for control.
Socket is cross-platform, cross-terminal, cross-language, and has the concept of room. It can also be forwarded by signaling. You can trust it by using socket directly.Make forward
socket may transmit any data, for each end unity, i.e., it is necessary to mutually agreed fields
custom signaling
Custom signaling
currently includespubMsg
,delMsg
, andsetProperty
. For data format, check the corresponding document
Implementation
- joinChannel successfully joined the channel
- pubMsg sends signaling messages
- delMsg delete signaling message
- setProperty sets user properties
API reference
Android
iOS
Web
Development considerations
delMsg
andpubMsg
are paired, call delMsg then, you will no longer receive the correspondingpubMsg
- After refreshing, rejoin the room, you will receive all undel
pubMsg
at one time - It is not recommended that viewers call the
setProperty
andpubMsg
interfaces in the live broadcast scene to ensure the server load