Versions in this module Expand all Collapse all v1 v1.0.1 Nov 22, 2023 Changes in this version + type AC3 struct + ChannelCount int + PayloadTyp uint8 + SampleRate int + func (f *AC3) ClockRate() int + func (f *AC3) Codec() string + func (f *AC3) CreateDecoder() (*rtpac3.Decoder, error) + func (f *AC3) CreateEncoder() (*rtpac3.Encoder, error) + func (f *AC3) FMTP() map[string]string + func (f *AC3) PTSEqualsDTS(*rtp.Packet) bool + func (f *AC3) PayloadType() uint8 + func (f *AC3) RTPMap() string + type AV1 struct + LevelIdx *int + PayloadTyp uint8 + Profile *int + Tier *int + func (f *AV1) ClockRate() int + func (f *AV1) Codec() string + func (f *AV1) CreateDecoder() (*rtpav1.Decoder, error) + func (f *AV1) CreateEncoder() (*rtpav1.Encoder, error) + func (f *AV1) FMTP() map[string]string + func (f *AV1) PTSEqualsDTS(*rtp.Packet) bool + func (f *AV1) PayloadType() uint8 + func (f *AV1) RTPMap() string + type Format interface + ClockRate func() int + Codec func() string + FMTP func() map[string]string + PTSEqualsDTS func(*rtp.Packet) bool + PayloadType func() uint8 + RTPMap func() string + func Unmarshal(mediaType string, payloadType uint8, rtpMap string, fmtp map[string]string) (Format, error) + type G711 struct + MULaw bool + func (f *G711) ClockRate() int + func (f *G711) Codec() string + func (f *G711) CreateDecoder() (*rtpsimpleaudio.Decoder, error) + func (f *G711) CreateEncoder() (*rtpsimpleaudio.Encoder, error) + func (f *G711) FMTP() map[string]string + func (f *G711) PTSEqualsDTS(*rtp.Packet) bool + func (f *G711) PayloadType() uint8 + func (f *G711) RTPMap() string + type G722 struct + func (f *G722) ClockRate() int + func (f *G722) Codec() string + func (f *G722) CreateDecoder() (*rtpsimpleaudio.Decoder, error) + func (f *G722) CreateEncoder() (*rtpsimpleaudio.Encoder, error) + func (f *G722) FMTP() map[string]string + func (f *G722) PTSEqualsDTS(*rtp.Packet) bool + func (f *G722) PayloadType() uint8 + func (f *G722) RTPMap() string + type G726 struct + BigEndian bool + BitRate int + PayloadTyp uint8 + func (f *G726) ClockRate() int + func (f *G726) Codec() string + func (f *G726) FMTP() map[string]string + func (f *G726) PTSEqualsDTS(*rtp.Packet) bool + func (f *G726) PayloadType() uint8 + func (f *G726) RTPMap() string + type Generic struct + ClockRat int + FMT map[string]string + PayloadTyp uint8 + RTPMa string + func (f *Generic) ClockRate() int + func (f *Generic) Codec() string + func (f *Generic) FMTP() map[string]string + func (f *Generic) Init() error + func (f *Generic) PTSEqualsDTS(*rtp.Packet) bool + func (f *Generic) PayloadType() uint8 + func (f *Generic) RTPMap() string + type H264 struct + PPS []byte + PacketizationMode int + PayloadTyp uint8 + SPS []byte + func (f *H264) ClockRate() int + func (f *H264) Codec() string + func (f *H264) CreateDecoder() (*rtph264.Decoder, error) + func (f *H264) CreateEncoder() (*rtph264.Encoder, error) + func (f *H264) FMTP() map[string]string + func (f *H264) PTSEqualsDTS(pkt *rtp.Packet) bool + func (f *H264) PayloadType() uint8 + func (f *H264) RTPMap() string + func (f *H264) SafeParams() ([]byte, []byte) + func (f *H264) SafeSetParams(sps []byte, pps []byte) + type H265 struct + MaxDONDiff int + PPS []byte + PayloadTyp uint8 + SPS []byte + VPS []byte + func (f *H265) ClockRate() int + func (f *H265) Codec() string + func (f *H265) CreateDecoder() (*rtph265.Decoder, error) + func (f *H265) CreateEncoder() (*rtph265.Encoder, error) + func (f *H265) FMTP() map[string]string + func (f *H265) PTSEqualsDTS(pkt *rtp.Packet) bool + func (f *H265) PayloadType() uint8 + func (f *H265) RTPMap() string + func (f *H265) SafeParams() ([]byte, []byte, []byte) + func (f *H265) SafeSetParams(vps []byte, sps []byte, pps []byte) + type LPCM struct + BitDepth int + ChannelCount int + PayloadTyp uint8 + SampleRate int + func (f *LPCM) ClockRate() int + func (f *LPCM) Codec() string + func (f *LPCM) CreateDecoder() (*rtplpcm.Decoder, error) + func (f *LPCM) CreateEncoder() (*rtplpcm.Encoder, error) + func (f *LPCM) FMTP() map[string]string + func (f *LPCM) PTSEqualsDTS(*rtp.Packet) bool + func (f *LPCM) PayloadType() uint8 + func (f *LPCM) RTPMap() string + type MJPEG struct + func (f *MJPEG) ClockRate() int + func (f *MJPEG) Codec() string + func (f *MJPEG) CreateDecoder() (*rtpmjpeg.Decoder, error) + func (f *MJPEG) CreateEncoder() (*rtpmjpeg.Encoder, error) + func (f *MJPEG) FMTP() map[string]string + func (f *MJPEG) PTSEqualsDTS(*rtp.Packet) bool + func (f *MJPEG) PayloadType() uint8 + func (f *MJPEG) RTPMap() string + type MPEG1Audio struct + func (f *MPEG1Audio) ClockRate() int + func (f *MPEG1Audio) Codec() string + func (f *MPEG1Audio) CreateDecoder() (*rtpmpeg1audio.Decoder, error) + func (f *MPEG1Audio) CreateEncoder() (*rtpmpeg1audio.Encoder, error) + func (f *MPEG1Audio) FMTP() map[string]string + func (f *MPEG1Audio) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG1Audio) PayloadType() uint8 + func (f *MPEG1Audio) RTPMap() string + type MPEG1Video struct + func (f *MPEG1Video) ClockRate() int + func (f *MPEG1Video) Codec() string + func (f *MPEG1Video) CreateDecoder() (*rtpmpeg1video.Decoder, error) + func (f *MPEG1Video) CreateEncoder() (*rtpmpeg1video.Encoder, error) + func (f *MPEG1Video) FMTP() map[string]string + func (f *MPEG1Video) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG1Video) PayloadType() uint8 + func (f *MPEG1Video) RTPMap() string + type MPEG4Audio struct + Bitrate *int + CPresent bool + Config *mpeg4audio.Config + IndexDeltaLength int + IndexLength int + LATM bool + PayloadTyp uint8 + ProfileLevelID int + SBREnabled *bool + SizeLength int + StreamMuxConfig *mpeg4audio.StreamMuxConfig + func (f *MPEG4Audio) ClockRate() int + func (f *MPEG4Audio) Codec() string + func (f *MPEG4Audio) CreateDecoder() (*rtpmpeg4audio.Decoder, error) + func (f *MPEG4Audio) CreateEncoder() (*rtpmpeg4audio.Encoder, error) + func (f *MPEG4Audio) FMTP() map[string]string + func (f *MPEG4Audio) GetConfig() *mpeg4audio.Config + func (f *MPEG4Audio) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG4Audio) PayloadType() uint8 + func (f *MPEG4Audio) RTPMap() string + type MPEG4Video struct + Config []byte + PayloadTyp uint8 + ProfileLevelID int + func (f *MPEG4Video) ClockRate() int + func (f *MPEG4Video) Codec() string + func (f *MPEG4Video) CreateDecoder() (*rtpmpeg4video.Decoder, error) + func (f *MPEG4Video) CreateEncoder() (*rtpmpeg4video.Encoder, error) + func (f *MPEG4Video) FMTP() map[string]string + func (f *MPEG4Video) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG4Video) PayloadType() uint8 + func (f *MPEG4Video) RTPMap() string + func (f *MPEG4Video) SafeParams() []byte + func (f *MPEG4Video) SafeSetParams(config []byte) + type MPEGTS struct + func (f *MPEGTS) ClockRate() int + func (f *MPEGTS) Codec() string + func (f *MPEGTS) FMTP() map[string]string + func (f *MPEGTS) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEGTS) PayloadType() uint8 + func (f *MPEGTS) RTPMap() string + type Opus struct + IsStereo bool + PayloadTyp uint8 + func (f *Opus) ClockRate() int + func (f *Opus) Codec() string + func (f *Opus) CreateDecoder() (*rtpsimpleaudio.Decoder, error) + func (f *Opus) CreateEncoder() (*rtpsimpleaudio.Encoder, error) + func (f *Opus) FMTP() map[string]string + func (f *Opus) PTSEqualsDTS(*rtp.Packet) bool + func (f *Opus) PayloadType() uint8 + func (f *Opus) RTPMap() string + type Speex struct + PayloadTyp uint8 + SampleRate int + VBR *bool + func (f *Speex) ClockRate() int + func (f *Speex) Codec() string + func (f *Speex) FMTP() map[string]string + func (f *Speex) PTSEqualsDTS(*rtp.Packet) bool + func (f *Speex) PayloadType() uint8 + func (f *Speex) RTPMap() string + type VP8 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + func (f *VP8) ClockRate() int + func (f *VP8) Codec() string + func (f *VP8) CreateDecoder() (*rtpvp8.Decoder, error) + func (f *VP8) CreateEncoder() (*rtpvp8.Encoder, error) + func (f *VP8) FMTP() map[string]string + func (f *VP8) PTSEqualsDTS(*rtp.Packet) bool + func (f *VP8) PayloadType() uint8 + func (f *VP8) RTPMap() string + type VP9 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + ProfileID *int + func (f *VP9) ClockRate() int + func (f *VP9) Codec() string + func (f *VP9) CreateDecoder() (*rtpvp9.Decoder, error) + func (f *VP9) CreateEncoder() (*rtpvp9.Encoder, error) + func (f *VP9) FMTP() map[string]string + func (f *VP9) PTSEqualsDTS(*rtp.Packet) bool + func (f *VP9) PayloadType() uint8 + func (f *VP9) RTPMap() string + type Vorbis struct + ChannelCount int + Configuration []byte + PayloadTyp uint8 + SampleRate int + func (f *Vorbis) ClockRate() int + func (f *Vorbis) Codec() string + func (f *Vorbis) FMTP() map[string]string + func (f *Vorbis) PTSEqualsDTS(*rtp.Packet) bool + func (f *Vorbis) PayloadType() uint8 + func (f *Vorbis) RTPMap() string