Documentation ¶
Overview ¶
Package rtptime contains a time decoder and encoder.
Index ¶
- type Encoderdeprecated
- type GlobalDecoderdeprecated
- func NewGlobalDecoder() *GlobalDecoderdeprecated
- type GlobalDecoder2
- type GlobalDecoder2Track
- type GlobalDecoderTrack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder
deprecated
type Encoder struct { // Clock rate. ClockRate int // (optional) initial timestamp. // It defaults to a random value. InitialTimestamp *uint32 // contains filtered or unexported fields }
Encoder is a RTP timestamp encoder.
Deprecated: not used anymore.
func (*Encoder) Initialize ¶
Initialize initializes an Encoder.
type GlobalDecoder
deprecated
type GlobalDecoder struct {
// contains filtered or unexported fields
}
GlobalDecoder is a RTP timestamp decoder.
Deprecated: replaced by GlobalDecoder2.
func NewGlobalDecoder
deprecated
func NewGlobalDecoder() *GlobalDecoder
NewGlobalDecoder allocates a GlobalDecoder.
Deprecated: replaced by NewGlobalDecoder2.
func (*GlobalDecoder) Decode ¶
func (d *GlobalDecoder) Decode( track GlobalDecoderTrack, pkt *rtp.Packet, ) (time.Duration, bool)
Decode decodes a timestamp.
type GlobalDecoder2 ¶
type GlobalDecoder2 struct {
// contains filtered or unexported fields
}
GlobalDecoder2 is a RTP timestamp decoder.
func NewGlobalDecoder2 ¶
func NewGlobalDecoder2() *GlobalDecoder2
NewGlobalDecoder2 allocates a GlobalDecoder.
func (*GlobalDecoder2) Decode ¶
func (d *GlobalDecoder2) Decode( track GlobalDecoder2Track, pkt *rtp.Packet, ) (int64, bool)
Decode decodes a timestamp.
type GlobalDecoder2Track ¶
GlobalDecoder2Track is a track (RTSP format or WebRTC track) of GlobalDecoder2.
Click to show internal directories.
Click to hide internal directories.