Documentation
¶
Overview ¶
Package sdp provides SDP parsing and generation. Warning: This package does not validate sdp, it only extracts required information. Warning: This package does not produce reproducible sdp string.
Index ¶
- Constants
- Variables
- func IsMiniSDP(payload []byte) bool
- func Marshal(sdp *SessionDescription) (string, error)
- func UnmarshalMiniSDP(raw []byte) (*ms, error)
- type Candidate
- type Codec
- type FeedbackParams
- type Fingerprint
- type HeaderExtension
- type IceMode
- type MediaDescription
- type SessionDescription
- type StreamParams
- type TransportInfo
Constants ¶
View Source
const ( ConnectionRoleNone = "" ConnectionRoleActive = "active" ConnectionRolePassive = "passive" ConnectionRoleActpass = "actpass" ConnectionRoleHoldconn = "holdconn" )
View Source
const ( UDPProtocolName = "udp" TCPProtocolName = "tcp" SsltcpProtocolName = "ssltcp" )
View Source
const (
IceModeLite = IceMode(1)
)
Variables ¶
Functions ¶
func UnmarshalMiniSDP ¶
Types ¶
type Candidate ¶
type Candidate struct {
ID string
Component int
Protocol string
RelayProtocol string
Address string
Priority uint32
Username string
Password string
Type string
NetworkName string
Generation uint32
Foundation string
RelatedAddress string
TCPType string
TransportName string
NetworkID uint16
NetworkCost uint16
URL string
}
type FeedbackParams ¶
type Fingerprint ¶
type HeaderExtension ¶
type MediaDescription ¶
type MediaDescription struct {
MediaType string
MID string
RtcpMux bool
RtcpReducedSize bool
Direction string
HeaderExtensions []HeaderExtension
Codecs map[uint8]*Codec
TrackID string
Streams []StreamParams
// contains filtered or unexported fields
}
type SessionDescription ¶
type SessionDescription struct {
ExtmapAllowMixed bool
MsidSupported bool
TransportInfo TransportInfo
MediaDescription []*MediaDescription
}
func Unmarshal ¶
func Unmarshal(sdp string) (*SessionDescription, error)
func (*SessionDescription) Marshal ¶
func (s *SessionDescription) Marshal() (string, error)
func (*SessionDescription) Unmarshal ¶
func (s *SessionDescription) Unmarshal(sdp string) error
type TransportInfo ¶
Click to show internal directories.
Click to hide internal directories.