trackstreamer

package
v0.0.0-...-a4649ec Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(track RTPReader, format beep.Format) (beep.Streamer, error)

Types

type RTPReader

type RTPReader interface {
	ReadRTP() (*rtp.Packet, interceptor.Attributes, error)
}

func Tee

func Tee(r RTPReader, w RTPWriter) RTPReader

type RTPWriter

type RTPWriter interface {
	WriteRTP(*rtp.Packet) error
}

type SampleReader

type SampleReader interface {
	NextSample() (*media.Sample, error)
}

func NewSampledReader

func NewSampledReader(rtp RTPReader, sampler *samplebuilder.SampleBuilder) SampleReader

type TrackStreamer

type TrackStreamer struct {
	// contains filtered or unexported fields
}

func (*TrackStreamer) Err

func (*TrackStreamer) Err() error

func (*TrackStreamer) Stream

func (t *TrackStreamer) Stream(samples [][2]float64) (n int, ok bool)

Jump to

Keyboard shortcuts

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