rtp

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Overview

Package rtp contains bindings for the GStreamer RTP library.

Index

Constants

MaxCSRCCount is the maximum number of elements that can be added to a CSRC.

Variables

This section is empty.

Functions

func SourceMetaAPIType

func SourceMetaAPIType() glib.Type

SourceMetaAPIType returns the GType for GstRTPSourceMeta.

func SourceMetaInfo

func SourceMetaInfo() *gst.MetaInfo

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL