codec

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RTCPFeedback = []webrtc.RTCPFeedback{
	{Type: webrtc.TypeRTCPFBTransportCC, Parameter: ""},
	{Type: webrtc.TypeRTCPFBGoogREMB, Parameter: ""},

	{Type: webrtc.TypeRTCPFBCCM, Parameter: "fir"},

	{Type: webrtc.TypeRTCPFBNACK, Parameter: "pli"},
	{Type: webrtc.TypeRTCPFBNACK, Parameter: ""},
}

Functions

This section is empty.

Types

type RTPCodec

type RTPCodec struct {
	Name        string
	PayloadType webrtc.PayloadType
	Type        webrtc.RTPCodecType
	Capability  webrtc.RTPCodecCapability
	Pipeline    string
}

func G722

func G722() RTPCodec

func H264

func H264() RTPCodec

TODO: Profile ID.

func Opus

func Opus() RTPCodec

func PCMA

func PCMA() RTPCodec

func PCMU

func PCMU() RTPCodec

func ParseRTC

func ParseRTC(codec webrtc.RTPCodecParameters) (RTPCodec, bool)

func ParseStr

func ParseStr(codecName string) (codec RTPCodec, ok bool)

func VP8

func VP8() RTPCodec

func VP9

func VP9() RTPCodec

TODO: Profile ID.

func (*RTPCodec) IsAudio added in v1.6.8

func (codec *RTPCodec) IsAudio() bool

func (*RTPCodec) IsVideo added in v1.6.8

func (codec *RTPCodec) IsVideo() bool

func (*RTPCodec) Register

func (codec *RTPCodec) Register(engine *webrtc.MediaEngine) error

func (*RTPCodec) String added in v1.6.8

func (codec *RTPCodec) String() string

Jump to

Keyboard shortcuts

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