Documentation ¶
Index ¶
- Constants
- func ADTSTimeSize(b []byte) uint32
- func ADTSToCodec(b []byte) *core.Codec
- func ADTStoRTP(src []byte) (dst []byte)
- func CodecToADTS(codec *core.Codec) []byte
- func ConfigToCodec(conf []byte) *core.Codec
- func DecodeConfig(b []byte) (objType, sampleFreqIdx, channels byte, sampleRate uint32)
- func EncodeConfig(objType byte, sampleRate uint32, channels byte, shortFrame bool) []byte
- func EncodeToADTS(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
- func IsADTS(b []byte) bool
- func RTPDepay(handler core.HandlerFunc) core.HandlerFunc
- func RTPPay(handler core.HandlerFunc) core.HandlerFunc
- func RTPTimeSize(b []byte) uint32
- func RTPToADTS(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
- func RTPToCodec(b []byte) *core.Codec
- func ReadADTSSize(b []byte) uint16
- func WriteADTSSize(b []byte, size uint16)
- type Consumer
- type Producer
Constants ¶
View Source
const ( TypeAACMain = 1 TypeAACLC = 2 // Low Complexity TypeAACLD = 23 // Low Delay (48000, 44100, 32000, 24000, 22050) TypeESCAPE = 31 TypeAACELD = 39 // Enhanced Low Delay AUTime = 1024 // FMTP streamtype=5 - audio stream FMTP = "streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=" )
View Source
const ADTSHeaderSize = 7
View Source
const RTPPacketVersionAAC = 0
Variables ¶
This section is empty.
Functions ¶
func ADTSTimeSize ¶ added in v1.7.0
func ADTSToCodec ¶ added in v1.7.0
func CodecToADTS ¶ added in v1.7.0
func ConfigToCodec ¶ added in v1.7.0
func DecodeConfig ¶ added in v1.7.0
func EncodeConfig ¶ added in v1.7.0
func EncodeToADTS ¶ added in v1.7.0
func EncodeToADTS(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
func RTPDepay ¶
func RTPDepay(handler core.HandlerFunc) core.HandlerFunc
func RTPPay ¶
func RTPPay(handler core.HandlerFunc) core.HandlerFunc
func RTPTimeSize ¶ added in v1.7.0
func RTPToADTS ¶ added in v1.7.0
func RTPToADTS(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
func RTPToCodec ¶ added in v1.7.0
func ReadADTSSize ¶ added in v1.7.0
func WriteADTSSize ¶ added in v1.7.0
Types ¶
type Consumer ¶ added in v1.7.0
type Consumer struct { core.SuperConsumer // contains filtered or unexported fields }
func NewConsumer ¶ added in v1.7.0
func NewConsumer() *Consumer
type Producer ¶ added in v1.8.4
type Producer struct { core.SuperProducer // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.