sdp

package
v0.0.0-...-36a4cef Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, session *SessionDescription) (n int, err error)

Write writes a SessionDescription struct to the given writer

Types

type ConnectData

type ConnectData struct {
	NetType           string
	AddrType          string
	ConnectionAddress string
}

ConnectData connection section of a SDP payload

type MediaDescription

type MediaDescription struct {
	Media string
	Port  string // keeping string for now (parse later, fmt: <port>/<number of ports>)
	Proto string
	Fmt   string
}

MediaDescription media description of a SDP payload

type Origin

type Origin struct {
	Username       string
	SessionID      string
	SessionVersion string
	NetType        string
	AddrType       string
	UnicastAddress string
}

Origin section of a SDP payload

type SessionDescription

type SessionDescription struct {
	Version          int
	Origin           Origin
	SessionName      string
	Information      string
	ConnectData      ConnectData
	Timing           Timing
	MediaDescription []MediaDescription
	Attributes       map[string]string
}

SessionDescription a struct representation of a SDP payload

func NewSessionDescription

func NewSessionDescription() *SessionDescription

NewSessionDescription instantiates a SessionDescription struct

func Parse

func Parse(r io.Reader) (*SessionDescription, error)

Parse parses out an SDP packet into a SDP struct

type Timing

type Timing struct {
	StartTime int
	StopTime  int
}

Timing timing section of a SDP payload

Jump to

Keyboard shortcuts

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