transcode

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer() (*Synchronizer, error)

func (*Synchronizer) Close

func (s *Synchronizer) Close() error

type Transcoder

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

func NewTranscoder

func NewTranscoder(from webrtc.RTPCodecParameters, options ...TranscoderOption) (*Transcoder, error)

func (*Transcoder) Close

func (t *Transcoder) Close() error

func (*Transcoder) OutputCodec

func (t *Transcoder) OutputCodec() webrtc.RTPCodecParameters

func (*Transcoder) ReadRTP

func (t *Transcoder) ReadRTP() (*rtp.Packet, error)

func (*Transcoder) WriteRTP

func (t *Transcoder) WriteRTP(p *rtp.Packet) error

WriteRTP writes the RTP packet to the writer if it's present.

type TranscoderOption

type TranscoderOption func(*Transcoder)

func ToOutputCodec

func ToOutputCodec(codec webrtc.RTPCodecParameters) TranscoderOption

func ViaGStreamerEncoder

func ViaGStreamerEncoder(pipeline string) TranscoderOption

func WithSynchronizer

func WithSynchronizer(s *Synchronizer) TranscoderOption

Jump to

Keyboard shortcuts

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