mime

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MimeTypePrefixAudio = "audio/"
	MimeTypePrefixVideo = "video/"
)

Variables

This section is empty.

Functions

func IsMimeTypeAudio

func IsMimeTypeAudio(mimeType MimeType) bool

func IsMimeTypeCodecStringH264

func IsMimeTypeCodecStringH264(codec string) bool

func IsMimeTypeCodecStringOpus

func IsMimeTypeCodecStringOpus(codec string) bool

func IsMimeTypeCodecStringPCMA added in v1.9.1

func IsMimeTypeCodecStringPCMA(codec string) bool

func IsMimeTypeCodecStringPCMU added in v1.9.1

func IsMimeTypeCodecStringPCMU(codec string) bool

func IsMimeTypeCodecStringRED

func IsMimeTypeCodecStringRED(codec string) bool

func IsMimeTypeSVCCapable added in v1.9.2

func IsMimeTypeSVCCapable(mimeType MimeType) bool

func IsMimeTypeStringAudio

func IsMimeTypeStringAudio(mime string) bool

func IsMimeTypeStringEqual

func IsMimeTypeStringEqual(mime1 string, mime2 string) bool

func IsMimeTypeStringH264

func IsMimeTypeStringH264(mime string) bool

func IsMimeTypeStringOpus

func IsMimeTypeStringOpus(mime string) bool

func IsMimeTypeStringPCMA added in v1.9.1

func IsMimeTypeStringPCMA(mime string) bool

func IsMimeTypeStringPCMU added in v1.9.1

func IsMimeTypeStringPCMU(mime string) bool

func IsMimeTypeStringRED

func IsMimeTypeStringRED(mime string) bool

func IsMimeTypeStringRTX

func IsMimeTypeStringRTX(mime string) bool

func IsMimeTypeStringSVCCapable added in v1.9.2

func IsMimeTypeStringSVCCapable(mime string) bool

func IsMimeTypeStringVP8

func IsMimeTypeStringVP8(mime string) bool

func IsMimeTypeStringVP9

func IsMimeTypeStringVP9(mime string) bool

func IsMimeTypeStringVideo

func IsMimeTypeStringVideo(mime string) bool

func IsMimeTypeVideo

func IsMimeTypeVideo(mimeType MimeType) bool

Types

type MimeType

type MimeType int
const (
	MimeTypeUnknown MimeType = iota
	MimeTypeH264
	MimeTypeH265
	MimeTypeOpus
	MimeTypeRED
	MimeTypeVP8
	MimeTypeVP9
	MimeTypeAV1
	MimeTypeG722
	MimeTypePCMU
	MimeTypePCMA
	MimeTypeRTX
	MimeTypeFlexFEC
	MimeTypeULPFEC
)

func NormalizeMimeType

func NormalizeMimeType(mime string) MimeType

func (MimeType) ReporterType added in v1.9.1

func (m MimeType) ReporterType() roomobs.MimeType

func (MimeType) String

func (m MimeType) String() string

type MimeTypeCodec

type MimeTypeCodec int
const (
	MimeTypeCodecUnknown MimeTypeCodec = iota
	MimeTypeCodecH264
	MimeTypeCodecH265
	MimeTypeCodecOpus
	MimeTypeCodecRED
	MimeTypeCodecVP8
	MimeTypeCodecVP9
	MimeTypeCodecAV1
	MimeTypeCodecG722
	MimeTypeCodecPCMU
	MimeTypeCodecPCMA
	MimeTypeCodecRTX
	MimeTypeCodecFlexFEC
	MimeTypeCodecULPFEC
)

func GetMimeTypeCodec

func GetMimeTypeCodec(mime string) MimeTypeCodec

func NormalizeMimeTypeCodec

func NormalizeMimeTypeCodec(codec string) MimeTypeCodec

func (MimeTypeCodec) String

func (m MimeTypeCodec) String() string

func (MimeTypeCodec) ToMimeType added in v1.9.1

func (m MimeTypeCodec) ToMimeType() MimeType

Jump to

Keyboard shortcuts

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