utils

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeMediaForRelay

func DeserializeMediaForRelay(r io.Reader) ([]byte, time.Duration, error)

func SerializeMediaForRelay

func SerializeMediaForRelay(w io.Writer, data []byte, ts time.Duration) error

Types

type OutputSynchronizer added in v1.2.0

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

func NewOutputSynchronizer added in v1.2.0

func NewOutputSynchronizer() *OutputSynchronizer

func (*OutputSynchronizer) AddTrack added in v1.2.0

type PrerollBuffer

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

func NewPrerollBuffer

func NewPrerollBuffer(onBufferReset func() error) *PrerollBuffer

func (*PrerollBuffer) Close

func (pb *PrerollBuffer) Close() error

func (*PrerollBuffer) SetWriter

func (pb *PrerollBuffer) SetWriter(w io.WriteCloser) error

func (*PrerollBuffer) Write

func (pb *PrerollBuffer) Write(p []byte) (int, error)

type TrackOutputSynchronizer added in v1.2.0

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

func (*TrackOutputSynchronizer) Close added in v1.2.0

func (ost *TrackOutputSynchronizer) Close()

func (*TrackOutputSynchronizer) WaitForMediaTime added in v1.2.0

func (ost *TrackOutputSynchronizer) WaitForMediaTime(pts time.Duration) (bool, error)

Jump to

Keyboard shortcuts

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