Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorNotFound = errors.New("WebRTC Stream Not Found") ErrorCodecNotSupported = errors.New("WebRTC Codec Not Supported") ErrorClientOffline = errors.New("WebRTC Client Offline") ErrorNotTrackAvailable = errors.New("WebRTC Not Track Available") ErrorIgnoreAudioTrack = errors.New("WebRTC Ignore Audio Track codec not supported WebRTC support only PCM_ALAW or PCM_MULAW") )
Functions ¶
This section is empty.
Types ¶
type Muxer ¶
type Muxer struct { Pc *webrtc.PeerConnection ClientACK *time.Timer StreamACK *time.Timer Options Options // contains filtered or unexported fields }
func (*Muxer) NewPeerConnection ¶
func (*Muxer) WriteHeader ¶
type Options ¶
type Options struct { // ICEServers is a required array of ICE server URLs to connect to (e.g., STUN or TURN server URLs) ICEServers []string // ICEUsername is an optional username for authenticating with the given ICEServers ICEUsername string // ICECredential is an optional credential (i.e., password) for authenticating with the given ICEServers ICECredential string // ICECandidates sets a list of external IP addresses of 1:1 ICECandidates []string // PortMin is an optional minimum (inclusive) ephemeral UDP port range for the ICEServers connections PortMin uint16 // PortMin is an optional maximum (inclusive) ephemeral UDP port range for the ICEServers connections PortMax uint16 }
Click to show internal directories.
Click to hide internal directories.