ivfwriter

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 6 Imported by: 49

Documentation

Overview

Package ivfwriter implements IVF media container writer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IVFWriter

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

IVFWriter is used to take RTP packets and write them to an IVF on disk

func New

func New(fileName string) (*IVFWriter, error)

New builds a new IVF writer

func NewWith

func NewWith(out io.Writer) (*IVFWriter, error)

NewWith initialize a new IVF writer with an io.Writer output

func (*IVFWriter) Close

func (i *IVFWriter) Close() error

Close stops the recording

func (*IVFWriter) WriteRTP

func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error

WriteRTP adds a new packet and writes the appropriate headers for it

Jump to

Keyboard shortcuts

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