MCPcopy Create free account
hub / github.com/pion/ice / AddExtension

Method AddExtension

candidate.go:69–69  ·  view source on GitHub ↗

AddExtension adds an extension attribute to the ICECandidate. If an extension with the same key already exists, it will be overwritten. Extension attributes are defined in RFC 5245, Section 15.1:

(extension CandidateExtension)

Source from the content-addressed store, hash-verified

67 // If an extension with the same key already exists, it will be overwritten.
68 // Extension attributes are defined in RFC 5245, Section 15.1:
69 AddExtension(extension CandidateExtension) error
70 // RemoveExtension removes an extension attribute from the ICECandidate.
71 // Extension attributes are defined in RFC 5245, Section 15.1:
72 RemoveExtension(key string) (ok bool)

Callers 3

Implementers 1

candidateBasecandidate_base.go

Calls

no outgoing calls

Tested by 2