Versions in this module Expand all Collapse all v0 v0.0.1 Dec 8, 2023 Changes in this version + const ARtpMapEncodingNameAac + const ARtpMapEncodingNameG711A + const ARtpMapEncodingNameG711U + const ARtpMapEncodingNameH264 + const ARtpMapEncodingNameH265 + func ParseAsc(a *AFmtPBase) ([]byte, error) + func ParseSpsPps(a *AFmtPBase) (sps, pps []byte, err error) + func ParseVpsSpsPps(a *AFmtPBase) (vps, sps, pps []byte, err error) + type AControl struct + Value string + func ParseAControl(s string) (ret AControl, err error) + type AFmtPBase struct + Format int + Parameters map[string]string + func ParseAFmtPBase(s string) (ret AFmtPBase, err error) + type ARtpMap struct + ClockRate int + EncodingName string + EncodingParameters string + PayloadType int + func ParseARtpMap(s string) (ret ARtpMap, err error) + type AudioInfo struct + Asc []byte + AudioPt media.AvMediaType + SamplingFrequency int + type LogicContext struct + Asc []byte + AudioClockRate int + AudioMediaType media.AvMediaType + HasAudio bool + HasVideo bool + Pps []byte + RawSdp []byte + Sps []byte + VideoClockRate int + VideoMediaType media.AvMediaType + Vps []byte + func Pack(videoInfo VideoInfo, audioInfo AudioInfo) (ctx LogicContext, err error) + func ParseSdp2LogicContext(b []byte) (LogicContext, error) + func (lc *LogicContext) GetAudioMediaType() media.AvMediaType + func (lc *LogicContext) GetVideoMediaType() media.AvMediaType + func (lc *LogicContext) HasAudioAControl() bool + func (lc *LogicContext) HasVideoAControl() bool + func (lc *LogicContext) IsAudioAvailable() bool + func (lc *LogicContext) IsAudioPayloadType(t int) bool + func (lc *LogicContext) IsAudioUri(uri string) bool + func (lc *LogicContext) IsPayloadType(t int) bool + func (lc *LogicContext) IsVideoAvailable() bool + func (lc *LogicContext) IsVideoPayloadType(t int) bool + func (lc *LogicContext) IsVideoUri(uri string) bool + func (lc *LogicContext) MakeAudioSetupUri(uri string) string + func (lc *LogicContext) MakeVideoSetupUri(uri string) string + type M struct + Media string + PT int + func ParseM(s string) (ret M, err error) + type MediaDesc struct + AControl AControl + AFmtPBase *AFmtPBase + ARtpMap ARtpMap + M M + type RawContext struct + MediaDescList []MediaDesc + func ParseSdp2RawContext(b []byte) (RawContext, error) + type VideoInfo struct + Pps []byte + Sps []byte + VideoPt media.AvMediaType + Vps []byte