Documentation
¶
Index ¶
- Variables
- type Muxer
- func (element *Muxer) AddIceCandidate(candidate []byte) error
- func (element *Muxer) Close() error
- func (element *Muxer) NewPeerConnection(configuration webrtc.Configuration) (*webrtc.PeerConnection, error)
- func (element *Muxer) WriteHeader(streams []av.CodecData, sdp64 string) (string, error)
- func (element *Muxer) WritePacket(pkt av.Packet) (err error)
- type Options
- type Stream
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 { ClientACK *time.Timer StreamACK *time.Timer Options Options // contains filtered or unexported fields }
func (*Muxer) AddIceCandidate ¶ added in v1.0.6
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.