Documentation
¶
Index ¶
Constants ¶
View Source
const WTNBaseURL = "https://signaling.rtc.qcloud.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SDKAppID uint32 Secret string Audio bool Video bool // We can use this track to publish // If not set, we will create a new track AudioTrack webrtc.TrackLocal VideoTrack webrtc.TrackLocal }
WTN config struct
type ConnectionState ¶
type ConnectionState int
const ( ConnectionStateNew ConnectionState = iota + 1 ConnectionStateConnected ConnectionStateDisconnected ConnectionStateFailed )
type WTNClient ¶
type WTNClient struct {
// contains filtered or unexported fields
}
func (*WTNClient) OnConnectionStateChange ¶
func (c *WTNClient) OnConnectionStateChange(f func(ConnectionState))
Click to show internal directories.
Click to hide internal directories.