fmtp

package
v4.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package fmtp implements per codec parsing of fmtp lines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelsEqual added in v4.0.10

func ChannelsEqual(mimeType string, valA, valB uint16) bool

ChannelsEqual checks whether two channels are equal.

func ClockRateEqual added in v4.0.10

func ClockRateEqual(mimeType string, valA, valB uint32) bool

ClockRateEqual checks whether two clock rates are equal.

Types

type FMTP

type FMTP interface {
	// MimeType returns the MimeType associated with
	// the fmtp
	MimeType() string
	// Match compares two fmtp descriptions for
	// compatibility based on the MimeType
	Match(f FMTP) bool
	// Parameter returns a value for the associated key
	// if contained in the parsed fmtp string
	Parameter(key string) (string, bool)
}

FMTP interface for implementing custom FMTP parsers based on MimeType.

func Parse

func Parse(mimeType string, clockRate uint32, channels uint16, line string) FMTP

Parse parses an fmtp string based on the MimeType.

Jump to

Keyboard shortcuts

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