Versions in this module Expand all Collapse all v1 v1.0.0 May 7, 2023 Changes in this version + type AV1 struct + LevelIdx *int + PayloadTyp uint8 + Profile *int + Tier *int + func (f *AV1) ClockRate() int + func (f *AV1) CreateDecoder() *rtpav1.Decoder + func (f *AV1) CreateEncoder() *rtpav1.Encoder + func (f *AV1) FMTP() map[string]string + func (f *AV1) PTSEqualsDTS(*rtp.Packet) bool + func (f *AV1) PayloadType() uint8 + func (f *AV1) RTPMap() string + func (f *AV1) String() string + type Format interface + ClockRate func() int + FMTP func() map[string]string + PTSEqualsDTS func(*rtp.Packet) bool + PayloadType func() uint8 + RTPMap func() string + String 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) CreateDecoder() *rtpsimpleaudio.Decoder + func (f *G711) CreateEncoder() *rtpsimpleaudio.Encoder + func (f *G711) FMTP() map[string]string + func (f *G711) PTSEqualsDTS(*rtp.Packet) bool + func (f *G711) PayloadType() uint8 + func (f *G711) RTPMap() string + func (f *G711) String() string + type G722 struct + func (f *G722) ClockRate() int + func (f *G722) CreateDecoder() *rtpsimpleaudio.Decoder + func (f *G722) CreateEncoder() *rtpsimpleaudio.Encoder + func (f *G722) FMTP() map[string]string + func (f *G722) PTSEqualsDTS(*rtp.Packet) bool + func (f *G722) PayloadType() uint8 + func (f *G722) RTPMap() string + func (f *G722) String() string + type Generic struct + ClockRat int + FMT map[string]string + PayloadTyp uint8 + RTPMa string + func (f *Generic) ClockRate() int + 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 + func (f *Generic) String() string + type H264 struct + PPS []byte + PacketizationMode int + PayloadTyp uint8 + SPS []byte + func (f *H264) ClockRate() int + func (f *H264) CreateDecoder() *rtph264.Decoder + func (f *H264) CreateEncoder() *rtph264.Encoder + 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) + func (f *H264) String() string + type H265 struct + MaxDONDiff int + PPS []byte + PayloadTyp uint8 + SPS []byte + VPS []byte + func (f *H265) ClockRate() int + func (f *H265) CreateDecoder() *rtph265.Decoder + func (f *H265) CreateEncoder() *rtph265.Encoder + func (f *H265) FMTP() map[string]string + func (f *H265) PTSEqualsDTS(*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) + func (f *H265) String() string + type LPCM struct + BitDepth int + ChannelCount int + PayloadTyp uint8 + SampleRate int + func (f *LPCM) ClockRate() int + func (f *LPCM) CreateDecoder() *rtplpcm.Decoder + func (f *LPCM) CreateEncoder() *rtplpcm.Encoder + func (f *LPCM) FMTP() map[string]string + func (f *LPCM) PTSEqualsDTS(*rtp.Packet) bool + func (f *LPCM) PayloadType() uint8 + func (f *LPCM) RTPMap() string + func (f *LPCM) String() string + type MJPEG struct + func (f *MJPEG) ClockRate() int + func (f *MJPEG) CreateDecoder() *rtpmjpeg.Decoder + func (f *MJPEG) CreateEncoder() *rtpmjpeg.Encoder + func (f *MJPEG) FMTP() map[string]string + func (f *MJPEG) PTSEqualsDTS(*rtp.Packet) bool + func (f *MJPEG) PayloadType() uint8 + func (f *MJPEG) RTPMap() string + func (f *MJPEG) String() string + type MPEG2Audio struct + func (f *MPEG2Audio) ClockRate() int + func (f *MPEG2Audio) CreateDecoder() *rtpmpeg2audio.Decoder + func (f *MPEG2Audio) CreateEncoder() *rtpmpeg2audio.Encoder + func (f *MPEG2Audio) FMTP() map[string]string + func (f *MPEG2Audio) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG2Audio) PayloadType() uint8 + func (f *MPEG2Audio) RTPMap() string + func (f *MPEG2Audio) String() string + type MPEG2Video struct + func (f *MPEG2Video) ClockRate() int + func (f *MPEG2Video) FMTP() map[string]string + func (f *MPEG2Video) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG2Video) PayloadType() uint8 + func (f *MPEG2Video) RTPMap() string + func (f *MPEG2Video) String() string + type MPEG4Audio = MPEG4AudioGeneric + type MPEG4AudioGeneric struct + Config *mpeg4audio.Config + IndexDeltaLength int + IndexLength int + PayloadTyp uint8 + ProfileLevelID int + SizeLength int + func (f *MPEG4AudioGeneric) ClockRate() int + func (f *MPEG4AudioGeneric) CreateDecoder() *rtpmpeg4audio.Decoder + func (f *MPEG4AudioGeneric) CreateEncoder() *rtpmpeg4audio.Encoder + func (f *MPEG4AudioGeneric) FMTP() map[string]string + func (f *MPEG4AudioGeneric) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG4AudioGeneric) PayloadType() uint8 + func (f *MPEG4AudioGeneric) RTPMap() string + func (f *MPEG4AudioGeneric) String() string + type MPEG4AudioLATM struct + Bitrate *int + CPresent *bool + Config *mpeg4audio.StreamMuxConfig + PayloadTyp uint8 + ProfileLevelID int + SBREnabled *bool + func (f *MPEG4AudioLATM) ClockRate() int + func (f *MPEG4AudioLATM) FMTP() map[string]string + func (f *MPEG4AudioLATM) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG4AudioLATM) PayloadType() uint8 + func (f *MPEG4AudioLATM) RTPMap() string + func (f *MPEG4AudioLATM) String() string + type MPEG4Video = MPEG4VideoES + type MPEG4VideoES struct + Config []byte + PayloadTyp uint8 + ProfileLevelID int + func (f *MPEG4VideoES) ClockRate() int + func (f *MPEG4VideoES) CreateDecoder() *rtpmpeg4video.Decoder + func (f *MPEG4VideoES) CreateEncoder() *rtpmpeg4video.Encoder + func (f *MPEG4VideoES) FMTP() map[string]string + func (f *MPEG4VideoES) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEG4VideoES) PayloadType() uint8 + func (f *MPEG4VideoES) RTPMap() string + func (f *MPEG4VideoES) String() string + type MPEGTS struct + func (f *MPEGTS) ClockRate() int + func (f *MPEGTS) FMTP() map[string]string + func (f *MPEGTS) PTSEqualsDTS(*rtp.Packet) bool + func (f *MPEGTS) PayloadType() uint8 + func (f *MPEGTS) RTPMap() string + func (f *MPEGTS) String() string + type Opus struct + IsStereo bool + PayloadTyp uint8 + func (f *Opus) ClockRate() int + func (f *Opus) CreateDecoder() *rtpsimpleaudio.Decoder + func (f *Opus) CreateEncoder() *rtpsimpleaudio.Encoder + func (f *Opus) FMTP() map[string]string + func (f *Opus) PTSEqualsDTS(*rtp.Packet) bool + func (f *Opus) PayloadType() uint8 + func (f *Opus) RTPMap() string + func (f *Opus) String() string + type VP8 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + func (f *VP8) ClockRate() int + func (f *VP8) CreateDecoder() *rtpvp8.Decoder + func (f *VP8) CreateEncoder() *rtpvp8.Encoder + func (f *VP8) FMTP() map[string]string + func (f *VP8) PTSEqualsDTS(*rtp.Packet) bool + func (f *VP8) PayloadType() uint8 + func (f *VP8) RTPMap() string + func (f *VP8) String() string + type VP9 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + ProfileID *int + func (f *VP9) ClockRate() int + func (f *VP9) CreateDecoder() *rtpvp9.Decoder + func (f *VP9) CreateEncoder() *rtpvp9.Encoder + func (f *VP9) FMTP() map[string]string + func (f *VP9) PTSEqualsDTS(*rtp.Packet) bool + func (f *VP9) PayloadType() uint8 + func (f *VP9) RTPMap() string + func (f *VP9) String() string + type Vorbis struct + ChannelCount int + Configuration []byte + PayloadTyp uint8 + SampleRate int + func (f *Vorbis) ClockRate() int + func (f *Vorbis) FMTP() map[string]string + func (f *Vorbis) PTSEqualsDTS(*rtp.Packet) bool + func (f *Vorbis) PayloadType() uint8 + func (f *Vorbis) RTPMap() string + func (f *Vorbis) String() string