sdp

package
v1.54.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 17 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodecsFromMediaDescription added in v1.37.0

func CodecsFromMediaDescription(m *sdp.MediaDescription) (out []sdp.Codec, err error)

func CodecsFromSessionDescription added in v1.53.2

func CodecsFromSessionDescription(parsed *sdp.SessionDescription, mediaType string) ([]sdp.Codec, error)

func ExtractDTLSRole

func ExtractDTLSRole(desc *sdp.SessionDescription) webrtc.DTLSRole

func ExtractFingerprint

func ExtractFingerprint(desc *sdp.SessionDescription) (string, string, error)

func ExtractICECredential

func ExtractICECredential(desc *sdp.SessionDescription) (string, string, error)

func ExtractStreamID added in v1.2.0

func ExtractStreamID(media *sdp.MediaDescription) (string, bool)

func GetBundleMid added in v1.37.0

func GetBundleMid(parsed *sdp.SessionDescription) (string, bool)

func GetIP added in v1.42.1

func GetIP(sdp *sdp.SessionDescription) string

func GetMediaStreamTrack added in v1.39.2

func GetMediaStreamTrack(m *sdp.MediaDescription) string

func GetMidValue

func GetMidValue(media *sdp.MediaDescription) string

func GetSimulcastRids added in v1.39.2

func GetSimulcastRids(m *sdp.MediaDescription) ([]string, bool)

func ParseFmtp added in v1.53.2

func ParseFmtp(fmtp string) map[string]string

Keys are lowercased (RFC 6838 §4.3). Params without a value, like "0-16", map to "".

Types

type SDPFragment added in v1.37.0

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

func ExtractSDPFragment added in v1.37.0

func ExtractSDPFragment(parsed *sdp.SessionDescription) (*SDPFragment, error)

primarily for use with WHIP ICE Restart - https://www.rfc-editor.org/rfc/rfc9725.html#name-ice-restarts

func (*SDPFragment) Candidates added in v1.37.0

func (s *SDPFragment) Candidates() []string

func (*SDPFragment) ExtractICECredential added in v1.37.0

func (s *SDPFragment) ExtractICECredential() (string, string, error)

func (*SDPFragment) Marshal added in v1.37.0

func (s *SDPFragment) Marshal() (string, error)

primarily for use with WHIP ICE Restart - https://www.rfc-editor.org/rfc/rfc9725.html#name-ice-restarts

func (*SDPFragment) Mid added in v1.37.0

func (s *SDPFragment) Mid() string

func (*SDPFragment) PatchICECredentialAndCandidatesIntoSDP added in v1.37.0

func (s *SDPFragment) PatchICECredentialAndCandidatesIntoSDP(parsed *sdp.SessionDescription) error

primarily for use with WHIP ICE Restart - https://www.rfc-editor.org/rfc/rfc9725.html#name-ice-restarts

func (*SDPFragment) Unmarshal added in v1.37.0

func (s *SDPFragment) Unmarshal(frag string) error

primarily for use with WHIP Trickle ICE - https://www.rfc-editor.org/rfc/rfc9725.html#name-trickle-ice

Jump to

Keyboard shortcuts

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