Documentation
¶
Index ¶
- Constants
- func IsMimeTypeAudio(mimeType MimeType) bool
- func IsMimeTypeCodecStringH264(codec string) bool
- func IsMimeTypeCodecStringOpus(codec string) bool
- func IsMimeTypeCodecStringPCMA(codec string) bool
- func IsMimeTypeCodecStringPCMU(codec string) bool
- func IsMimeTypeCodecStringRED(codec string) bool
- func IsMimeTypeSVCCapable(mimeType MimeType) bool
- func IsMimeTypeStringAudio(mime string) bool
- func IsMimeTypeStringEqual(mime1 string, mime2 string) bool
- func IsMimeTypeStringH264(mime string) bool
- func IsMimeTypeStringOpus(mime string) bool
- func IsMimeTypeStringPCMA(mime string) bool
- func IsMimeTypeStringPCMU(mime string) bool
- func IsMimeTypeStringRED(mime string) bool
- func IsMimeTypeStringRTX(mime string) bool
- func IsMimeTypeStringSVCCapable(mime string) bool
- func IsMimeTypeStringVP8(mime string) bool
- func IsMimeTypeStringVP9(mime string) bool
- func IsMimeTypeStringVideo(mime string) bool
- func IsMimeTypeVideo(mimeType MimeType) bool
- type MimeType
- type MimeTypeCodec
Constants ¶
View Source
const ( MimeTypePrefixAudio = "audio/" MimeTypePrefixVideo = "video/" )
Variables ¶
This section is empty.
Functions ¶
func IsMimeTypeAudio ¶
func IsMimeTypeCodecStringPCMA ¶ added in v1.9.1
func IsMimeTypeCodecStringPCMU ¶ added in v1.9.1
func IsMimeTypeSVCCapable ¶ added in v1.9.2
func IsMimeTypeStringAudio ¶
func IsMimeTypeStringEqual ¶
func IsMimeTypeStringH264 ¶
func IsMimeTypeStringOpus ¶
func IsMimeTypeStringPCMA ¶ added in v1.9.1
func IsMimeTypeStringPCMU ¶ added in v1.9.1
func IsMimeTypeStringRED ¶
func IsMimeTypeStringRTX ¶
func IsMimeTypeStringSVCCapable ¶ added in v1.9.2
func IsMimeTypeStringVP8 ¶
func IsMimeTypeStringVP9 ¶
func IsMimeTypeStringVideo ¶
func IsMimeTypeVideo ¶
Types ¶
type MimeType ¶
type MimeType int
func NormalizeMimeType ¶
func (MimeType) ReporterType ¶ added in v1.9.1
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
Click to show internal directories.
Click to hide internal directories.