Search completed in 1.22 seconds.
13 results for "selectedcandidatepair":
RTCIceTransport.getSelectedCandidatePair() - Web APIs
WebAPIRTCIceTransportgetSelectedCandidatePair
the rtcicetransport method getselectedcandidatepair() returns an rtcicecandidatepair object containing the current best-choice pair of ice candidates describing the configuration of the endpoints of the transport.
... syntax candidatepair = rtcicetransport.getselectedcandidatepair(); parameters none.
...as soon as it finds an acceptable matching pair of candidates, meeting the requirements for the connection, a selectedcandidatepairchange event is fired at the rtcicetransport.
...And 4 more matches
RTCIceTransport.onselectedcandidatepairchange - Web APIs
WebAPIRTCIceTransportonselectedcandidatepairchange
the rtcicetransport interface's onselectedcandidatepairchange event handler specifies a function to be called to handle the selectedcandidatepairchange event, which is fired when the ice agent selects a new candidate pair to be used for the connection.
... syntax rtcicetransport.onselectedcandidatepairchange = candidatepairhandler; value this propoerty should be set to reference an event handler function to be called by the ice agent when it discovers a new candidate pair that the rtcicetransport will be using for communication with the remote peer.
... the event handler can determine the current state by calling the transport's getselectedcandidatepair() method, which returns a rtcicecandidatepair whose rtcicecandidatepair.local and rtcicecandidatepair.global properties specify rtcicecandidate objects describing the local and remote candidates that are currently being used.
...And 2 more matches
RTCIceTransport: selectedcandidatepairchange event - Web APIs
WebAPIRTCIceTransportselectedcandidatepairchange event
a selectedcandidatepairchange event is sent to an rtcicetransport when the ice agent selects a new pair of candidates that describe the endpoints of a viable connection.
... bubbles no cancelable no interface event event handler property onselectedcandidatepairchange examples this example creates an event handler for selectedcandidatepairchange that updates a display providing the user information about the progress of the ice negotiation for an rtcpeerconnection called pc.
... let icetransport = pc.getsenders[0].transport.icetransport; let localprotoelem = document.getelementbyid("local-protocol"); let remoteprotoelem = document.getelementbyid("remote-protocol"); icetransport.addeventlistener("selectedcandidatepairchange", ev => { let pair = icetransport.getselectedcandidatepair(); localprotoelem.innertext = pair.local.protocol.touppercase(); remoteprotoelem.innertext = pair.remote.protocol.touppercase(); }, false) this can also be done by setting the onselectedcandidatepairchange event handler property directly.
... let icetransport = pc.getsenders[0].transport.icetransport; let localprotoelem = document.getelementbyid("local-protocol"); let remoteprotoelem = document.getelementbyid("remote-protocol"); icetransport.onselectedcandidatepairchange = ev => { let pair = icetransport.getselectedcandidatepair(); localprotoelem.innertext = pair.local.protocol.touppercase(); remoteprotoelem.innertext = pair.remote.protocol.touppercase(); } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'selectedcandidatepairchange' in that specification.
RTCIceTransport - Web APIs
WebAPIRTCIceTransport
getselectedcandidatepair() returns a rtcicecandidatepair object that identifies the two candidates—one for each end of the connection—that have been selected so far.
... it's possible that a better pair will be found and selected later; if you need to keep up with this, watch for the selectedcandidatepairchange event.
... selectedcandidatepairchange sent to the rtcicetransport when a new, better pair of candidates has been selected to describe the connectivity between the two peers.
...And 2 more matches
Index - Web APIs
WebAPIIndex
3352 rtcicetransport.getselectedcandidatepair() api, candidates, connectivity, gathering, ice, method, negotiation, pair, rtcicetransport, reference, webrtc, webrtc api, getselectedcandidatepair the rtcicetransport method getselectedcandidatepair() returns an rtcicecandidatepair object containing the current best-choice pair of ice candidates describing the configuration of the endpoints of the transport.
... 3354 rtcicetransport.onselectedcandidatepairchange api, candidate, candidate pair, connectivity, event handler, negotiation, property, rtcicetransport, reference, webrtc, webrtc api, onselectedcandidatepairchange, selectedcandidatepairchange the rtcicetransport interface's onselectedcandidatepairchange event handler specifies a function to be called to handle the selectedcandidatepairchange event, which is fired when the ice agent...
... 3359 rtcicetransport: selectedcandidatepairchange event connectivity, ice, negotiation, rtcicecandidate, rtcicetransport, reference, sdp, webrtc, webrtc api, events, onselectedcandidatepairchange, selectedcandidatepairchange a selectedcandidatepairchange event is sent to an rtcicetransport when the ice agent selects a new pair of candidates that describe the endpoints of a viable connection.
RTCIceCandidatePair - Web APIs
WebAPIRTCIceCandidatePair
it is used as the return value from rtcicetransport.getselectedcandidatepair() to identify the currently-selected candidate pair identified by the ice agent.
... example in this example, an event handler for selectedcandidatepairchange is set up to update an on-screen display showing the protocol used by the currently selected candidate pair.
... var icetransport = pc.getsenders()[0].transport.icetransport; var localproto = document.getelementbyid("local-protocol"); var remoteproto = document.getelementbyid("remote-protocol"); icetransport.onselectedcandidatepairchange = function(event) { var pair = icetransport.getselectedcandidatepair(); localprotocol.innertext = pair.local.protocol.touppercase(); remoteprotocol.innertext = pair.remote.protocol.touppercase(); } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicecandidatepair' in that specification.
RTCIceCandidatePairStats.selected - Web APIs
WebAPIRTCIceCandidatePairStatsselected
that object's selectedcandidatepairid property indicates whether or not the specified transport is the one being used.
... example the function shown in this example identifies the currently-selected candidate pair from a statistics report by first iterating over each report, looking for a transport report; when one is found, that transport's selectedcandidatepairid is used to get the rtcicecandidatepair describing the connection.
... function getcurrentcandidatepair(statsresults) { statsresults.foreach(report => { if (report.type === "transport") { currentpair = statsresults.get(report.selectedcandidatepairid); } }); if (!currentpair) { statsresults.foreach(report => { if (report.type === "candidate-pair" && report.selected) { currentpair = report; } }); } return currentpair; } specifications not part of any specification.
RTCIceCandidatePair.local - Web APIs
WebAPIRTCIceCandidatePairlocal
the rtcicecandidatepair is returned by the rtcicetransport method getselectedcandidatepair().
... var candidatepair = pc.getsenders()[0].transport.transport.getselectedcandidatepair(); var localcandidate = candidatepair.local; the rtcicetransport is found by getting the list of rtcrtpsender objects for the rtcpeerconnection pc.
RTCIceCandidatePair.remote - Web APIs
WebAPIRTCIceCandidatePairremote
the rtcicecandidatepair is returned by the rtcicetransport method getselectedcandidatepair().
... var candidatepair = pc.getsenders()[0].transport.transport.getselectedcandidatepair(); var remotecandidate = candidatepair.remote; the rtcicetransport is found by getting the list of rtcrtpsender objects for the rtcpeerconnection pc.
RTCIceCandidatePairStats - Web APIs
WebAPIRTCIceCandidatePairStats
that object's selectedcandidatepairid property indicates whether or not the specified transport is the one being used.
... usage notes the currently-active ice candidate pair—if any—can be obtained by calling the rtcicetransport method getselectedcandidatepair(), which returns an rtcicecandidatepair object, or null if there isn't a pair selected.
RTCIceTransport.getLocalCandidates() - Web APIs
WebAPIRTCIceTransportgetLocalCandidates
to find the best match found so far, call rtcicetransport.getselectedcandidatepair().
RTCIceTransport.getRemoteCandidates() - Web APIs
WebAPIRTCIceTransportgetRemoteCandidates
to find the best match found so far, call rtcicetransport.getselectedcandidatepair().
WebRTC API - Web APIs
WebAPIWebRTC API
selectedcandidatepairchange the currently-selected pair of ice candidates has changed for the rtcicetransport on which the event is fired.