transcoder

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPropertyNotFound = errors.New("property not found")

Functions

func NewPipelineBuilder added in v0.4.0

func NewPipelineBuilder(kind webrtc.RTPCodecType, to string, via string) (string, error)

Types

type Caps added in v0.4.0

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

func CapsFromRTPCodecParameters added in v0.4.0

func CapsFromRTPCodecParameters(codec *webrtc.RTPCodecParameters) (*Caps, error)

func CapsFromString added in v0.4.0

func CapsFromString(str string) *Caps

func (*Caps) RTPCodecParameters added in v0.4.0

func (c *Caps) RTPCodecParameters() (*webrtc.RTPCodecParameters, error)

func (*Caps) SSRC added in v0.4.0

func (c *Caps) SSRC() (webrtc.SSRC, error)

func (*Caps) String added in v0.4.0

func (c *Caps) String() string

type Client

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

func NewClient

func NewClient(ctx context.Context, conn *grpc.ClientConn) (*Client, error)

func (*Client) Transcode

func (c *Client) Transcode(tl *webrtc.TrackLocalStaticRTP, options ...TranscodeOption) (*webrtc.TrackRemote, error)

type Element added in v0.4.0

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

func (*Element) GetInt added in v0.4.0

func (e *Element) GetInt(name string) int

func (*Element) GetString added in v0.4.0

func (e *Element) GetString(name string) string

func (*Element) Set added in v0.4.0

func (e *Element) Set(name string, value interface{})

type ReadOnlyPipeline added in v0.4.0

type ReadOnlyPipeline interface {
	rtpio.RTPReader
	Codec() (*webrtc.RTPCodecParameters, error)
	SSRC() (webrtc.SSRC, error)
}

type ReadWritePipeline added in v0.4.0

type ReadWritePipeline interface {
	ReadOnlyPipeline
	WriteOnlyPipeline
}

type Source added in v0.4.0

type Source struct {
	*webrtc.PeerConnection
	*webrtc.TrackRemote
	// contains filtered or unexported fields
}

type TranscodeOption

type TranscodeOption func(*api.TranscodeRequest)

func ToMimeType

func ToMimeType(mimeType string) TranscodeOption

type Transcoder added in v0.4.0

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

func NewTranscoder added in v0.4.0

func NewTranscoder() (*Transcoder, error)

func (*Transcoder) Close added in v0.4.0

func (s *Transcoder) Close() error

func (*Transcoder) NewReadOnlyPipeline added in v0.4.0

func (s *Transcoder) NewReadOnlyPipeline(str string) (ReadOnlyPipeline, error)

func (*Transcoder) NewReadWritePipeline added in v0.4.0

func (s *Transcoder) NewReadWritePipeline(in *webrtc.RTPCodecParameters, str string) (ReadWritePipeline, error)

func (*Transcoder) NewWriteOnlyPipeline added in v0.4.0

func (s *Transcoder) NewWriteOnlyPipeline(in *webrtc.RTPCodecParameters, str string) (WriteOnlyPipeline, error)

type TranscoderServer added in v0.4.0

type TranscoderServer struct {
	api.UnimplementedTranscoderServer
	// contains filtered or unexported fields
}

func NewTranscoderServer added in v0.4.0

func NewTranscoderServer(config webrtc.Configuration) *TranscoderServer

func (*TranscoderServer) Publish added in v0.4.1

func (*TranscoderServer) Subscribe added in v0.4.1

type WriteOnlyPipeline added in v0.4.0

type WriteOnlyPipeline interface {
	rtpio.RTPWriteCloser
	OnUpstreamForceKeyUnit(func())
}

Jump to

Keyboard shortcuts

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