sdp

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSdpOrigin

func ParseSdpOrigin(v []byte, out *SdpOrigin)

ParseSdpOrigin parses SDP origin header

func ParserSdpTime

func ParserSdpTime(v []byte, out *sdpTime)

ParserSdpTime parses SDP time header

Types

type SdpMsg

type SdpMsg struct {
	Origin    SdpOrigin
	Version   sdpVersion
	Time      sdpTime
	MediaDesc sdpMediaDesc
	Attrib    []sdpAttrib
	ConnData  sdpConnData
}

SdpMsg is representation of an SDP message

func Parse

func Parse(v []byte) (output SdpMsg)

Parse Parses SDP

func (*SdpMsg) Size

func (sm *SdpMsg) Size() int

Size returns size in bytes

func (*SdpMsg) String

func (sm *SdpMsg) String() string

type SdpOrigin

type SdpOrigin struct {
	Username       []byte
	SessionID      []byte
	SessionVersion []byte
	NetType        []byte
	AddrType       []byte
	UniAddr        []byte
	Src            []byte
}

SdpOrigin SDP origin header "o="

func (*SdpOrigin) String

func (so *SdpOrigin) String() string

String returns header as string

Jump to

Keyboard shortcuts

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