rtptime

package
v3.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package rtptime contains a RTP timestamp decoder and encoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

Decoder is a RTP timestamp decoder.

func NewDecoder

func NewDecoder(clockRate int) *Decoder

NewDecoder allocates a Decoder.

func (*Decoder) Decode

func (d *Decoder) Decode(ts uint32) time.Duration

Decode decodes a timestamp.

type Encoder

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

Encoder is a RTP timestamp encoder.

func NewEncoder

func NewEncoder(clockRate int, initialTimestamp uint32) *Encoder

NewEncoder allocates an Encoder.

func (*Encoder) Encode

func (e *Encoder) Encode(ts time.Duration) uint32

Encode encodes a timestamp.

Jump to

Keyboard shortcuts

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