gstsdp

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Overview

gstsdp contains bindings for the gstreamer sdp library. See also https://gstreamer.freedesktop.org/documentation/sdp/index.html

Index

Constants

This section is empty.

Variables

View Source
var ErrCouldNotGetCaps = errors.New("could not get caps")
View Source
var ErrSDPInvalid = errors.New("invalid SDP")

Functions

This section is empty.

Types

type Media

type Media struct {
	// contains filtered or unexported fields
}

func (*Media) Format

func (m *Media) Format(idx int) string

func (*Media) Formats

func (m *Media) Formats() iter.Seq2[int, string]

func (*Media) FormatsLen

func (m *Media) FormatsLen() int

func (*Media) GetCaps

func (m *Media) GetCaps(pt int) (*gst.Caps, error)

type Message

type Message struct {
	// contains filtered or unexported fields
}

func NewMessageFromUnsafe

func NewMessageFromUnsafe(ptr unsafe.Pointer) *Message

NewMessageFromUnsafe creates a new SDP message from a pointer and does not finalize it

func ParseSDPMessage

func ParseSDPMessage(sdp string) (*Message, error)

func (*Message) Free

func (msg *Message) Free()

Free frees the SDP message.

This is called automatically when the object is garbage collected.

func (*Message) Instance

func (msg *Message) Instance() unsafe.Pointer

func (*Message) Media

func (msg *Message) Media(i int) *Media

func (*Message) Medias

func (msg *Message) Medias() iter.Seq2[int, *Media]

func (*Message) MediasLen

func (msg *Message) MediasLen() int

func (*Message) String

func (msg *Message) String() string

func (*Message) UnownedCopy

func (msg *Message) UnownedCopy() *Message

UnownedCopy creates a new copy of the SDP message that will not be finalized

this is needed to pass the message back to C where C takes ownership of the message

the returned SDP message will leak memory if not freed manually

type SDPResult

type SDPResult C.GstSDPResult
const (
	SDPResultOk SDPResult = C.GST_SDP_OK
	SDPEinval   SDPResult = C.GST_SDP_EINVAL
)

Jump to

Keyboard shortcuts

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