Documentation
¶
Index ¶
- Constants
- func IsMimeTypeAudio(mimeType MimeType) bool
- func IsMimeTypeCodecStringH264(codec string) bool
- func IsMimeTypeCodecStringOpus(codec string) bool
- func IsMimeTypeCodecStringRED(codec string) bool
- func IsMimeTypeSVC(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 IsMimeTypeStringRED(mime string) bool
- func IsMimeTypeStringRTX(mime string) bool
- func IsMimeTypeStringSVC(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 IsMimeTypeSVC ¶
SVC-TODO: Have to use more conditions to differentiate between SVC-TODO: SVC and non-SVC (could be single layer or simulcast). SVC-TODO: May only need to differentiate between simulcast and non-simulcast SVC-TODO: i. e. may be possible to treat single layer as SVC to get proper/intended functionality.
func IsMimeTypeStringAudio ¶
func IsMimeTypeStringEqual ¶
func IsMimeTypeStringH264 ¶
func IsMimeTypeStringOpus ¶
func IsMimeTypeStringRED ¶
func IsMimeTypeStringRTX ¶
func IsMimeTypeStringSVC ¶
func IsMimeTypeStringVP8 ¶
func IsMimeTypeStringVP9 ¶
func IsMimeTypeStringVideo ¶
func IsMimeTypeVideo ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.