webrtc_ext

package
v0.0.0-...-3f3c78e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

type TrackInfo

type TrackInfo struct {
	TrackID  string
	StreamID string
	Kind     webrtc.RTPCodecType
	Codec    webrtc.RTPCodecCapability
}

Basic information about a track.

func TrackInfoFromTrack

func TrackInfoFromTrack(track *webrtc.TrackRemote) TrackInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL