utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 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)

Jump to

Keyboard shortcuts

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