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 ¶
func ADTSToCodec ¶
func CodecToADTS ¶
func ConfigToCodec ¶
func DecodeConfig ¶
func EncodeConfig ¶
func EncodeToADTS ¶
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 ¶
func RTPToADTS ¶
func RTPToADTS(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
func RTPToCodec ¶
func ReadADTSSize ¶
func WriteADTSSize ¶
Types ¶
type Consumer ¶
type Consumer struct { core.Connection // contains filtered or unexported fields }
func NewConsumer ¶
func NewConsumer() *Consumer
Click to show internal directories.
Click to hide internal directories.