webrtc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package webrtc validates captured SDP and ICE media identities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeAnswer

func NormalizeAnswer(offer, answer string) (string, error)

NormalizeAnswer applies the observed recvonly/sendrecv workaround by MID, never by media kind. Other attributes, including vendor extensions, survive.

func ParseSDP

func ParseSDP(raw string) (*sdp.SessionDescription, error)

ParseSDP validates the media identities used to route trickled ICE. It does not certify codec interoperability or replace a peer connection's SDP validation.

func ValidateICE

func ValidateICE(description *sdp.SessionDescription, mid string, index int) error

ValidateICE checks that the candidate's optional MID and index refer to the same media section. Candidate grammar remains the peer implementation's job.

Types

This section is empty.

Jump to

Keyboard shortcuts

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