sdp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodecsFromMediaDescription

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

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

func GetBundleMid

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

func GetMediaStreamTrack

func GetMediaStreamTrack(m *sdp.MediaDescription) string

func GetMidValue

func GetMidValue(media *sdp.MediaDescription) string

func GetSimulcastRids

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

Types

type SDPFragment

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

func ExtractSDPFragment

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

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

func (*SDPFragment) ExtractICECredential

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

func (*SDPFragment) Marshal

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

func (s *SDPFragment) Mid() string

func (*SDPFragment) PatchICECredentialAndCandidatesIntoSDP

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

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