relatedPort property
The RTCIceCandidate interface's read-only relatedPort
property
indicates the port number of reflexive or relay candidates.
If the candidate is a host candidate (that is, its
RTCIceCandidate.address is in fact the real IP address of the remote
peer), relatedPort
is null
.
The relatedPort
field's value is set from the candidateInfo
options
object passed to the RTCIceCandidate.RTCIceCandidate
constructor.
You can't specify the value of relatedPort
directly in the options
object, but its value is automatically extracted from the object's
candidate
a-line, if it's formatted properly (the rel-port
field).
The related address (RTCIceCandidate.relatedAddress) and port are not
used at all by itself; they are provided for
analysis and diagnostic purposes only, and their inclusion may be blocked
by security systems, so do not rely on them having non-null
values.
Implementation
external int? get relatedPort;