Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimulcastLayerToRID ¶
func SimulcastLayerToRID(layer SimulcastLayer) string
Types ¶
type Config ¶
type Config struct { // Enable simulcast extension. EnableSimulcast bool `yaml:"simulcast"` // Pulibc IP address of the SFU. PublicIPs []string `yaml:"ipAddresses"` }
Configuration of the WebRTC API for the SFU.
type PeerConnectionFactory ¶
type PeerConnectionFactory struct {
// contains filtered or unexported fields
}
Peer connection factory is used to construct new (pre-configured) peer connections.
func NewPeerConnectionFactory ¶
func NewPeerConnectionFactory(config Config) (*PeerConnectionFactory, error)
func (*PeerConnectionFactory) CreatePeerConnection ¶
func (f *PeerConnectionFactory) CreatePeerConnection() (*webrtc.PeerConnection, error)
Creates a peer connection with a specifically configured API (with simulcast etc).
type RTCPPacketType ¶
type RTCPPacketType int
const ( PictureLossIndicator RTCPPacketType = iota + 1 FullIntraRequest )
type SimulcastLayer ¶
type SimulcastLayer int
const ( SimulcastLayerNone SimulcastLayer = iota SimulcastLayerLow SimulcastLayerMedium SimulcastLayerHigh )
func RIDToSimulcastLayer ¶
func RIDToSimulcastLayer(rid string) SimulcastLayer
func (SimulcastLayer) String ¶
func (s SimulcastLayer) String() string
Click to show internal directories.
Click to hide internal directories.