sdp

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 12

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 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 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)

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