Documentation
¶
Index ¶
- func CodecsFromMediaDescription(m *sdp.MediaDescription) (out []sdp.Codec, err error)
- func ExtractDTLSRole(desc *sdp.SessionDescription) webrtc.DTLSRole
- func ExtractFingerprint(desc *sdp.SessionDescription) (string, string, error)
- func ExtractICECredential(desc *sdp.SessionDescription) (string, string, error)
- func ExtractStreamID(media *sdp.MediaDescription) (string, bool)
- func GetBundleMid(parsed *sdp.SessionDescription) (string, bool)
- func GetMediaStreamTrack(m *sdp.MediaDescription) string
- func GetMidValue(media *sdp.MediaDescription) string
- func GetSimulcastRids(m *sdp.MediaDescription) ([]string, bool)
- type SDPFragment
- func (s *SDPFragment) Candidates() []string
- func (s *SDPFragment) ExtractICECredential() (string, string, error)
- func (s *SDPFragment) Marshal() (string, error)
- func (s *SDPFragment) Mid() string
- func (s *SDPFragment) PatchICECredentialAndCandidatesIntoSDP(parsed *sdp.SessionDescription) error
- func (s *SDPFragment) Unmarshal(frag string) error
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 ExtractICECredential ¶
func ExtractStreamID ¶ added in v1.2.0
func GetBundleMid ¶ added in v1.37.0
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
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
Click to show internal directories.
Click to hide internal directories.