Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSDP ¶
func DecodeSDP(in string) (webrtc.SessionDescription, error)
DecodeSDP reverses EncodeSDP.
func EncodeSDP ¶
func EncodeSDP(desc webrtc.SessionDescription) (string, error)
EncodeSDP serialises desc as JSON, zstd-compresses it, and base45-encodes the result.
func ResolveSDPFlag ¶
ResolveSDPFlag returns the encoded SDP string referenced by value, validates it via DecodeSDP, and returns a descriptive error when the supplied value is unusable. value must be non-empty; callers are responsible for the "unset" branch.
A leading '@' switches to file mode: @- reads stdin, @<path> reads a file. Otherwise the value is treated as a literal encoded SDP.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.