Documentation
¶
Index ¶
Constants ¶
View Source
const (
PayloadTypeOpus = 111
)
Variables ¶
View Source
var ErrUnsupportedMimeType = errors.Errorf("unsupported mime type")
Functions ¶
func TypeFromMimeType ¶
func TypeFromMimeType(mimeType string) webrtc.RTPCodecType
Types ¶
type HeaderExtension ¶
type HeaderExtension struct { Parameter webrtc.RTPHeaderExtensionParameter AllowedDirections []webrtc.RTPTransceiverDirection }
type InterceptorParams ¶
type InterceptorParams struct { PayloadType webrtc.PayloadType RTCPFeedback []interceptor.RTCPFeedback RTPHeaderExtensions []interceptor.RTPHeaderExtension }
type Props ¶
type Props struct { CodecParameters []webrtc.RTPCodecParameters HeaderExtensions []HeaderExtension }
type Registry ¶
func NewRegistryDefault ¶
func NewRegistryDefault() *Registry
func (*Registry) FuzzySearch ¶
Do a fuzzy find for a codec in the list of codecs. Used to look up a codec in an existing list to find a match Returns CodecMatchExact, CodecMatchPartial, or CodecMatchNone.
func (*Registry) InterceptorParamsForCodec ¶
func (r *Registry) InterceptorParamsForCodec(codec transport.Codec) (InterceptorParams, error)
func (*Registry) RTPHeaderExtensionsForMimeType ¶
func (r *Registry) RTPHeaderExtensionsForMimeType(mimeType string) []HeaderExtension
Click to show internal directories.
Click to hide internal directories.