Documentation
¶
Index ¶
- type Event
- type OfferResult
- type Options
- type Session
- func (session *Session) AcceptOffer(connectionID string, offer webrtc.SessionDescription, ...) (OfferResult, error)
- func (session *Session) AddCandidate(connectionID string, candidate *webrtc.ICECandidateInit) error
- func (session *Session) AddReceiverCandidate(connectionID string, candidate *webrtc.ICECandidateInit) error
- func (session *Session) Close() error
- func (session *Session) CloseEdge(connectionID string)
- func (session *Session) CloseReceiver(connectionID string)
- func (session *Session) PrepareEdge(sourceConnectionID string, connectionID string, iceServers []webrtc.ICEServer) (webrtc.SessionDescription, error)
- func (session *Session) PrepareLocalEdge(sourceConnectionID string, connectionID string) (webrtc.SessionDescription, error)
- func (session *Session) SetAnswer(connectionID string, answer webrtc.SessionDescription) error
- func (session *Session) ShareID() string
- func (session *Session) UpdateProfile(profile nativecapture.VideoProfile) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OfferResult ¶ added in v1.5.6
type OfferResult struct {
Answer webrtc.SessionDescription
Audio bool
Codec string
Reused bool
}
type Options ¶
type Options struct {
EdgeCapacity int
PortMapping bool
Events chan<- Event
Relay *mediaedge.RelayOptions
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns the native media implementation for one Browser Viewer. Room, participant, route, and recovery authority remain in the Browser/server.
func (*Session) AcceptOffer ¶
func (session *Session) AcceptOffer( connectionID string, offer webrtc.SessionDescription, iceServers []webrtc.ICEServer, reuse bool, ) (OfferResult, error)
func (*Session) AddCandidate ¶
func (session *Session) AddCandidate(connectionID string, candidate *webrtc.ICECandidateInit) error
func (*Session) AddReceiverCandidate ¶
func (session *Session) AddReceiverCandidate( connectionID string, candidate *webrtc.ICECandidateInit, ) error
func (*Session) CloseReceiver ¶
func (*Session) PrepareEdge ¶
func (*Session) PrepareLocalEdge ¶
func (*Session) SetAnswer ¶
func (session *Session) SetAnswer(connectionID string, answer webrtc.SessionDescription) error
func (*Session) UpdateProfile ¶
func (session *Session) UpdateProfile(profile nativecapture.VideoProfile) error
UpdateProfile records the Host ceiling; receiving alone never starts derivation.
Click to show internal directories.
Click to hide internal directories.