Documentation
¶
Index ¶
Constants ¶
View Source
const ( SfuSignalType_Join = "join" SfuSignalType_Offer = "offer" SfuSignalType_Answer = "answer" SfuSignalType_Trickle = "trickle" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SfuSignal ¶
type SfuSignal struct {
//四种类型
SignalType string `json:"type,omitempty"`
// 房间号
Sid string `json:"sid,omitempty"`
// 房间的原始节点
PrimaryPeerId string `json:"sid,omitempty"`
// join,offer,answer
Sdp *webrtc.SessionDescription `json:"sdp,omitempty"`
// candidate(trickle) publisher:0 or subscriber:1
Target int `json:"target,omitempty"`
// candidate(trickle)
Candidate *webrtc.ICECandidateInit `json:"candidate,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.