media

package
v1.1.7-0...-d08fa44 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description struct {
	Type string `json:"type"`
	SDP  string `json:"sdp"`
}

Description sdp

type Media

type Media interface {
	CreateOffer() (*Description, error)
	CreateAnswer() (*Description, error)
	SetLocalDescription(desc *Description) error
	SetRemoteDescription(desc *Description) error
	Tracks() map[string]*Track
	OnTrack(func(*Track))
}

Media interface

type Track

type Track interface {
	Name() string
	WriteRTP(buf []byte)
	WriteRTCP(buf []byte)
	ReadRTP() <-chan []byte
	ReadRTCP() <-chan []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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