packettrailer

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Magic = [4]byte{'L', 'K', 'T', 'S'}

Functions

func StripTrailer

func StripTrailer(payload []byte, isEndOfFrame bool) int

StripTrailer returns the number of bytes to strip from the end of an RTP payload if it contains an LKTS trailer. The trailer is located by checking for the "LKTS" magic suffix and then reading the XORed trailer_len byte immediately before it. isEndOfFrame must be set only for packets ending an encoded frame, i. e. where a trailer could have been appended. Returns 0 if absent or ineligible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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