Search completed in 0.92 seconds.
RTCPeerConnection: iceconnectionstatechange event - Web APIs
see ice restart in lifetime of a webrtc session for further information. usage notes a successful connection attempt will typically involve the state starting at new, then transitioning through checking, then connected, and finally completed. ...
...see ice restart in lifetime of a webrtc session for further information. usage notes a successful connection attempt will typically involve the state starting at new, then transitioning through checking, then connected, and finally completed. ...
... event is sent to an rtcpeerconnection object each time the ice connection state changes during the negotiation process. the new ice connection state is available in the object's iceconnectionstate} property. bubbles no cancelable no interface event event handler property oniceconnecti
onstatechange one common task performed by the iceconnecti
onstatechange event listener: to trigger ice restart when the state changes to failed. see ice restart in lifetime of a webrtc session for further information. usage notes a successful connection attempt will typically involve the state starting at new, then transitioning through checking, then connected, and finally completed. however, under certain circumstances, the connected state can be skipped, causing...
...And 3 more matches
RTCPeerConnection.onconnectionstatechange - Web APIs
the function receives as input a single parameter, which is an object of type event. ...
...the function receives as input a single parameter, which is an object of type event. ...
...the function receives as input a single parameter, which is an object of type event. ...
...And 3 more matches
RTCPeerConnection.oniceconnectionstatechange - Web APIs
your code can look at the value of rtcpeerconnection.iceconnectionstate to determine what the new state is. ...
...your code can look at the value of rtcpeerconnection.iceconnectionstate to determine what the new state is. ...
...your code can look at the value of rtcpeerconnection.iceconnectionstate to determine what the new state is. ...
...And 3 more matches
RTCPeerConnection: connectionstatechange event - Web APIs
the connecti
onstatechange event is sent to the ontrack event handler on an rtcpeerconnection object after a new track has been added to an rtcrtpreceiver which is part of the connection. the new connection state can be found in connectionstate, and is one of the strings in the rtcpeerconnectionstate enumerated type. bubbles no cancelable no interface event event handler onconnecti
onstatechange examples for an rtcpeerconnection, pc, this example sets up a handler for connecti
onstatechange messages to handle changes to the connectivity of the webrtc session. it simply calls an app-defined function called setonlinestatus() to update a status display. ...
... bubbles no cancelable no interface event event handler onconnecti
onstatechange examples for an rtcpeerconnection, pc, this example sets up a handler for connecti
onstatechange messages to handle changes to the connectivity of the webrtc session. it simply calls an app-defined function called setonlinestatus() to update a status display. ...
... candidate recommendation initial specification. ...
...And 2 more matches
RTCIceTransport.onstatechange - Web APIs
the event handler receives as its sole input an event object describing the statechange event which occurred. to determine the new state, examine the value of state. ...
... the event handler receives as its sole input an event object describing the statechange event which occurred. to determine the new state, examine the value of state. ...
...statechange event which occurred. to determine the new state, examine the value of state. example this snippet establishes a handler for the statechange event that looks to see if the transport has entered the "failed" state, which indicates that the connection has failed with no chance of being automatically restored. var icetransport = pc.getsenders()[0].transport.icetransport; icetransport.
onstatechange = function(event) { if (icetransport.state == "failed") { handlefailure(pc); } } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicetransport.
onstatechange' in that specification. candidate recommendation initial specification. ...
ServiceWorker.onstatechange - Web APIs
} serviceworker.addeventlistener('statechange', function(statechangeevent) { ... } ) examples this code snippet is from the service worker registration-events sample (live demo). the code listens for any change in the serviceworker.state and returns its value. ...
...#kind').textcontent = 'active'; } if (serviceworker) { logstate(serviceworker.state); serviceworker.addeventlistener('statechange', function(e) { logstate(e.target.state); }); } note that when statechange fires, the service worker's references may have changed. for example: navigator.serviceworker.register(..).then(function(swr) { swr.installing.state == "installing" swr.installing.
onstatechange = function() { swr.installing == null; // at this point, swr.waiting or swr.active might be true. this is because the statechange // event gets queued, meanwhile the underlying worker may have gone into the waiting // state and will be immediately activated if possible. } }) specifications specification status comment service workersthe definition of 's...
... working draft initial definition ...
mozbrowserselectionstatechanged
non-standard this feature is non-standard and is not on a standards track. do not use it on production sites facing the web: it will not work for every user. there may also be large incompatibilities between implementations and the behavior may change in the future. the mozbrowserselecti
onstatechanged event is fired when the text selected inside the browser <iframe> content changes. note that this is deprecated, and current implementations should use mozbrowsercaretstatechanged instead. general info specification non standard interface customevent bubbles yes cancelable yes target <iframe> default action none properties property type description target read only eventtarget the browser iframe type read only domstr...
... e.g. 1.1 is a 10% zoom in, and 0.9% is a 10% zoom out. iscollapsed a boolean indicating whether the current selection is collapsed (true) or not (false). visible a boolean indicating whether the current selection is visible (true) or not (false). states the current state of the selection. ...
Element: MSManipulationStateChanged event - Web APIs
msmanipulati
onstatechanged fires when the state of an element being manipulated has changed (ie. whenever you start or finish panning or zooming an element). it is a proprietary event specific to microsoft edge and internet explorer. bubbles unknown cancelable unknown interface msmanipulationevent event handler property unknown get manipulation states using the laststate and currentstate properties. ...
... it is a proprietary event specific to microsoft edge and internet explorer. bubbles unknown cancelable unknown interface msmanipulationevent event handler property unknown get manipulation states using the laststate and currentstate properties. examples // listen for panning state change events outerscroller.addeventlistener("msmanipulati
onstatechanged", function(e) { // check to see if they lifted while pulled to the top if (e.currentstate == ms_manipulation_state_inertia && outerscroller.scrolltop === 0) { refreshitemsasync(); } }); specifications not part of any specification. ...
BaseAudioContext.onstatechange - Web APIs
the
onstatechange property of the baseaudiocontext interface defines an event handler function to be called when the statechange event fires: this occurs when the audio context's state changes. syntax baseaudiocontext.
onstatechange = function() { ... }; example the following snippet is taken from our audiocontext states demo (see it running live.) the
onstatechange hander is used to log the current state to the console every time it changes. audioctx.
onstatechange = function() { console.log(audioctx.state); } specifications specification status comment web audio apithe definition of '
onstatechange' in that specification. working draft ...
nsIWebProgressListener
these flags are mu...
...uest arequest, in unsigned long astateflags, in nsresult astatus); void onstatuschange(in nsiwebprogress awebprogress, in nsirequest arequest, in nsresult astatus, in wstring amessage); constants state transition flags these flags indicate the various states that requests may transition through as they are being loaded. these flags are mutually exclusive. for any given request,
onstatechange() is called once with the state_start flag, zero or more times with the state_transferring flag or once with the state_redirecting flag, and then finally once with the state_stop flag. note: for document requests, a second state_stop is generated (see the description of state_is_window for more details). constant value description state_start 0x00000001 this flag i...
...h the state_redirecting flag, and then finally once with the state_stop flag. note: for document requests, a second state_stop is generated (see the description of state_is_window for more details). constant value description state_start 0x00000001 this flag indicates the start of a request. this flag is set when a request is initiated. the request is complete when
onstatechange() is called for the same request with the state_stop flag set. state_redirecting 0x00000002 this flag indicates that a request is being redirected. the request passed to
onstatechange() is the request that is being redirected. when a redirect occurs, a new request is generated automatically to process the new request. expect a corresponding state_start event for the new request, an...
...And 9 more matches
Index - Web APIs
fragments of audio file data. 248 baseaudiocontext.destination api, audiocontext, baseaudiocontext, property, reference, web audio api, destination an audiodestinationnode. 249 baseaudiocontext.listener api, audiocontext, baseaudiocontext, property, reference, web audio api, listener, spatialization an audiolistener object. 250 baseaudiocontext.
onstatechange api, audio, audiocontext, baseaudiocontext, event handler, reference, web audio api,
onstatechange the following snippet is taken from our audiocontext states demo (see it running live.) the
onstatechange hander is used to log the current state to the console every time it changes. 251 baseaudiocontext.samplerate api, audiocontext, baseaudiocontext, property, reference, w...
...ith a mouse). typically, it's preferable to listen for the click event instead. 1179 element: msinertiastart event event, non-standard, reference the msinertiastart event is fired when contact with the touch surface stops when a scroll has enough inertia to continue scrolling. this event may not be fired if the scroll is sufficiently slow. 1180 element: msmanipulati
onstatechanged event event, event:microsoft extensions, msmanipulati
onstatechanged, non-standard, reference msmanipulati
onstatechanged fires when the state of an element being manipulated has changed (ie. whenever you start or finish panning or zooming an element). 1181 element: mozmousepixelscroll event dom, event, firefox, mouse wheel, mozmousepixelscroll, mozilla, non-standard, refe...
...cess api, interface, reference, web midi api the midiaccess interface of the web midi api provides methods for listing midi input and output devices, and obtaining access to those devices. 2276 midiconnectionevent api, draft, interface, midi, midiconnectionevent, reference, web midi api the midiconnectionevent interface of the web midi api is the event passed to the
onstatechange event of the midiaccess interface and the
onstatechange event of the midiports interface. this occurs any time a new port becomes available, or when a previously available port becomes unavailable. for example, this event is fired whenever a midi device is either plugged in to or unplugged from a computer. 2277 midiinput api, draft, interface, midiinput, needsexample, reference, we...
...And 6 more matches
Signaling and video calling - Web APIs
we use only one of these in this example...
...we use only one of these in this example: iceservers. this is an array of...
...s to create and send an offer, to the callee, asking it to connect with us. see starting negotiation to see how we handle this. rtcpeerconnection.onremovetrack this counterpart to ontrack is called to handle the removetrack event; it's sent to the rtcpeerconnection when the remote peer removes a track from the media being sent. see handling the removal of tracks. rtcpeerconnection.oniceconnecti
onstatechange the iceconnecti
onstatechange event is sent by the ice layer to let you know about changes to the state of the ice connection. this can help you know when the connection has failed, or been lost. we'll look at the code for this example in ice connection state below. rtcpeerconnection.onicegatheringstatechange the ice layer sends you the icegatheringstatechange event, when the ice agent's proces...
...And 4 more matches
nsIDownloadProgressListener
1.9.1 void onprogresschange(in nsiwebprogress awebprogress, in nsirequest arequest, in long long acurselfprogress, in long long amaxselfprogress, in long long acurtotalprogress, in long long amaxtotalprogress, in nsidownload adownload); void onsecuritychange(in nsiwebprogress awebprogress, in nsirequest arequest, in unsigned long astate, in nsidownload adownload); void
onstatechange(in nsiwebprogress awebprogress, in nsirequest arequest, in unsigned long astateflags, in nsresult astatus, in nsidownload adownload); void onstatuschange(in nsiwebprogress awebprogress, in nsirequest arequest, in nsresult astatus, in wstring amessage, in nsidownload adownload); obsolete since gecko 1.9.1 attributes attribute type description document ns...
...ned long astate, in nsidownload adownload ); parameters awebprogress the nsiwebprogress instance used by the download manager to monitor downloads. arequest the nsichannel that changed state. this parameter will not be null. astate the new state of the download. see nsidownloadmanager.constants for a list of possible values. adownload the download whose security level is changing.
onstatechange() called when the state of a particular download changes. void
onstatechange( in nsiwebprogress awebprogress, in nsirequest arequest, in unsigned long astateflags, in nsresult astatus, in nsidownload adownload ); parameters awebprogress the nsiwebprogress instance used by the download manager to monitor downloads. arequest the nsichannel that changed state. this parameter will...
... awebprogress the nsiwebprogress instance used by the download manager to monitor downloads. arequest the nsichannel that changed state. this parameter will not be null. astateflags flags indicating the download's new state. this value is a combination of one of the nsiwebprogresslistener.state_transition_flags. astatus the new state information for the download. see nsiwebprogresslistener.
onstatechange() for details. this can also be one of the nsidownloadmanager.constants. adownload the download whose state changed. onstatuschange() obsolete since gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) called when the status of a download request has changed. the received status message is intended to be displayed visibly to the user. note: if source and de...
...And 2 more matches
Using DTMF with WebRTC - Web APIs
the dial button is clicked, connectanddial() is called. this starts building the webrtc connection in preparation for sending the dtmf codes. ...
...ial() is called. this starts building the webrtc connection in preparation for sending the dtmf codes. ...
...ddicecandidate() fails, the catch() clause outputs the error to our log box. if event.candidate is null, that indicates that there are no more candidates available, and we log that information. dialing once the connection is open our design requires that when the connection is established, we immediately send the dtmf string. ...
...And 2 more matches
RTCPeerConnection - Web APIs
cpeerconnection.onaddstream event handler is a property containing the code to execute when the addstream event, of type mediastreamevent, is received by this rtcpeerconnection. such an event is sent when a mediastream is added to this connection by the remote peer. the event is sent immediately after the call setremotedescription() and doesn't wait for the result of the sdp negotiation.onconnecti
onstatechangethe rtcpeerconnection.onconnecti
onstatechange property specifies an eventhandler which is called to handle the connecti
onstatechange event when it occurs on an instance of rtcpeerconnection. this happens whenever the aggregate state of the connection changes.ondatachannel the rtcpeerconnection.ondatachannel property is an eventhandler which specifies a function which is called when the datachanne...
...is added to the connection by the remote peer calling createdatachannel().onicecandidatethe rtcpeerconnection property onicecandidate property is an eventhandler which specifies a function to be called when the icecandidate event occurs on an rtcpeerconnection instance. this happens whenever the local ice agent needs to deliver a message to the other peer through the signaling server.oniceconnecti
onstatechange the rtcpeerconnection.oniceconnecti
onstatechange property is an event handler which specifies a function to be called when the iceconnecti
onstatechange event is fired on an rtcpeerconnection instance. this happens when the state of the connection's ice agent, as represented by the iceconnectionstate property, changes.onicegatheringstatechange the rtcpeerconnection.onicegatheringstatechange prop...
...bsoleted long ago and was never implemented in all major browsers. rtcpeerconnection.createdtmfsender() creates a new rtcdtmfsender, associated to a specific mediastreamtrack, that will be able to send dtmf phone signaling over the connection. events listen to these events using addeventlistener() or by assigning an event listener to the oneventname property of this interface. connecti
onstatechange sent to the rtcpeerconnection object when the overall connectivity status of the rtcpeerconnection changes. also available through the onconnecti
onstatechange event handler property. datachannel sent to the rtcpeerconnection object when the remote peer adds an rtcdatachannel to the connection. also available through the ondatachannel event handler property. icecandidate sent to the peer co...
...ecified candidate be transmitted to the remote peer. also available through the onicecandidate event handler property. icecandidateerror an error of type rtcpeerconnectioniceerrorevent which is sent to the connection if an error occurred during ice candidate gathering. the event's properties describe the error. also available through the onicecandidateerror event handler property. iceconnecti
onstatechange sent to the rtcpeerconnection when the state of the ice connection changes, such as when it disconnects. also available using the oniceconnecti
onstatechange event handler property. icegatheringstatechange sent to the rtcpeerconnection when the ice layer's gathering state, reflected by icegatheringstate, changes. this indicates whether ice negotiation has not yet begun (new), has begun gatheri...
Embedding Tips
, monitor progress etc.? register your ownnsiwebprogresslistener object to listen for progress and state notifications. here is a simple example which demonstrates the principle. the simplepersist() function takes a string url and a string file path. in response it creates a persist object, creates a listener and starts the operation. as the operation progresses, methods on the listener such as
onstatechange, onprogresschange etc. are called, allowing the embedder to know what is happening. when the operation is completed, the
onstatechange will be notified by a combination of state_stop | state_is_network state flags. you may also use the progress listener to query the request supplied in
onstatechange for more information. for example, if you wanted to check the server response headers, you might ...
... it is left as an exercise to make this sample synchronous, i.e. ...
...change for state_start | state_is_request flags, and from the nsirequest argument qi fornsihttpchanne and call methods on that to determine response codes and other information from the server. it is left as an exercise to make this sample synchronous, i.e. wait for persistence to complete before returning. hint, add a native message processing loop after the call to saveuri that terminates when
onstatechange indicates persistence has finished.. how do i print a page? query the web browser object for nsiwebbrowserprint. call the nsiwebbrowserprint::print() method supplying a print settings object (e.g. that returned from nsiwebbrowserprint::getglobalprintsettings) that you wish to print the page with. how do i print preview a page? query the web browser object for the nsiwebbrowserprint interface.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
ovements have fixed this by adding a new restartice() method to rtcpeerconnection. ...
...c.onnegotiationneeded = async options => { await pc.setlocaldescription(await pc.createoffer(options)); signaler.send({ description: pc.localdescription }); }; pc.oniceconnecti
onstatechange = () => { if (pc.iceconnectionstate === "failed") { pc.onnegotiationneeded({ icerestart: true }); } }; this has a number of reliability issues and outright bugs (such as failing if the iceconnecti
onstatechange event fires when the signaling state isn't stable), but there was no way you could actually request an ice restart other than by creating and sending an offer with the icerestart option set to true. sending the restart request thus required directly invoking the negotiationneeded event's handler. getting it right was tricky at best, and was so easy to get wrong that bugs are common. using restar...
... invoking the negotiationneeded event's handler. getting it right was tricky at best, and was so easy to get wrong that bugs are common. using restartice() now, you can use restartice() to do this much more cleanly: pc.onnegotiationneeded = async options => { await pc.setlocaldescription(await pc.createoffer(options)); signaler.send({ description: pc.localdescription }); }; pc.oniceconnecti
onstatechange = () => { if (pc.iceconnectionstate === "failed") { pc.restartice(); } }; with this improved technique, instead of directly calling onnegotiationneeded with options to trigger ice restart, the failed ice connection state simply calls restartice(). restartice() tells the ice layer to automatically add the icerestart flag to the next ice message sent. problem solved! rollback no longer su...
jspage - Archive of obsolete content
cript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",issuccess:null,emulation:true,urlencoded:true,encoding:"utf-8",evalscripts:false,evalresponse:false,nocache:false},initialize:function(a){this.xhr=new browser.request(); this.setoptions(a);this.options.issuccess=this.options.issuccess||this.issuccess;this.headers=new hash(this.options.headers);},
onstatechange:function(){if(this.xhr.readystate!=4||!this.running){return; }this.running=false;this.status=0;$try(function(){this.status=this.xhr.status;}.bind(this));this.xhr.onreadystatechange=$empty;if(this.options.issuccess.call(this,this.status)){this.response={text:this.xhr.responsetext,xml:this.xhr.responsexml}; this.success(this.response.text,this.response.xml);}else{this.response={text:null,xml:null};...
...et="+this.options.encoding:""; this.headers.set("content-type","application/x-www-form-urlencoded"+c);}if(this.options.nocache){var f="nocache="+new date().gettime();g=(g)?f+"&"+g:f; }var e=b.lastindexof("/");if(e>-1&&(e=b.indexof("#"))>-1){b=b.substr(0,e);}if(g&&a=="get"){b=b+(b.contains("?")?"&":"?")+g;g=null;}this.xhr.open(a.touppercase(),b,this.options.async); this.xhr.onreadystatechange=this.
onstatechange.bind(this);this.headers.each(function(m,l){try{this.xhr.setrequestheader(l,m);}catch(n){this.fireevent("exception",[l,m]); }},this);this.fireevent("request");this.xhr.send(g);if(!this.options.async){this.
onstatechange();}return this;},cancel:function(){if(!this.running){return this; }this.running=false;this.xhr.abort();this.xhr.onreadystatechange=$empty;this.xhr=new browser.request();this.fireeve...
nsIWebProgress
a document is currently being loaded in the context of this nsiwebprogress instance. read only. constants the following flags may be combined to form the anotifymask parameter for the addprogresslistener() method. they limit the set of events that are delivered to an nsiwebprogresslistener instance. these flags indicate the state transistions to observe, corresponding to nsiwebprogresslistener.
onstatechange(). constant value description notify_state_request 0x00000001 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_request. notify_state_document 0x00000002 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_document. notify_sta...
...00001 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_request. notify_state_document 0x00000002 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_document. notify_state_network 0x00000004 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_network. notify_state_window 0x00000008 only receive the nsiwebprogresslistener.
onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_window. notify_state_all 0x0000000f receive all nsiwebprogresslistener.
onstatechange() events. these flags indicate the other events to obse...
MIDIAccess - Web APIs
returns an instance of midiinputmap which provides access to any available midi input ports. midiaccess.outputs read only returns an instance of midioutputmap which provides access to any available midi output ports. midiaccess.sysexenabled read only a boolean attribute indicating whether system exclusive support is enabled on the current midiaccess instance. ...
...e support is enabled on the current midiaccess instance. event handlers midiaccess.
onstatechange called whenever a new midi port is added or an existing port changes state. examples navigator.requestmidiaccess() .then(function(access) { // get lists of available midi controllers const inputs = access.inputs.values(); const outputs = access.outputs.values(); access.
onstatechange = function(e) { // print information about the (dis)connected midi controller console.log(e.port.name, e.port.manufacturer, e.port.state); }; }); specifications specification status comment web midi api working draft initial definition. ...
MSManipulationEvent - Web APIs
. do not use it on production sites facing the web: it will not work for every user. there may also be large incompatibilities between implementations and the behavior may change in the future. msmanipulationevent provides contextual information when contact is made to the screen and an element is manipulated. this proprietary method is specific to internet explorer. events msmanipulati
onstatechanged: event fires when the state of an element being manipulated has changed. methods msmanipulationevent.initmsmanipulationevent(): used to create a manipulation event that can be called from javascript. properties property description currentstateread only returns the current state of a manipulation event. inertiadestinationxread only represents the pre...
...ms_manipulation_state_cancelled: number; readonly ms_manipulation_state_committed: number; readonly ms_manipulation_state_dragging: number; readonly ms_manipulation_state_inertia: number; readonly ms_manipulation_state_preselect: number; readonly ms_manipulation_state_selecting: number; readonly ms_manipulation_state_stopped: number; } see also touchevent msmanipulati
onstatechanged microsoft api extensions ...
RTCIceTransport: statechange event - Web APIs
a statechange event occurs when the rtcicetransport changes state. the state can be used to determine how far through the process of examining, verifying, and selecting a valid candidate pair is prior to successfully connecting the two peers for webrtc communications. bubbles no cancelable no interface event event handler property rtcicetransport.
onstatechange examples given an rtcpeerconnection, pc, the following code creates an event handler that calls a function named handlefailure() if the ice transport enters a failure state. let icetransport = pc.getsenders()[0].transport.icetransport; icetransport.addeventlistener("statechange", ev => { if (icetransport.state === "failed") { handlefailure(pc); } }, false); the same code, using...
... examples given an rtcpeerconnection, pc, the following code creates an event handler that calls a function named handlefailure() if the ice transport enters a failure state. let icetransport = pc.getsenders()[0].transport.icetransport; icetransport.addeventlistener("statechange", ev => { if (icetransport.state === "failed") { handlefailure(pc); } }, false); the same code, using the
onstatechange event handler property, looks like this: let icetransport = pc.getsenders()[0].transport.icetransport; icetransport.
onstatechange = ev => { if (icetransport.state === "failed") { handlefailure(pc); } }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'statechange' in that specification. ca...
RTCOfferOptions.iceRestart - Web APIs
n the rtcpeerconnection object's ice connection state changes to failed, you should try to trigger an ice restart. you should ideally do this by calling the rtcpeerconnection's restartice() method, if it's available. ...
...lable. fundamentally, this renegotiation is triggered by generating and using new values for the ice username fragment ("ufrag")}} example this example shows a handler for the iceconnecti
onstatechange event. it watches for the ice connection state to transition to "failed", which indicates that an ice restart should be tried in order to attempt to bring the connection back up. ...
RTCPeerConnection.restartIce() - Web APIs
r your signaling mechanism. restarting ice essentially resets ice so that it creates all new candidates using new credentials. existing media transmissions continue uninterrupted during this process. for details about how ice restart works, see ice restart in lifetime of a webrtc session and rfc 5245, section 9.1.1.1: ice specification. ...
...a transmissions continue uninterrupted during this process. for details about how ice restart works, see ice restart in lifetime of a webrtc session and rfc 5245, section 9.1.1.1: ice specification. example this example creates a handler for the iceconnecti
onstatechange event that handles a transition to the failed state by restarting ice in order to try again. pc.addeventlistener("iceconnecti
onstatechange", event => { if (pc.iceconnectionstate === "failed") { /* possibly reconfigure the connection in some way here */ /* then request ice restart */ pc.restartice(); } }); with this code in place, a transition to the failed state during ice negotiation will cause a negotiationneeded event to be fired, in response to which your code should renegotiate as usual. however, because you h...
WebRTC API - Web APIs
ng process and is now in the closed state. its underlying data transport is completely closed at this point. you can be notified before closing completes by watching for the closing event instead. closing the rtcdatachannel has transitioned to the closing state, indicating that it will be closed soon. you can detect the completion of the closing process by watching for the close event. connecti
onstatechange the connection's state, which can be accessed in connectionstate, has changed. datachannel a new rtcdatachannel is available following the remote peer opening a new data channel. this event's type is rtcdatachannelevent. error an rtcerrorevent indicating that an error occurred on the data channel. error an rtcerrorevent indicating that an error occurred on the rtcdtlstransport. this error ...
...eringstatechange the rtcicetransport's gathering state has changed. icecandidate an rtcpeerconnectioniceevent which is sent whenever the local device has identified a new ice candidate which needs to be added to the local peer by calling setlocaldescription(). icecandidateerror an rtcpeerconnectioniceerrorevent indicating that an error has occurred while gathering ice candidates. iceconnecti
onstatechange sent to an rtcpeerconnection when its ice connection's state—found in the iceconnectionstate property—changes. icegatheringstatechange sent to an rtcpeerconnection when its ice gathering state—found in the icegatheringstate property—changes. message a message has been received on the data channel. the event is of type messageevent. negotiationneeded informs the rtcpeerconnection th...
Event reference
ame> changes. this can occur on resize and when the page size changes (while loading for example.) mozbrowserscrollviewchange firefox os browser api-specific sent when asynchronous scrolling (i.e. apcz) starts or stops. mozbrowsersecuritychange firefox os browser api-specific sent when the ssl state changes within a browser <iframe>. mozbrowserselecti
onstatechanged firefox os browser api-specific sent when the text selected inside the browser <iframe> content changes. note that this is deprecated, and newer implementations use mozbrowsercaretstatechanged instead. mozbrowsershowmodalprompt firefox os browser api-specific sent when alert(), confirm() or prompt() are called within a browser <iframe> mozbrowsertitlechang...
... mozilla specific an element is no longer overflowed by its content (only works for elements styled with overflow != visible). uploadprogress progressevent mozilla specific upload is in progress (see progress). ussdreceived firefox os specific a new ussd message is received mscontentzoom microsoft specific msmanipulati
onstatechanged microsoft specific mspointerhover microsoft specific mozilla-specific events note: these events are never exposed to web content and can only be used in a xul chrome content context. xul events event name event type specification fired when... broadcast xul an observer noticed a change to the attributes of a ...
Intercepting Page Loads - Archive of obsolete content
on. the request object arequest holds the request being processed, and you can run arequest.cancel(ns_binding_aborted) to cancel it. awebprogress.domwindow gives you access to the window where the content was going to be loaded. sometimes you do not care about redirects, and only want to detect the final page being loaded, the one holding the actual content. in this case, your best bet is to use
onstatechange, and filter to when the state flags indicate a document has begun being loaded: if ((astateflags & components.interfaces.nsiwebprogresslistener.state_start) && (astateflags & components.interfaces.nsiwebprogresslistener.state_is_document)) note the use of the binary mask & operator. to detect if this is a frame being loaded or not, you can do this: if (awebprogress.domwindow != aw...
XUL Questions and Answers - Archive of obsolete content
define the object, something like this: listobj = new object(); listobj.wpl = components.interfaces.nsiwebprogresslistener; listobj.queryinterface = function(aiid) { if (aiid.equals(listobj.wpl) || aiid.equals(components.interfaces.nsisupportsweakreference) || aiid.equals(components.interfaces.nsisupports)) return this; throw components.results.ns_nointerface; } listobj.
onstatechange = function(aprogress, arequest, aflag, astatus) { if (aflag & listobj.wpl.state_start) { // this fires when the load event is initiated } else { if (aflag & listobj.wpl.state_stop) { if ( aflag & listobj.wpl.state_is_window ) { // this fires when all load finish } if ( aflag & listobj.wpl.state_is_network ) { // fires when all load are really over, ...
Mozilla accessibility architecture
they are fired by gecko whenever nodes in the document are created, moved or changed. common reasons for these mutations are web page scripts, and user actions in the editor. we listen t...
Listening to events on all tabs
t arequest, unsigned long astate ); parameters abrowser the browser that fired the notification. awebprogress the nsiwebprogress instance that fired the notification. arequest the nsirequest that has new security state. astate a value composed of the security state flags and the security strength flags described in the documentation for nsiwebprogresslistener.
onstatechange notification indicating the state has changed for one of the requests associated with awebprogress. void
onstatechange( nsidomxulelement abrowser, nsiwebprogress awebprogress, nsirequest arequest, unsigned long astateflags, nsresult astatus ); parameters abrowser the browser that fired the notification. awebprogress the nsiwebprogress instance that fired the noti...
Limitations of chrome scripts
o the child to be enforced. to make the shim unnecessary: define and register nsicontentpolicy in the content process. if you need to ensure that the policy is only registered once, use a process script to register the policy. nsiwebprogresslistener this api will work in the chrome process. there is a shim that gives you access to the domwindow property of the nsiwebprogress object passed into
onstatechange. however, the domwindow is passed asynchronously, so by the time the chrome process receives it, the dom might have changed (for example, because code running in the content process modified it or we navigated to a different page). we're working on fixing this issue in bug 1118880. also note that unlike other shims, this shim is always active. alternatively, you can use nsiwebprogresslistener i...
Browser API
content scrolls. mozbrowserscrollareachanged sent when the available scrolling area in the browser <iframe> changes. this can occur on resize and when the page size changes (while loading for example.) mozbrowserscrollviewchange sent when asynchronous scrolling (i.e. apcz) starts or stops. mozbrowsersecuritychange sent when the ssl state changes within a browser <iframe>. mozbrowserselecti
onstatechanged sent when the text selected inside the browser <iframe> content changes. note that this is obsolete, and newer implementations use mozbrowsercaretstatechanged instead. mozbrowsershowmodalprompt sent when alert(), confirm(), or prompt() are called within a browser <iframe>. mozbrowsertitlechange sent when the document title changes within a browser <iframe>. mozbrowserusernameandpasswordreq...
nsIWebProgressListener2
acurtotalprogress, in long long amaxtotalprogress); boolean onrefreshattempted(in nsiwebprogress awebprogress, in nsiuri arefreshuri, in long amillis, in boolean asameuri); methods onprogresschange64() notification that the progress has changed for one of the requests associated with awebprogress. progress totals are reset to zero when all requests in awebprogress complete (corresponding to
onstatechange being called with astateflags including the state_stop and state_is_window flags). this function is identical to nsiwebprogresslistener.onprogresschange(), except that this function supports 64-bit values. note: if any progress value is unknown, then its value is replaced with -1. void onprogresschange64( in nsiwebprogress awebprogress, in nsirequest arequest, in long long acurselfprogress,...
BaseAudioContext.state - Web APIs
iocontext.state; value a domstring. possible values are: suspended: the audio context has been suspended (with the audiocontext.suspend() method.) running: the audio context is running normally. closed: the audio context has been closed (with the audiocontext.close() method.) example the following snippet is taken from our audiocontext states demo (see it running live.) the audiocontext.
onstatechange hander is used to log the current state to the console every time it changes. audioctx.
onstatechange = function() { console.log(audioctx.state); } specifications specification status comment web audio apithe definition of 'state' in that specification. working draft ...
BaseAudioContext - Web APIs
stener read only returns the audiolistener object, used for 3d spatialization. baseaudiocontext.samplerate read only returns a float representing the sample rate (in samples per second) used by all nodes in this context. the sample-rate of an audiocontext cannot be changed. baseaudiocontext.state read only returns the current state of the audiocontext. event handlers baseaudiocontext.
onstatechange an event handler that runs when an event of type statechange has fired. this occurs when the audiocontext's state changes, due to the calling of one of the state change methods (audiocontext.suspend, audiocontext.resume, or audiocontext.close). methods also implements methods from the interface eventtarget. baseaudiocontext.createanalyser() creates an analysernode, which can be used to ex...
MIDIConnectionEvent - Web APIs
this occurs any time a new port becomes available, or when a previously available port becomes unavailable. for example, this event is fired whenever a midi device is either plugged in to or unplugged from a computer. constructor midiconnectionevent.midiconnectionevent creates a new midiconnectionevent object. ...
Microsoft API extensions - Web APIs
microsoft browsers (internet explorer, and in a few cases, microsoft edge) support a number of special microsoft extensions to the otherwise standard dom apis. these extensions are prefixed with ms or ms. note: these apis will only work in microsoft applications, and are not on a standards track. ...
RTCIceTransport - Web APIs
, which reuses the existing rtcicetransport objects. the current candidate pair can be obtained using getselectedcandidatepair(). also available using the onselectedcandidatepairchange event handler property. statechange sent to the rtcicetransport instance when the value of the state property has changed, indicating that the ice gathering process has changed state. also available through the
onstatechange event handler property. examples tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicetransport' in that specification. candidate recommendation initial definition. ...
RTCPeerConnection.iceConnectionState - Web APIs
syntax var state = rtcpeerconnection.iceconnectionstate; value the current state of the ice agent and its connection. the value is one of the strings in the rtciceconnectionstate enum. ...
RTCSctpTransport - Web APIs
ng the maximum size, in bytes, of a message which can be sent using the rtcdatachannel.send() method. rtcsctptransport.stateread only a domstring enumerated value indicating the state of the sctp transport. rtcsctptransport.transportread only an rtcdtlstransport object representing the dtls transport used for the transmission and receipt of data packets. event handlers rtcsctptransport.
onstatechange fired when the rtcsctptransport.state changes. methods this interface has no methods, but inherits methods from: eventtarget example tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcsctptransport' in that specification. candidate recommendation initial definition. ...
ServiceWorker - Web APIs
read only returns the serviceworker serialized script url defined as part of serviceworkerregistration. the url must be on the same origin as the document that registers the serviceworker. serviceworker.state read only returns the state of the service worker. it returns one of the following values: installing, installed, activating, activated, or redundant. event handlers serviceworker.
onstatechange read only an eventlistener property called whenever an event of type statechange is fired; it is basically fired anytime the serviceworker.state changes. methods the serviceworker interface inherits methods from its parent, worker, with the exception of worker.terminate — this should not be accessible from service workers. examples this code snippet is from the service worker registratio...
ServiceWorkerRegistration - Web APIs
.addeventlistener('updatefound', function() { // if updatefound is fired, it means that there's // a new service worker being installed. var installingworker = registration.installing; console.log('a new service worker is being installed:', installingworker); // you can listen for changes to the installing service worker's // state via installingworker.
onstatechange }); }) .catch(function(error) { console.log('service worker registration failed:', error); }); } else { console.log('service workers are not supported.'); } specifications specification status comment service workersthe definition of 'serviceworkerregistration' in that specification. working draft initial definition. push apithe definition ...