Documentation ¶
Overview ¶
Package rtp contains bindings for the GStreamer RTP library.
Index ¶
Constants ¶
const MaxCSRCCount uint = C.GST_RTP_SOURCE_META_MAX_CSRC_COUNT // 15
MaxCSRCCount is the maximum number of elements that can be added to a CSRC.
Variables ¶
This section is empty.
Functions ¶
func SourceMetaAPIType ¶
SourceMetaAPIType returns the GType for GstRTPSourceMeta.
func SourceMetaInfo ¶
SourceMetaInfo returns the MetaInfo for GstRTPSourceMeta.
Types ¶
type SourceMeta ¶
type SourceMeta struct {
// contains filtered or unexported fields
}
SourceMeta is a wrapper around GstRTPSourceMeta.
func AddSourceMeta ¶
func AddSourceMeta(buffer *gst.Buffer, ssrc *uint32, csrc []uint32) *SourceMeta
AddSourceMeta attaches the given RTP source information to the buffer.
func GetSourceMeta ¶
func GetSourceMeta(buffer *gst.Buffer) *SourceMeta
GetSourceMeta retrieves the SourceMeta from the given buffer.
func (*SourceMeta) AppendCSRC ¶
func (s *SourceMeta) AppendCSRC(csrc []uint32) bool
AppendCSRC appends the given CSRC to the list of contributing sources in meta.
func (*SourceMeta) GetSourceCount ¶
func (s *SourceMeta) GetSourceCount() uint
GetSourceCount returns the total number of RTP sources found in this meta, both SSRC and CSRC.
func (*SourceMeta) SetSSRC ¶
func (s *SourceMeta) SetSSRC(ssrc *uint32) bool
SetSSRC sets the SSRC on meta. If ssrc is nil, the SSRC of meta will be unset.