rtptime

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package rtptime contains a time decoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalDecoder

type GlobalDecoder struct {
	// contains filtered or unexported fields
}

GlobalDecoder is a RTP timestamp decoder.

func (*GlobalDecoder) Decode

func (d *GlobalDecoder) Decode(
	track GlobalDecoderTrack,
	pkt *rtp.Packet,
) (int64, bool)

Decode decodes a timestamp.

func (*GlobalDecoder) Initialize

func (d *GlobalDecoder) Initialize()

Initialize initializes a GlobalDecoder.

type GlobalDecoderTrack

type GlobalDecoderTrack interface {
	ClockRate() int
	PTSEqualsDTS(*rtp.Packet) bool
}

GlobalDecoderTrack is a track (RTSP format or WebRTC track) of GlobalDecoder.

Jump to

Keyboard shortcuts

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