Documentation
¶
Index ¶
- Constants
- func GetPubMediaPath(rid, mid string, ssrc uint32) string
- func GetPubMediaPathKey(rid string) string
- func GetPubNodePath(rid, uid string) string
- func MarshalNodeField(node NodeInfo) (string, string, error)
- func MarshalTrackField(id string, infos []TrackInfo) (string, string, error)
- func UnmarshalTrackField(key string, value string) (string, *[]TrackInfo, error)
- type BroadcastMsg
- type ClientUserInfo
- type CloseMsg
- type JoinMsg
- type LeaveMsg
- type LoginMsg
- type MediaInfo
- type NodeInfo
- type PublishMsg
- type PublishOptions
- type PublishResponseMsg
- type RTCInfo
- type RoomInfo
- type StreamAddMsg
- type StreamRemoveMsg
- type SubscribeMsg
- type SubscribeResponseMsg
- type TrackInfo
- type TrackMap
- type TrickleMsg
- type UnpublishMsg
- type UnsubscribeMsg
- type UserInfo
Constants ¶
View Source
const ( // client to ion ClientLogin = "login" ClientJoin = "join" ClientLeave = "leave" ClientPublish = "publish" ClientUnPublish = "unpublish" ClientSubscribe = "subscribe" ClientUnSubscribe = "unsubscribe" ClientClose = "close" ClientBroadcast = "broadcast" ClientTrickleICE = "trickle" // ion to client ClientOnJoin = "peer-join" ClientOnLeave = "peer-leave" ClientOnStreamAdd = "stream-add" ClientOnStreamRemove = "stream-remove" // ion to islb IslbFindService = "findService" IslbGetPubs = "getPubs" IslbGetMediaInfo = "getMediaInfo" IslbRelay = "relay" IslbUnrelay = "unRelay" IslbKeepAlive = "keepAlive" IslbClientOnJoin = ClientOnJoin IslbClientOnLeave = ClientOnLeave IslbOnStreamAdd = ClientOnStreamAdd IslbOnStreamRemove = ClientOnStreamRemove IslbOnBroadcast = ClientBroadcast SFUTrickleICE = ClientTrickleICE SFUStreamRemove = ClientOnStreamRemove IslbID = "islb" )
Variables ¶
This section is empty.
Functions ¶
func GetPubMediaPath ¶
func GetPubMediaPathKey ¶
func GetPubNodePath ¶
func MarshalNodeField ¶ added in v0.2.0
func MarshalTrackField ¶ added in v0.2.0
Types ¶
type BroadcastMsg ¶ added in v0.3.5
type BroadcastMsg struct {
RoomInfo
Info json.RawMessage `json:"info"`
}
type ClientUserInfo ¶ added in v0.3.5
type ClientUserInfo struct {
Name string `json:"name"`
}
type JoinMsg ¶ added in v0.3.5
type JoinMsg struct {
RoomInfo
Info ClientUserInfo `json:"info"`
}
type LeaveMsg ¶ added in v0.3.5
type LeaveMsg struct {
RoomInfo
Info ClientUserInfo `json:"info"`
}
type MediaInfo ¶ added in v0.2.0
type MediaInfo struct {
DC string `json:"dc,omitempty"` //Data Center ID
NID string `json:"nid,omitempty"` //Node ID
RID string `json:"rid,omitempty"` //Room ID
UID string `json:"uid,omitempty"` //User ID
MID string `json:"mid,omitempty"` //Media ID
}
func ParseMediaInfo ¶ added in v0.2.0
Parse dc1/sfu-tU2GInE5Lfuc/7485294b-9815-4888-83a5-631e77445b67/room1/media/pub/7e97c1e8-c80a-4c69-81b0-27efc83e6120
type NodeInfo ¶ added in v0.2.0
type PublishMsg ¶ added in v0.3.5
type PublishMsg struct {
RoomInfo
RTCInfo
Options PublishOptions `json:"options"`
}
type PublishOptions ¶ added in v0.3.5
type PublishResponseMsg ¶ added in v0.3.5
type RTCInfo ¶ added in v0.3.5
type RTCInfo struct {
Jsep webrtc.SessionDescription `json:"jsep"`
}
type StreamAddMsg ¶ added in v0.3.5
type StreamAddMsg struct {
MediaInfo
Info ClientUserInfo `json:"info"`
Tracks TrackMap `json:"tracks"`
}
type StreamRemoveMsg ¶ added in v0.3.5
type StreamRemoveMsg struct {
MediaInfo
}
type SubscribeMsg ¶ added in v0.3.5
type SubscribeResponseMsg ¶ added in v0.3.5
type TrickleMsg ¶ added in v0.3.5
type TrickleMsg struct {
MediaInfo
Info json.RawMessage `json:"info"`
Trickle json.RawMessage `json:"trickle"`
}
type UnpublishMsg ¶ added in v0.3.5
type UnpublishMsg struct {
MediaInfo
}
type UnsubscribeMsg ¶ added in v0.3.5
type UnsubscribeMsg struct {
MediaInfo
}
Click to show internal directories.
Click to hide internal directories.