Versions in this module Expand all Collapse all v0 v0.0.2 Mar 15, 2023 Changes in this version + type Format interface + ClockRate func() int + Marshal func() (string, map[string]string) + PTSEqualsDTS func(*rtp.Packet) bool + PayloadType func() uint8 + String func() string + func Unmarshal(md *psdp.MediaDescription, payloadTypeStr string) (Format, error) + type G711 struct + MULaw bool + func (t *G711) ClockRate() int + func (t *G711) CreateDecoder() *rtpsimpleaudio.Decoder + func (t *G711) CreateEncoder() *rtpsimpleaudio.Encoder + func (t *G711) Marshal() (string, map[string]string) + func (t *G711) PTSEqualsDTS(*rtp.Packet) bool + func (t *G711) PayloadType() uint8 + func (t *G711) String() string + type G722 struct + func (t *G722) ClockRate() int + func (t *G722) CreateDecoder() *rtpsimpleaudio.Decoder + func (t *G722) CreateEncoder() *rtpsimpleaudio.Encoder + func (t *G722) Marshal() (string, map[string]string) + func (t *G722) PTSEqualsDTS(*rtp.Packet) bool + func (t *G722) PayloadType() uint8 + func (t *G722) String() string + type Generic struct + ClockRat int + FMTP map[string]string + PayloadTyp uint8 + RTPMap string + func (t *Generic) ClockRate() int + func (t *Generic) Init() error + func (t *Generic) Marshal() (string, map[string]string) + func (t *Generic) PTSEqualsDTS(*rtp.Packet) bool + func (t *Generic) PayloadType() uint8 + func (t *Generic) String() string + type H264 struct + PPS []byte + PacketizationMode int + PayloadTyp uint8 + SPS []byte + func (t *H264) ClockRate() int + func (t *H264) CreateDecoder() *rtph264.Decoder + func (t *H264) CreateEncoder() *rtph264.Encoder + func (t *H264) Marshal() (string, map[string]string) + func (t *H264) PTSEqualsDTS(pkt *rtp.Packet) bool + func (t *H264) PayloadType() uint8 + func (t *H264) SafePPS() []byte + func (t *H264) SafeSPS() []byte + func (t *H264) SafeSetPPS(v []byte) + func (t *H264) SafeSetSPS(v []byte) + func (t *H264) String() string + type H265 struct + MaxDONDiff int + PPS []byte + PayloadTyp uint8 + SPS []byte + VPS []byte + func (t *H265) ClockRate() int + func (t *H265) CreateDecoder() *rtph265.Decoder + func (t *H265) CreateEncoder() *rtph265.Encoder + func (t *H265) Marshal() (string, map[string]string) + func (t *H265) PTSEqualsDTS(*rtp.Packet) bool + func (t *H265) PayloadType() uint8 + func (t *H265) SafePPS() []byte + func (t *H265) SafeSPS() []byte + func (t *H265) SafeSetPPS(v []byte) + func (t *H265) SafeSetSPS(v []byte) + func (t *H265) SafeSetVPS(v []byte) + func (t *H265) SafeVPS() []byte + func (t *H265) String() string + type LPCM struct + BitDepth int + ChannelCount int + PayloadTyp uint8 + SampleRate int + func (t *LPCM) ClockRate() int + func (t *LPCM) CreateDecoder() *rtplpcm.Decoder + func (t *LPCM) CreateEncoder() *rtplpcm.Encoder + func (t *LPCM) Marshal() (string, map[string]string) + func (t *LPCM) PTSEqualsDTS(*rtp.Packet) bool + func (t *LPCM) PayloadType() uint8 + func (t *LPCM) String() string + type MJPEG struct + func (t *MJPEG) ClockRate() int + func (t *MJPEG) CreateDecoder() *rtpmjpeg.Decoder + func (t *MJPEG) CreateEncoder() *rtpmjpeg.Encoder + func (t *MJPEG) Marshal() (string, map[string]string) + func (t *MJPEG) PTSEqualsDTS(*rtp.Packet) bool + func (t *MJPEG) PayloadType() uint8 + func (t *MJPEG) String() string + type MPEG2Audio struct + func (t *MPEG2Audio) ClockRate() int + func (t *MPEG2Audio) Marshal() (string, map[string]string) + func (t *MPEG2Audio) PTSEqualsDTS(*rtp.Packet) bool + func (t *MPEG2Audio) PayloadType() uint8 + func (t *MPEG2Audio) String() string + type MPEG2Video struct + func (t *MPEG2Video) ClockRate() int + func (t *MPEG2Video) Marshal() (string, map[string]string) + func (t *MPEG2Video) PTSEqualsDTS(*rtp.Packet) bool + func (t *MPEG2Video) PayloadType() uint8 + func (t *MPEG2Video) String() string + type MPEG4Audio struct + Config *mpeg4audio.Config + IndexDeltaLength int + IndexLength int + PayloadTyp uint8 + SizeLength int + func (t *MPEG4Audio) ClockRate() int + func (t *MPEG4Audio) CreateDecoder() *rtpmpeg4audio.Decoder + func (t *MPEG4Audio) CreateEncoder() *rtpmpeg4audio.Encoder + func (t *MPEG4Audio) Marshal() (string, map[string]string) + func (t *MPEG4Audio) PTSEqualsDTS(*rtp.Packet) bool + func (t *MPEG4Audio) PayloadType() uint8 + func (t *MPEG4Audio) String() string + type Opus struct + IsStereo bool + PayloadTyp uint8 + func (t *Opus) ClockRate() int + func (t *Opus) CreateDecoder() *rtpsimpleaudio.Decoder + func (t *Opus) CreateEncoder() *rtpsimpleaudio.Encoder + func (t *Opus) Marshal() (string, map[string]string) + func (t *Opus) PTSEqualsDTS(*rtp.Packet) bool + func (t *Opus) PayloadType() uint8 + func (t *Opus) String() string + type VP8 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + func (t *VP8) ClockRate() int + func (t *VP8) CreateDecoder() *rtpvp8.Decoder + func (t *VP8) CreateEncoder() *rtpvp8.Encoder + func (t *VP8) Marshal() (string, map[string]string) + func (t *VP8) PTSEqualsDTS(*rtp.Packet) bool + func (t *VP8) PayloadType() uint8 + func (t *VP8) String() string + type VP9 struct + MaxFR *int + MaxFS *int + PayloadTyp uint8 + ProfileID *int + func (t *VP9) ClockRate() int + func (t *VP9) CreateDecoder() *rtpvp9.Decoder + func (t *VP9) CreateEncoder() *rtpvp9.Encoder + func (t *VP9) Marshal() (string, map[string]string) + func (t *VP9) PTSEqualsDTS(*rtp.Packet) bool + func (t *VP9) PayloadType() uint8 + func (t *VP9) String() string + type Vorbis struct + ChannelCount int + Configuration []byte + PayloadTyp uint8 + SampleRate int + func (t *Vorbis) ClockRate() int + func (t *Vorbis) Marshal() (string, map[string]string) + func (t *Vorbis) PTSEqualsDTS(*rtp.Packet) bool + func (t *Vorbis) PayloadType() uint8 + func (t *Vorbis) String() string