Categorygithub.com/go-av/sdp
modulepackage
0.0.0-20241026115258-e6d88ff023e6
Repository: https://github.com/go-av/sdp.git
Documentation: pkg.go.dev

# Functions

Decode decodes b as SDP message, returning error if any.
DecodeSession decodes Session from b, returning error if any.
NewDecoder returns Decoder for Session.
NTPToTime converts NTP timestamp to time.Time with special case for Zero time, that is interpreted as 0 timestamp.
TimeToNTP converts time.Time to NTP timestamp with special case for Zero time, that is interpreted as 0 timestamp.

# Constants

Possible values for <bwtype> defined in section 5.8.
defined in RFC 3890.
Possible values for <bwtype> defined in section 5.8.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.
Attribute types as described in RFC 4566.

# Variables

ErrFailedToDecodeIP means that decoder failed to parse IP.

# Structs

Attribute represents key:value pair.
ConnectionData is representation for Connection Data field.
DecodeError wraps Reason of error and occurrence Place.
Decoder decodes session.
Encryption wraps encryption Key and Method.
Line of SDP session.
Media is media description and attributes.
MediaDescription represents Media Description field value.
Message is top level abstraction.
Origin is field defined in RFC4566 5.2.
TimeZone is representation of <adjustment time> <offset> pair.
Timing wraps "repeat times" and "timing" information.

# Type aliases

Attributes is list of k:v.
Bandwidths is map of BandwidthsType and int (bytes per second).
BandwidthType is <bwtype> sub-field of Bandwidth field.
Medias is list of Media.
Session is set of Lines.
Type of SDP Line is exactly one case-significant character.