Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type AFmtPBase
- type ARtpMap
- type AudioInfo
- type LogicContext
- func (lc *LogicContext) GetAudioPayloadTypeBase() base.AvPacketPt
- func (lc *LogicContext) GetVideoPayloadTypeBase() base.AvPacketPt
- func (lc *LogicContext) HasAudioAControl() bool
- func (lc *LogicContext) HasVideoAControl() bool
- func (lc *LogicContext) IsAudioPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsAudioUnpackable() bool
- func (lc *LogicContext) IsAudioUri(uri string) bool
- func (lc *LogicContext) IsPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsVideoPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsVideoUnpackable() bool
- func (lc *LogicContext) IsVideoUri(uri string) bool
- func (lc *LogicContext) MakeAudioSetupUri(uri string) string
- func (lc *LogicContext) MakeVideoSetupUri(uri string) string
- type M
- type MediaDesc
- type RawContext
- type VideoInfo
Constants ¶
View Source
const ( ARtpMapEncodingNameH265 = "H265" ARtpMapEncodingNameH264 = "H264" ARtpMapEncodingNameAac = "MPEG4-GENERIC" ARtpMapEncodingNameG711A = "PCMA" ARtpMapEncodingNameG711U = "PCMU" ArtpMapEncodingNameOpus = "opus" )
Variables ¶
View Source
var Log = nazalog.GetGlobalLogger()
Functions ¶
func ParseVpsSpsPps ¶ added in v0.23.0
Types ¶
type AControl ¶ added in v0.17.0
type AControl struct {
Value string
}
func ParseAControl ¶ added in v0.17.0
type AFmtPBase ¶
type AFmtPBase struct { Format int // same as PayloadType Parameters map[string]string // name -> value }
func ParseAFmtPBase ¶
ParseAFmtPBase 例子见单元测试
type ARtpMap ¶ added in v0.23.0
func ParseARtpMap ¶ added in v0.23.0
ParseARtpMap 例子见单元测试
type AudioInfo ¶ added in v0.34.3
type AudioInfo struct { AudioPt base.AvPacketPt SamplingFrequency int Asc []byte }
type LogicContext ¶ added in v0.17.0
type LogicContext struct { RawSdp []byte AudioClockRate int VideoClockRate int Asc []byte Vps []byte Sps []byte Pps []byte // contains filtered or unexported fields }
func Pack ¶ added in v0.24.0
func Pack(videoInfo VideoInfo, audioInfo AudioInfo) (ctx LogicContext, err error)
func ParseSdp2LogicContext ¶ added in v0.23.0
func ParseSdp2LogicContext(b []byte) (LogicContext, error)
func (*LogicContext) GetAudioPayloadTypeBase ¶ added in v0.19.0
func (lc *LogicContext) GetAudioPayloadTypeBase() base.AvPacketPt
func (*LogicContext) GetVideoPayloadTypeBase ¶ added in v0.19.0
func (lc *LogicContext) GetVideoPayloadTypeBase() base.AvPacketPt
func (*LogicContext) HasAudioAControl ¶ added in v0.19.0
func (lc *LogicContext) HasAudioAControl() bool
func (*LogicContext) HasVideoAControl ¶ added in v0.19.0
func (lc *LogicContext) HasVideoAControl() bool
func (*LogicContext) IsAudioPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsAudioPayloadTypeOrigin(t int) bool
func (*LogicContext) IsAudioUnpackable ¶ added in v0.19.0
func (lc *LogicContext) IsAudioUnpackable() bool
func (*LogicContext) IsAudioUri ¶ added in v0.23.0
func (lc *LogicContext) IsAudioUri(uri string) bool
func (*LogicContext) IsPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsVideoPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoUnpackable ¶ added in v0.19.0
func (lc *LogicContext) IsVideoUnpackable() bool
func (*LogicContext) IsVideoUri ¶ added in v0.23.0
func (lc *LogicContext) IsVideoUri(uri string) bool
func (*LogicContext) MakeAudioSetupUri ¶ added in v0.23.0
func (lc *LogicContext) MakeAudioSetupUri(uri string) string
func (*LogicContext) MakeVideoSetupUri ¶ added in v0.23.0
func (lc *LogicContext) MakeVideoSetupUri(uri string) string
type RawContext ¶ added in v0.17.0
type RawContext struct {
MediaDescList []MediaDesc
}
func ParseSdp2RawContext ¶ added in v0.23.0
func ParseSdp2RawContext(b []byte) (RawContext, error)
ParseSdp2RawContext 例子见单元测试
type VideoInfo ¶ added in v0.34.3
type VideoInfo struct { VideoPt base.AvPacketPt Vps, Sps, Pps []byte }
Click to show internal directories.
Click to hide internal directories.