- java.lang.Object
-
- dev.onvoid.webrtc.RTCIceCandidate
-
public class RTCIceCandidate extends Object
An ICE candidate describes the protocols and routing needed to be able to communicate with a remote device.- Author:
- Alex Andres
-
-
Field Summary
Fields Modifier and Type Field Description StringsdpSDP string representation of this candidate.StringsdpMidIf not null, this contains the media stream "identification-tag" defined in [RFC5888] for the media component this candidate is associated with.intsdpMLineIndexIf not null, this indicates the index (starting at zero) of the media description in the SDP this candidate is associated with.StringserverUrlThe URL of the ICE server which this candidate was gathered from.
-
Constructor Summary
Constructors Constructor Description RTCIceCandidate(String sdpMid, int sdpMLineIndex, String sdp)Creates an instance of RTCIceCandidate with the specified parameters.RTCIceCandidate(String sdpMid, int sdpMLineIndex, String sdp, String serverUrl)Creates an instance of RTCIceCandidate with the specified parameters.
-
-
-
Field Detail
-
sdpMid
public final String sdpMid
If not null, this contains the media stream "identification-tag" defined in [RFC5888] for the media component this candidate is associated with.
-
sdpMLineIndex
public final int sdpMLineIndex
If not null, this indicates the index (starting at zero) of the media description in the SDP this candidate is associated with.
-
sdp
public final String sdp
SDP string representation of this candidate.
-
serverUrl
public final String serverUrl
The URL of the ICE server which this candidate was gathered from.
-
-
Constructor Detail
-
RTCIceCandidate
public RTCIceCandidate(String sdpMid, int sdpMLineIndex, String sdp)
Creates an instance of RTCIceCandidate with the specified parameters.- Parameters:
sdpMid- The media stream "identification-tag"sdpMLineIndex- The index (starting at zero) of the media description in the SDP.sdp- SDP string representation of the candidate.
-
RTCIceCandidate
public RTCIceCandidate(String sdpMid, int sdpMLineIndex, String sdp, String serverUrl)
Creates an instance of RTCIceCandidate with the specified parameters.- Parameters:
sdpMid- The media stream "identification-tag"sdpMLineIndex- The index (starting at zero) of the media description in the SDP.sdp- SDP string representation of the candidate.serverUrl- The URL of the ICE server.
-
-