es5/twilio/rtc/icecandidate.js
/**
     * @constructor
     * @param iceCandidate RTCIceCandidate coming from the browser
     */
@constructor
@param iceCandidate RTCIceCandidate coming from the browser
@constructor @param iceCandidate RTCIceCandidate coming from the browser
function IceCandidate(iceCandidate, isRemote) {
        if (isRemote === void 0) { isRemote = false; }
        this.deleted = false;
        var cost;
        var parts = iceCandidate.candidate.split('network-cost ');
        if (parts[1]) {
            cost = parseInt(parts[1], 10);
        }
        this.candidateType = iceCandidate.type;
        this.ip = iceCandidate.ip || iceCandidate.address;
        this.isRemote = isRemote;
        this.networkCost = cost;
        this.port = iceCandidate.port;
        this.priority = iceCandidate.priority;
        this.protocol = iceCandidate.protocol;
        this.relatedAddress = iceCandidate.relatedAddress;
        this.relatedPort = iceCandidate.relatedPort;
        this.tcpType = iceCandidate.tcpType;
        this.transportId = iceCandidate.sdpMid;
    }
function IceCandidate ( iceCandidate , isRemote ) { if ( isRemote === void 0 ) { isRemote = false ; } this . deleted = false ; var cost ; var parts = iceCandidate . candidate . split ( 'network-cost ' ) ; if ( parts [ 1 ] ) { cost = parseInt ( parts [ 1 ] , 10 ) ; } this . candidateType = iceCandidate . type ; this . ip = iceCandidate . ip || iceCandidate . address ; this . isRemote = isRemote ; this . networkCost = cost ; this . port = iceCandidate . port ; this . priority = iceCandidate . priority ; this . protocol = iceCandidate . protocol ; this . relatedAddress = iceCandidate . relatedAddress ; this . relatedPort = iceCandidate . relatedPort ; this . tcpType = iceCandidate . tcpType ; this . transportId = iceCandidate . sdpMid ; }
@constructor
 @param iceCandidate RTCIceCandidate coming from the browser
@constructor @param iceCandidate RTCIceCandidate coming from the browser
/**
         * Whether this is deleted from the list of candidate gathered
         */