Search completed in 0.91 seconds.
Signaling and video calling - Web APIs
a connection is established through a discovery and negotiation process called
signaling.
...this process is called
signaling and involves both devices connecting to a third, mutually agreed-upon server.
... the
signaling server establishing a webrtc connection between two devices requires the use of a
signaling server to resolve how to connect them over the internet.
...And 52 more matches
AbortSignal - Web APIs
the abort
signal interface represents a
signal object that allows you to communicate with a dom request (such as a fetch) and abort it if required via an abortcontroller object.
... properties the abort
signal interface also inherits properties from its parent interface, eventtarget.
... abort
signal.aborted read only a boolean that indicates whether the request(s) the
signal is communicating with is/are aborted (true) or not (false).
...And 8 more matches
RTCPeerConnection.signalingState - Web APIs
the read-only
signalingstate property on the rtcpeerconnection interface returns one of the string values specified by the rtc
signalingstate enum; these values describe the state of the
signaling process on the local end of the connection while connecting or reconnecting to another peer.
... see
signaling in lifetime of a webrtc session for more details about the
signaling process.
... because the
signaling process is a state machine, being able to verify that your code is in the expected state when messages arrive can help avoid unexpected and avoidable failures.
...And 7 more matches
AbortController.signal - Web APIs
the
signal read-only property of the abortcontroller interface returns an abort
signal object instance, which can be used to communicate with/abort a dom request as desired.
... syntax var
signal = abortcontroller.
signal; value an abort
signal object instance.
... we first create a controller using the abortcontroller() constructor, then grab a reference to its associated abort
signal object using the abortcontroller.
signal property.
...And 5 more matches
AbortSignal.onabort - Web APIs
the onabort read-only property of the fetch
signal interface is an event handler invoked when an abort event fires, i.e.
... when the fetch request(s) the
signal is communicating with is/are aborted.
... syntax abort
signal.onabort = function() { ...
...And 3 more matches
RTCPeerConnection.onsignalingstatechange - Web APIs
the on
signalingstatechange event handler property of the rtcpeerconnection interface specifies a function to be called when the
signalingstatechange event occurs on an rtcpeerconnection interface.
... the function receives as input the event object of type event; this event is sent when the peer connection's
signalingstate changes, which may happen either because of a call to setlocaldescription() or to setremotedescription().
... syntax rtcpeerconnection.on
signalingstatechange = errorhandler; value set this to a function which you provide that receives an event object as input; this contains the
signalingstatechange event.
...And 3 more matches
AbortSignal.aborted - Web APIs
the aborted read-only property returns a boolean that indicates whether the dom request(s) the
signal is communicating with is/are aborted (true) or not (false).
... syntax var isaborted = abort
signal.aborted; value a boolean examples in the following snippet, we create a new abortcontroller object, and get its abort
signal (available in the
signal property).
... later on we check whether or not it the
signal has been aborted using the aborted property, and send an appropriate log to the console.
...And 2 more matches
DTMF (Dual-Tone Multi-Frequency signaling) - MDN Web Docs Glossary: Definitions of Web-related terms
dual-tone multi-frequency (dtmf)
signaling is a system by which audible tones are used to represent buttons being pressed on a keypad.
... frequently referred to in the united states as "touch tone" (after the touch-tone trademark used when the transition from pulse dialing to dtmf began), dtmf makes it possible to
signal the digits 0-9 as well as the letters "a" through "d" and the symbols "#" and "*".
... few telephone keypads include the letters, which are typically used for control
signaling by the telephone network.
... learn moreedit general knowledge dual-tone multi-frequency
signaling on wikipedia pulse dialing on wikipedia ...
AbortSignal: abort event - Web APIs
bubbles no cancelable no interface event event handler onabort examples in the following snippets, we create a new abortcontroller object, and get its abort
signal (available in the
signal property).
... later on we check whether or not it the
signal has been aborted using the onabort property, and send an appropriate log to the console.
... you can use the abort event in an addeventlistener method: var controller = new abortcontroller(); var
signal = controller.
signal;
signal.addeventlistener('abort', function() { console.log('request aborted'); }; or use the onabort event handler property: var controller = new abortcontroller(); var
signal = controller.
signal;
signal.onabort = function() { console.log('request aborted'); }; specifications specification status domthe definition of 'abort' in that specification.
RTCPeerConnection: signalingstatechange event - Web APIs
an
signalingstatechange event is sent to an rtcpeerconnection to notify it that its
signaling state, as indicated by the
signalingstate property, has changed.
... bubbles no cancelable no interface event event handler property rtcpeerconnection.on
signalingstatechange examples given an rtcpeerconnection, pc, and an updatestatus() function that presents status information to the user, this code sets up an event handler to let the user know when the ice negotiation process finishes up.
... pc.addeventlistener("
signalingstatechange", ev => { switch(pc.
signalingstate) { case "stable": updatestatus("ice negotiation complete"); break; } }, false); using on
signalingstatechange, it looks like this: pc.on
signalingstatechange = ev => { switch(pc.
signalingstate) { case "stable": updatestatus("ice negotiation complete"); break; } }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of '
signalingstatechange' in that specification.
Index - Web APIs
9 abortcontroller.
signal api, abortcontroller, experimental, fetch, property, reference,
signal the
signal read-only property of the abortcontroller interface returns an abort
signal object instance, which can be used to communicate with/abort a dom request as desired.
... 10 abort
signal api, abort
signal, dom, experimental, interface, reference the abort
signal interface represents a
signal object that allows you to communicate with a dom request (such as a fetch) and abort it if required via an abortcontroller object.
... 11 abort
signal.aborted api, abort
signal, experimental, property, reference, aborted the aborted read-only property returns a boolean that indicates whether the dom request(s) the
signal is communicating with is/are aborted (true) or not (false).
...And 32 more matches
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
because webrtc doesn't mandate a specific transport mechanism for
signaling during the negotiation of a new peer connection, it's highly flexible.
... however, despite that flexibility in transport and communication of
signaling messages, there's still a recommended design pattern you should follow when possible, known as perfect negotiation.
...it could be as simple as assigning the polite role to the first peer to connect to the
signaling server, or you could do something more elaborate like having the peers exchange random numbers and assigning the polite role to the winner.
...And 30 more matches
Digital audio concepts - Web media technologies
this analog
signal is then converted into digital form by a circuit that captures the incoming wave's amplitude at regular intervals, converting that data into a number in a form that is understood by the audio recording system.
...at regular intervals, the a/d converter circuitry reads the voltage of the
signal as a value between (in this case) -1.0 and +1.0.
... audio data format and structure at the most basic level, audio is represented by a stream of samples, each specifying the amplitude of the audio waveform as measured for a given slice of the overall waveform of the audio
signal.
...And 17 more matches
Lifetime of a WebRTC session - Web APIs
see
signaling and video calling for an actual example with a step-by-step explanation of what the code does.
... this is where
signaling comes in.
...
signaling
signaling is the process of sending control information between two devices to determine the communication protocols, channels, media codecs and formats, and method of data transfer, as well as any required routing information.
...And 14 more matches
RTCPeerConnection - Web APIs
if sctp hasn't been negotiated, this value is null.
signalingstate read only the read-only
signalingstate property on the rtcpeerconnection interface returns one of the string values specified by the rtc
signalingstate enum; these values describe the state of the
signaling process on the local end of the connection while connecting or reconnecting to another peer.
... see
signaling in lifetime of a webrtc session for more details about the
signaling process.event handlersalso inherits event handlers from: eventtargetonaddstream the rtcpeerconnection.onaddstream event handler is a property containing the code to execute when the addstream event, of type mediastreamevent, is received by this rtcpeerconnection.
...this happens whenever the local ice agent needs to deliver a message to the other peer through the
signaling server.oniceconnectionstatechange the rtcpeerconnection.oniceconnectionstatechange property is an event handler which specifies a function to be called when the iceconnectionstatechange event is fired on an rtcpeerconnection instance.
...And 10 more matches
WebRTC connectivity - Web APIs
signaling unfortunately, webrtc can’t create connections without some sort of server in the middle.
... we call this the
signal channel or
signaling service.
...they will then send this offer to peer b using the chosen
signal channel.
...And 7 more matches
RTCPeerConnection.addIceCandidate() - Web APIs
when a web site or app using rtcpeerconnection receives a new ice candidate from the remote peer over its
signaling channel, it delivers the newly-received candidate to the browser's ice agent by calling rtcpeerconnection.addicecandidate().
...the same is the case if the value of the specified object's candidate is either missing or an empty string (""), it
signals that all remote candidates have been delivered.
...this is covered in more detail in the articles webrtc connectivity and
signaling and video calling.
...And 5 more matches
RTCPeerConnection.setRemoteDescription() - Web APIs
this is typically called after receiving an offer or answer from another peer over the
signaling server.
...for example, if the type is rollback and the
signaling state is one of stable, have-local-pranswer, or have-remote-pranswer, this exception is thrown, because you can't roll back a connection that's either fully established or is in the final stage of becoming connected.
... usage notes when you call setremotedescription(), the ice agent checks to make sure the rtcpeerconnection is in either the stable or have-remote-offer
signalingstate.
...And 5 more matches
Basic concepts behind Web Audio API - Web APIs
channel notation the number of audio channels available on a
signal is frequently presented in a numeric format, such as 2.0 or 5.1.
...the first number is the number of full frequency range audio channels that the
signal includes.
... audio data: what's in a sample when an audio
signal is processed, sampling means the conversion of a continuous
signal to a discrete
signal; or put another way, a continuous sound wave, such as a band playing live, is converted to a sequence of samples (a discrete-time
signal) that allow a computer to handle the audio in distinct blocks.
...And 5 more matches
AbortController - Web APIs
communicating with a dom request is done using an abort
signal object.
... properties abortcontroller.
signal read only returns a abort
signal object instance, which can be used to communicate with/abort a dom request.
... we first create a controller using the abortcontroller() constructor, then grab a reference to its associated abort
signal object using the abortcontroller.
signal property.
...And 4 more matches
RTCPeerConnection.createOffer() - Web APIs
the sdp offer includes information about any mediastreamtracks already attached to the webrtc session, codec, and options supported by the browser, and any candidates already gathered by the ice agent, for the purpose of being sent over the
signaling channel to a potential peer to request a connection or to update the configuration of an existing connection.
...that received offer should be delivered through the
signaling server to a remote peer.
... example here we see a handler for the negotiationneeded event which creates the offer and sends it to the remote system over a
signaling channel.
...And 4 more matches
RTCPeerConnection.setLocalDescription() - Web APIs
if the
signaling state is one of stable, have-local-offer, or have-remote-pranswer, the webrtc runtime automatically creates a new offer and sets that as the new local description.
...at that time, the offer can be sent to a remote peer via the
signaling server.
... deprecated exceptions when using the deprecated callback-based version of setlocaldescription(), the following exceptions may occur: invalidstateerror the connection's
signalingstate is "closed", indicating that the connection is not currently open, so negotiation cannot take place.
...And 4 more matches
Using DTMF with WebRTC - Web APIs
when you wish to transmit dtmf
signals, you first need to decide which track to send them on, since dtmf is sent as a series of out-of-band payloads on the rtcrtpsender responsible for transmitting that track's data to the other peer.
...from there, you can simply call rtcdtmfsender.insertdtmf() to enqueue dtmf
signals to be sent on the track to the other peer.
... if you'd like to know more about how this works, read rfc 3550: rtp: a transport protocol for real-time applications and rfc 4733: rtp payload for dtmf digits, telephony tones, and telephony
signals.
...And 4 more matches
RTCPeerConnection.createAnswer() - Web APIs
example here is a segment of code taken from the code that goes with the article
signaling and video calling.
... this code comes from the handler for the message sent to carry an offer to another peer across the
signaling channel.
... keep in mind that this is part of the
signaling process, the transport layer for which is an implementation detail that's entirely up to you.
...And 3 more matches
RTCPeerConnection: icecandidate event - Web APIs
the event handler should transmit the candidate to the remote peer over the
signaling channel so the remote peer can add it to its set of remote candidates.
...this candidate needs to be delivered to the remote peer over the
signaling channel your code manages.
... rtcpeerconnection.onicecandidate = (event) => { if (event.candidate) { sendcandidatetoremotepeer(event.candidate) } else { /* there are no more candidates coming during this negotiation */ } } the remote peer, upon receiving the candidate, will add the candidate to its candidate pool by calling addicecandidate(), passing in the candidate string you have passed along using the
signaling server.
...And 3 more matches
RTCPeerConnection: negotiationneeded event - Web APIs
a negotiationneeded event is sent to the rtcpeerconnection when negotiation of the connection through the
signaling channel is required.
...this starts the process of ice negotiation by instructing your code to begin exchanging ice candidates through the
signaling server.
... see
signaling transaction flow in
signaling and video calling for a description of the
signaling process that begins with a negotiationneeded event.
...And 3 more matches
Using WebRTC data channels - Web APIs
write your own code to negotiate the data transport and write your own code to
signal to the other peer that it needs to connect to the new channel.
...this
signals to the peer connection to not attempt to negotiate the channel on your behalf.
...this process should
signal to the remote peer that it should create its own rtcdatachannel with the negotiated property also set to true, using the same id.
...And 3 more matches
WebRTC API - Web APIs
webrtc concepts and usage webrtc serves multiple purposes; together with the media capture and streams api, they provide powerful multimedia capabilities to the web, including support for audio and video conferencing, file exchange, screen sharing, identity management, and interfacing with legacy telephone systems including support for sending dtmf (touch-tone dialing)
signals.
...
signalingstatechange sent to the peer connection when its
signalingstate has changed.
... interfaces rtcdtmfsender manages the encoding and transmission of dual-tone multi-frequency (dtmf)
signaling for an rtcpeerconnection.
...And 3 more matches
WritableStream.WritableStream() - Web APIs
if this process is to be done asynchronously, it can return a promise to
signal success or failure.
...it can return a promise to
signal success or failure of the write operation.
... close(controller) optional this method, also defined by the developer, will be called if the app
signals that it has finished writing chunks to the stream.
...And 3 more matches
Codecs used by WebRTC - Web media technologies
unless the sdp specifically
signals otherwise, the web browser receiving a webrtc video stream must be able to handle video at at least 20 fps at a minimum resolution of 320 pixels wide by 240 pixels tall.
... unless
signaled otherwise, vp8 will use square pixels (that is, pixels with an aspect ratio of 1:1).
...when avc is used with webrtc, this information must be
signaled in-band; the sprop-parameter-sets parameter must therefore not be included in the sdp.
...And 3 more matches
Allocations - Firefox Developer Tools
so in the example above: 8904 samples were taken in
signallater(), which is 28.57% of the total number of samples taken those samples allocated 1102888 bytes, which is 30.01% of the total memory allocated in all samples next to each function name is a disclosure arrow.
... click this to see the places this function was called from: here you can see that
signallater() was called from two places: removeinner() and setselectioninner().
...but if you start walking back up the call stack, you'll see the difference: here, 8904 samples were taken in
signallater().
...And 2 more matches
AbortController.AbortController() - Web APIs
we first create a controller using the abortcontroller() constructor, then grab a reference to its associated abort
signal object using the abortcontroller.
signal property.
... when the fetch request is initiated, we pass in the abort
signal as an option inside the request's options object (see {
signal}, below).
... this associates the
signal and controller with the fetch request and allows us to abort it by calling abortcontroller.abort(), as seen below in the second event listener.
...And 2 more matches
AbortController.abort() - Web APIs
we first create a controller using the abortcontroller() constructor, then grab a reference to its associated abort
signal object using the abortcontroller.
signal property.
... when the fetch request is initiated, we pass in the abort
signal as an option inside the request's options object (see {
signal}, below).
... this associates the
signal and controller with the fetch request and allows us to abort it by calling abortcontroller.abort(), as seen below in the second event listener.
...And 2 more matches
RTCPeerConnection.onicecandidate - Web APIs
this happens whenever the local ice agent needs to deliver a message to the other peer through the
signaling server.
... this lets the ice agent perform negotiation with the remote peer without the browser itself needing to know any specifics about the technology being used for
signaling; simply implement this method to use whatever messaging technology you choose to send the ice candidate to the remote peer.
...the function should deliver the ice candidate, whose sdp can be found in the event's candidate property, to the remote peer through the
signaling server.
...And 2 more matches
WebGL2RenderingContext.clientWaitSync() - Web APIs
the webgl2renderingcontext.clientwaitsync() method of the webgl 2 api blocks and waits for a webglsync object to become
signaled or a given timeout to be passed.
... timeout a glint64 specifying a timeout (in nanoseconds) for which to wait for the sync object to become
signaled.
... gl.already_
signaled: indicates that the sync object was
signaled when this method was called.
...And 2 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
104 dtmf (dual-tone multi-frequency
signaling) dtmf, glossary, webrtc dual-tone multi-frequency (dtmf)
signaling is a system by which audible tones are used to represent buttons being pressed on a keypad.
... frequently referred to in the united states as "touch tone" (after the touch-tone trademark used when the transition from pulse dialing to dtmf began), dtmf makes it possible to
signal the digits 0-9 as well as the letters "a" through "d" and the symbols "#" and "*".
... few telephone keypads include the letters, which are typically used for control
signaling by the telephone network.
... 274 modem infrastructure, navigation a modem ("modulator-demodulator") is a device that converts digital information to analog
signals and vice-versa, for sending data through networks.
nsIXFormsModelElement
rebuild()
signals the xforms processor to rebuild any internal data structures used to track computational dependencies within the given xforms model.
...recalculate()
signals the xforms processor to perform a full recalculation of the given xforms model.
...refresh()
signals the xforms processor to perform a full refresh of form controls bound to instance nodes for the given xforms model.
...revalidate()
signals the xforms processor to perform a full revalidation of the given xforms model.
RTCIceCandidate.usernameFragment - Web APIs
to do so, you can compare the value of usernamefragment to the current usernamefragment being used for the connection after receiving the candidate from the
signaling server and before caling addicecandidate() to add it to the set of possible candidates.
... when the web app receives a message from the
signaling server that includes a candidate to be added to the rtcpeerconnection, you can (and generally should) simply call addicecandidate().
...the function below, ssnewcandidate(), is called when a message,
signalmsg, arrives from the
signaling server that contains an ice candidate to be added to the rtcpeerconnection.
... to avoid including candidates obsoleted by an ice restart, we can use code like this: const ssnewcandidate =
signalmsg => { let candidate = new rtcicecandidate(
signalmsg.candidate); let receivers = pc.getreceivers(); receivers.foreach(receiver => { let parameters = receiver.transport.getparameters(); if (parameters.usernamefragment === candidate.usernamefragment) { return; } }); pc.addicecandidate(candidate) .catch(reporterror); } this walks through the list of the rtcrtpreceiver objects being used to receive ice data, and looks to see if the usernamefragment indicated in the candidate matches any of them.
RTCPeerConnection.restartIce() - Web APIs
after restartice() returns, the offer returned by the next call to createoffer() is automatically configured to trigger ice restart on both the local peer (once the local peer has been set) and on the remote peer, once the offer is sent across your
signaling mechanism and the remote peer has set its description as well.
... restartice() causes the negotiationneeded event to be fired on the rtcpeerconnection to inform the application that it should perform negotiation using its
signaling channel.
...the next time the connection's
signalingstate changes to stable, the connection will fire the negotiationneeded event.
... usage notes after calling restartice(), the next offer created using createoffer() will initiate ice restart once sent to the remote peer over your
signaling mechanism.
Request.cache - Web APIs
// abortcontroller and
signal to allow better memory cleaning.
... // in reality; this would be a function that takes a path and a // reference to the controller since it would need to change the value let controller = new abortcontroller(); fetch("some.json", {cache: "only-if-cached", mode: "same-origin",
signal: controller.
signal}) .catch(e => e instanceof typeerror && e.message === "failed to fetch" ?
... ({status: 504}) : // workaround for chrome; which simply fails with a typeerror promise.reject(e)) .then(res => { if (res.status === 504) { controller.abort() controller = new abortcontroller(); return fetch("some.json", {cache: "force-cache", mode: "same-origin",
signal: controller.
signal}) } const date = res.headers.get("date"), dt = date ?
... new date(date).gettime() : 0 if (dt < (date.now() - 86400000)) { // if older than 24 hours controller.abort() controller = new abortcontroller(); return fetch("some.json", {cache: "reload", mode: "same-origin",
signal: controller.
signal}) } // other possible conditions if (dt < (date.now() - 300000)) // if it's older than 5 minutes fetch("some.json", {cache: "no-cache", mode: "same-origin"}) // no cancellation or return value.
Web Audio API - Web APIs
dynamicscompressornode the dynamicscompressornode interface provides a compression effect, which lowers the volume of the loudest parts of the
signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.
...it is an audionode that use a curve to apply a waveshaping distortion to the
signal.
... beside obvious distortion effects, it is often used to add a warm feeling to the
signal.
... pannernode the pannernode interface represents the position and behavior of an audio source
signal in 3d space, allowing you to create complex panning effects.
Using gdb on wimpy computers - Archive of obsolete content
(gdb) r starting program: /home/blizzard/src/mozilla/mozilla/dist/bin/./mozilla-bin breakpoint 1, main (argc=1, argv=0xbffff894) at nsapprunner.cpp:811 811 installunix
signalhandlers(argv[0]); (gdb) set auto-solib-add 0 (gdb) c continuing.
...here's what it looks like in the 4.18 version of the debugger: ^c program received
signal sigint, interrupt.
...(gdb) here's what it looks like in a version 5.x of the debugger ( yet unreleased ): ^c program received
signal sigint, interrupt.
Secure Development Guidelines
tains a race condition the file may change between the call top stat() and open() this opens the possibility of writing arbitrary content to any file race conditions occur when two separate execution flows share a resource and its access is not synchronized properly race condition types include file (previously covered) thread (two threads share a resource but don’t lock it)
signal race conditions example char *ptr; void sighandler() { if (ptr) free(ptr); _exit(0); } int main() {
signal(sigint, sighandler); ptr = malloc(1000); if (!ptr) exit(0); ...
... free(ptr); ptr = null; } race conditions previous example is vulnerable to a
signal race condition what would happen if the application received a
signal in the middle of free(ptr)?
... it would lead to a double free race conditions: prevention be very careful when working with threads, the file system, or
signals track down shared resources and lock them accordingly for
signal handlers never use non-atomic operations longjmp() is a sign of badness even exit() could cause problems, but _exit() is okay deadlocks and locking issues locks are used when dealing with threads acquiring more than one lock to perform an action if a second thread acquires the same locks but in a different order, it causes denial of service since both threads will be waiting forever deadlocks and locking issues example func_a() { lock(locka); lock(lockb); ...
BaseAudioContext.createDynamicsCompressor() - Web APIs
the createdynamicscompressor() method of the baseaudiocontext interface is used to create a dynamicscompressornode, which can be used to apply compression to an audio
signal.
... compression lowers the volume of the loudest parts of the
signal and raises the volume of the softest parts.
...it is especially important in games and musical applications where large numbers of individual sounds are played simultaneously, where you want to control the overall
signal level and help avoid clipping (distorting) of the audio output.
BaseAudioContext - Web APIs
baseaudiocontext.createconstantsource() creates a constantsourcenode object, which is an audio source that continuously outputs a monaural (one-channel) sound
signal whose samples all have the same value.
... baseaudiocontext.createdelay() creates a delaynode, which is used to delay the incoming audio
signal by a certain amount.
... baseaudiocontext.createdynamicscompressor() creates a dynamicscompressornode, which can be used to apply acoustic compression to an audio
signal.
Document.cookie - Web APIs
some user agent implementations support the following cookie prefixes: __secure-
signals to the browser that it should only include the cookie in requests transmitted over a secure channel.
... __host-
signals to the browser that in addition to the restriction to only use the cookie from a secure origin, the scope of the cookie is limited to a path attribute passed down by the server.
...it also
signals that the domain attribute must not be present, which prevents the cookie from being sent to other domains.
LockManager.request() - Web APIs
signal optional: an abort
signal (the
signal property of an abortcontroller); if specified and the abortcontroller is aborted, the lock request is dropped if it was not already granted.
...});
signal example to only wait for a lock for a short period of time, use the
signal option.
...settimeout(() => controller.abort(), 200); try { await navigator.locks.request('my_resource', {
signal: controller.
signal}, async lock => { // the lock was acquired!
MediaSource.endOfStream() - Web APIs
the endofstream() method of the mediasource interface
signals the end of the stream.
...the possible values are: network: terminates playback and
signals that a network error has occured.
...when you make an xmlhttprequest call for a media chunk, and onabort or onerror triggers, you might want to call endofstream('network'), display a descriptive message in the ui, and maybe retry the network request immediately or wait until the network is back up (via some kind of polling.) decode: terminates playback and
signals that a decoding error has occured.
RTCPeerConnection.onnegotiationneeded - Web APIs
example this example, derived from the example in
signaling and video calling, establishes a handler for negotiationneeded events to handle creating an offer, configuring the local end of the connection, and sending the offer to the remote peer.
... pc.onnegotiationneeded = function() { pc.createoffer().then(function(offer) { return pc.setlocaldescription(offer); }) .then(function() { // send the offer to the remote peer through the
signaling server }); }) .catch(reporterror); } first, it creates the offer by calling createoffer().
...once that's succeeded in turn, the offer can be sent to the
signaling server for delivery to the remote peer.
ReadableStream.ReadableStream() - Web APIs
if this process is to be done asynchronously, it can return a promise to
signal success or failure.
... cancel(reason) optional this method, also defined by the developer, will be called if the app
signals that the stream is to be cancelled (e.g.
...if this process is asynchronous, it can return a promise to
signal success or failure.
WaveShaperNode - Web APIs
it is an audionode that uses a curve to apply a wave shaping distortion to the
signal.
... beside obvious distortion effects, it is often used to add a warm feeling to the
signal.
...oversampling is a technique for creating more samples (up-sampling) before applying the distortion effect to the audio
signal.
A simple RTCDataChannel sample - Web APIs
in a real application, this would require a
signaling server to exchange the description object.
...again, this would normally be exchanged through a
signalling server.
...a side channel, commonly called a “
signalling server,” is usually used to exchange the description (which is in application/sdp form) between the two peers.
Web Accessibility: Understanding Colors and Luminance - Accessibility
this fact is also used by televsion
signals to allocate less bandwidth to the yellow-blue part of their
signal, thus saving bandwidth.
...the electrical
signals that go from eye to brain have much to resolve between them as the information is processed in our brains.
... from iec 61966-2-2:2003(en), "video systems approximate the lightness response of vision by computing a luma component y′ as a weighted sum of nonlinear r′g′b′ primary components: each rgb
signal is, comparable to the 1/3 power function with an offset defined by l*.
Expect-CT - HTTP
when present with the enforce directive, the configuration is referred to as an "enforce-and-report" configuration,
signalling to the user agent both that compliance to the certificate transparency policy should be enforced and that violations should be reported.
... enforce optional
signals to the user agent that compliance with the certificate transparency policy should be enforced (rather than only reporting compliance) and that the user agent should refuse future connections that violate its certificate transparency policy.
... when both the enforce directive and the report-uri directive are present, the configuration is referred to as an "enforce-and-report" configuration,
signalling to the user agent both that compliance to the certificate transparency policy should be enforced and that violations should be reported.
The "codecs" parameter in common media types - Web media technologies
mc the two-digit matrix_coefficients constant selects the matrix coefficients used to convert the red, blue, and green channels into luma and chroma
signals.
...engineering guideline making color
signal decoding recommendations for digital movies.
...this value indicates which set of coefficients to use when mapping from the native red, blue, and green primaries to the luma and chroma
signals.
Monitoring WiFi access points - Archive of obsolete content
code with universalxpconnect privileges can monitor the list of available wifi access points to obtain information about them including their ssid, mac address, and
signal strength.
...ple</title> <script> var count = 0; function test() { } test.prototype = { onchange: function (accesspoints) { netscape.security.privilegemanager.enableprivilege('universalxpconnect'); var d = document.getelementbyid("d"); d.innerhtml = ""; for (var i=0; i<accesspoints.length; i++) { var a = accesspoints[i]; d.innerhtml += "<p>" + a.mac + " " + a.ssid + " " + a.
signal + "</p>"; } var c = document.getelementbyid("c"); c.innerhtml = "<p>" + count++ + "</p>"; }, onerror: function (value) { alert("error: " +value); }, queryinterface: function(iid) { netscape.security.privilegemanager.enableprivilege('universalxpconnect'); if (iid.equals(components.interfaces.nsiwifilistener) || iid.equals(components.interfac...
Displaying a graphic with audio samples - Archive of obsolete content
nction loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; fft = new fft(framebufferlength / channels, rate); } function audioavailable(event) { var fb = event.framebuffer, t = event.time, /* unused, but it's there */
signal = new float32array(fb.length / channels), magnitude; for (var i = 0, fbl = framebufferlength / 2; i < fbl; i++ ) { // assuming interlaced stereo channels, // need to split and merge into a stero-mix mono
signal signal[i] = (fb[2*i] + fb[2*i+1]) / 2; } // clear the canvas before drawing spectrum ctx.fillstyle = "rgb(0,0,0)...
..."; ctx.fillrect (0,0, canvas.width, canvas.height); ctx.fillstyle = "rgb(255,255,255)"; for (var i = 0; i <
signal.length; i++ ) { // multiply spectrum by a zoom value magnitude =
signal[i] * 1000; // draw rectangle bars for each frequency bin ctx.fillrect(i * 4, canvas.height, 3, -magnitude); } ctx.drawimage(document.getelementbyid('mozlogo'),0,0, canvas.width, canvas.height); } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('mozaudioavailable', audioavailable, false); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> ...
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
scriptable instance class #include "nsitestplugin.h" #include "nsiclassinfo.h" // we must implement nsiclassinfo because it
signals the // mozilla security manager to allow calls from javascript.
... // helper class to implement all necessary nsiclassinfo method stubs // and to set flags used by the security system class nsclassinfomixin : public nsiclassinfo { // these flags are used by the dom and security systems to
signal that // javascript callers are allowed to call this object's scritable methods.
Modem - MDN Web Docs Glossary: Definitions of Web-related terms
a modem ("modulator-demodulator") is a device that converts digital information to analog
signals and vice-versa, for sending data through networks.
... different kinds are used for different networks: dsl modems for telephone wires, wifi modems for short-range wireless radio
signals, 3g modems for cellular data towers, and so on.
Introduction to events - Learn web development
a series of fortunate events as mentioned above, events are actions or occurrences that happen in the system you are programming — the system produces (or "fires") a
signal of some kind when an event occurs, and provides a mechanism by which an action can be automatically taken (that is, some code running) when the event occurs.
... for example, in an airport, when the runway is clear for take off, a
signal is communicated to the pilot.
Gecko Profiler FAQ
(itimer_real (due to posix) requires the
signal occur on the calling thread, not a random thread.
... should i profile known to be slow sites on slower hardware to get a better
signal?
Optimizing Applications For NSPR
nspr uses timer
signals to implement thread preemption for local threads on some platforms.
... linux the pthreads version of linux (which is not the default) uses the same
signals that nspr uses to suspend threads in preparation for garbage collection.
NSS 3.16.2.3 release notes
new functionality tls_fallback_scsv is a
signaling cipher suite value that indicates a handshake is the result of tls version fallback.
... in sslproto.h tls_fallback_scsv - a a
signaling cipher suite value that indicates a handshake is the result of tls version fallback.
NSS 3.17.1 release notes
new functionality tls_fallback_scsv is a
signaling cipher suite value that indicates a handshake is the result of tls version fallback.
... in sslproto.h tls_fallback_scsv - a a
signaling cipher suite value that indicates a handshake is the result of tls version fallback.
Enc Dec MAC Output Public Key as CSR
uest with subject */ static secstatus certreq(seckeyprivatekey *privk, seckeypublickey *pubk, keytype keytype, secoidtag hashalgtag, certname *subject, prbool ascii, const char *certreqfilename) { certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr = null; secitem *encoding = null; secoidtag
signalgtag; secitem result; secstatus rv = secsuccess; print32 numbytes; void *exthandle; prarenapool *arena = null; prfiledesc *outfile = null; /* open the certificate request file to write */ outfile = pr_open(certreqfilename, pr_create_file | pr...
...e); cert_finishcertificaterequestattributes(cr); /* der encode the request */ encoding = sec_asn1encodeitem(arena, null, cr, sec_asn1_get(cert_certificaterequesttemplate)); if (encoding == null) { pr_fprintf(pr_stderr, "der encoding of request failed\n"); rv = secfailure; goto cleanup; } /* sign the request */
signalgtag = sec_getsignaturealgorithmoidtag(keytype, hashalgtag); if (
signalgtag == sec_oid_unknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk,
signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data failed...
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
rtreq); } if (subjectcert) { cert_destroycertificate(subjectcert); } return rv; } /* * generate the certificate request with subject */ static secstatus certreq(seckeyprivatekey *privk, seckeypublickey *pubk, keytype keytype, secoidtag hashalgtag, certname *subject, prbool ascii, const char *certreqfilename) { secoidtag
signalgtag; secitem result; print32 numbytes; secstatus rv = secsuccess; prarenapool *arena = null; void *exthandle = null; prfiledesc *outfile = null; certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr ...
...inishcertificaterequestattributes(cr); /* der encode the request */ encoding = sec_asn1encodeitem(arena, null, cr, sec_asn1_get(cert_certificaterequesttemplate)); if (encoding == null) { pr_fprintf(pr_stderr, "der encoding of request failed\n"); rv = secfailure; goto cleanup; } /* sign the request */
signalgtag = sec_getsignaturealgorithmoidtag(keytype, hashalgtag); if (
signalgtag == sec_oid_unknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk,
signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data f...
sample2
ivatekey(*selfsignprivkey); } if (certreq) { cert_destroycertificaterequest(certreq); } if (subjectcert) { cert_destroycertificate(subjectcert); } return rv; } /* * generate the certificate request with subject */ static secstatus certreq(seckeyprivatekey *privk, seckeypublickey *pubk, keytype keytype, secoidtag hashalgtag, certname *subject, prbool ascii, const char *certreqfilename) { secoidtag
signalgtag; secitem result; print32 numbytes; secstatus rv = secsuccess; prarenapool *arena = null; void *exthandle = null; prfiledesc *outfile = null; certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr = null; secitem *encoding = null; /* if the certificate request file already exists, delete it */ if (pr_access(certreqfilename, pr_access_exists) == pr_success) { pr_delete(certreqfilenam...
...arena (arena, pr_false); rv = secfailure; goto cleanup; } cert_finishextensions(exthandle); cert_finishcertificaterequestattributes(cr); /* der encode the request */ encoding = sec_asn1encodeitem(arena, null, cr, sec_asn1_get(cert_certificaterequesttemplate)); if (encoding == null) { pr_fprintf(pr_stderr, "der encoding of request failed\n"); rv = secfailure; goto cleanup; } /* sign the request */
signalgtag = sec_getsignaturealgorithmoidtag(keytype, hashalgtag); if (
signalgtag == sec_oid_unknown) { pr_fprintf(pr_stderr, "unknown key or hash type\n"); rv = secfailure; goto cleanup; } rv = sec_dersigndata(arena, &result, encoding->data, encoding->len, privk,
signalgtag); if (rv) { pr_fprintf(pr_stderr, "signing of data failed\n"); rv = secfailure; goto cleanup; } /* encode request in specified for...
Hacking Tips
$ gdb --args js […] (gdb) b js::ion::codegenerator::visitstart (gdb) command >call masm.breakpoint() >continue >end (gdb) r js> function f(a, b) { return a + b; } js> for (var i = 0; i < 100000; i++) f(i, i + 1); breakpoint 1, js::ion::codegenerator::visitstart (this=0x101ed20, lir=0x10234e0) at /home/nicolas/mozilla/ionmonkey/js/src/ion/codegenerator.cpp:609 609 } program received
signal sigtrap, trace/breakpoint trap.
...note that if you reverse-continue over a sigsegv and you're using the standard .gdbinit that sets a catchpoint for that
signal, you'll get an additional stop at the catchpoint.
Index
566 nsidownloadobserver interfaces, interfaces:scriptable, needscontent, xpcom, xpcom interface reference called to
signal a download that has completed.
...this
signals the application in case it needs to quit.
imgIDecoderObserver
unfortunately, this is currently the only way to
signal decoding errors to consumers, and the only decoding errors that consumers care about (indeed, the only ones that they're prepared to hear about) are failures to instantiate the decoder (<img src="foo.html"> for example).
... thus, currently this is just a companion to onstoprequest to
signal success or failure.
nsIAppStartup
enterlastwindowclosingsurvivalarea() serves for situations when all application windows will be closed but we don't want to take this as a
signal to quit the application.
... exitlastwindowclosingsurvivalarea() this method serves for situations when all application windows will be closed but we don't want to take this as a
signal to quit the application.
BaseAudioContext.createDelay() - Web APIs
the createdelay() method of the baseaudiocontext interface is used to create a delaynode, which is used to delay the incoming audio
signal by a certain amount of time.
... syntax var delaynode = audioctx.createdelay(maxdelaytime); parameters maxdelaytime optional the maximum amount of time, in seconds, that the audio
signal can be delayed by.
DynamicsCompressorNode.reduction - Web APIs
the reduction read-only property of the dynamicscompressornode interface is a float representing the amount of gain reduction currently applied by the compressor to the
signal.
... intended for metering purposes, it returns a value in db, or 0 (no gain reduction) if no
signal is fed into the dynamicscompressornode.
DynamicsCompressorNode - Web APIs
the dynamicscompressornode interface provides a compression effect, which lowers the volume of the loudest parts of the
signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.
... dynamicscompressornode.reduction read only is a float representing the amount of gain reduction currently applied by the compressor to the
signal.
IDBTransactionSync - Web APIs
methods abort() call this method to
signal a need to cancel the effects of the operations performed by this transaction.
... commit() call this method to
signal that the transaction has completed normally and satisfactorily.
NDEFReader.scan() - Web APIs
signal -- optional abort
signal that allows to cancell this scan() operation.
... exceptions this method doesn't throw true exceptions; instead, it rejects the returned promise, passing into it a domexception whose name is one of the following: aborterror the scan operation was aborted with abort
signal passed in options.
NDEFWriter.write() - Web APIs
signal -- optional abort
signal that allows to cancell this write operation.
... exceptions this method doesn't throw true exceptions; instead, it rejects the returned promise, passing into it a domexception whose name is one of the following: aborterror the write operation was aborted with abort
signal passed in options.
RTCIceCandidateInit.candidate - Web APIs
the complete list of attributes for this example candidate is: foundation = 4234997325 component = "rtp" (the number 1 is encoded to this string; 2 becomes "rtcp") protocol = "udp" priority = 2043278322 ip = "192.168.0.56" port = 44323 type = "host" example when a new ice candidate is received by your
signaling code from the remote peer, you need to construct the rtcicecandidate object that encapsulates it.
...if your client-side
signaling layer builds and transmits a json string including the candidate to the remote peer, the remote peer might handle receiving that json message like this: function goticecandidatemessage(msg) { var icecandidate = new rtcicecandidate({ candidate: msg.candidate; }); pc.addicecandidate(icecandidate).catch({ /* handle error */ }); } it's helpful to note that for backward compatibility with older versions of the webrtc specification, the rtcicecandidate() constructor accepts the value of candidate as its only input, in place of the rtcicecandidateinit dictionary.
RTCPeerConnection.addStream() - Web APIs
if the
signalingstate is set to closed, an invalidstateerror is raised.
... if the
signalingstate is set to stable, the event negotiationneeded is sent on the rtcpeerconnection to indicate that ice negotiation must be repeated to consider the new stream.
RTCPeerConnection.addTrack() - Web APIs
see starting negotiation in
signaling and video calling for details.
... example this example is drawn from the code presented in the article
signaling and video calling and its corresponding sample code.
RTCPeerConnection.canTrickleIceCandidates - Web APIs
ideally, your
signaling protocol provides a way to detect trickling support, so that you don't need to rely on this property.
....then(answer => pc.setlocaldescription(answer)) .then(_ => if (pc.cantrickleicecandidates) { return pc.localdescription; } return new promise(r => { pc.addeventlistener('icegatheringstatechange', e => { if (e.target.icegatheringstate === 'complete') { r(pc.localdescription); } }); }); }) .then(answer => sendanswertopeer(answer)) //
signaling message .catch(e => handleerror(e)); pc.addeventlistener('icecandidate', e => { if (pc.cantrickleicecandidates) { sendcandidatetopeer(e.candidate); //
signaling message } }); specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.cantrickleicecandidates' in that specification...
RTCPeerConnection: iceconnectionstatechange event - Web APIs
this can happen when only the last checked candidate is successful, and the gathering and end-of-candidates
signals both occur before the successful negotiation is completed.
...the ice layer makes this determination upon receiving the end-of-candidates
signal, which is provided by caling addicecandidate() with a candidate whose candidate property is an empty string (""), or by setting the rtcpeerconnection property cantrickleicecandidates to false.
RTCPeerConnection.removeStream() - Web APIs
if the
signalingstate is set to "closed", an invalidstateerror is raised.
... if the
signalingstate is set to "stable", the event negotiationneeded is sent on the rtcpeerconnection.
ReadableStreamDefaultReader.cancel() - Web APIs
the cancel() method of the readablestreamdefaultreader interface cancels the stream,
signaling a loss of interest in the stream by a consumer.
... when the stream is done (if (done)), we run reader.cancel() to cancel the stream,
signalling that we don't need to use it any more.
Streams API concepts - Web APIs
when a stream later in the chain is still busy and isn't yet ready to accept more chunks, it sends a
signal backwards through the chain to tell earlier transform streams (or the original source) to slow down delivery as appropriate so that you don't end up with a bottleneck anywhere.
... internal queues employ a queuing strategy, which dictates how to
signal backpressure based on the internal queue state.
Using writable streams - Web APIs
close(controller) — a method that is called if the app
signals that it has finished writing chunks to the stream.
... abort(reason) — a method that will be called if the app
signals that it wishes to abruptly close the stream and put it in an errored state.
WaveShaperNode.curve - Web APIs
the mid-element of the array is applied to any
signal value of 0, the first one to
signal values of -1, and the last to
signal values of 1; values lower than -1 or greater than 1 are treated like -1 or 1 respectively.
... note: the array can be a null value: in that case, no distortion is applied to the input
signal.
WebGL2RenderingContext - Web APIs
webgl2renderingcontext.clientwaitsync() blocks and waits for a webglsync object to become
signaled or a given timeout to be passed.
... webgl2renderingcontext.waitsync() returns immediately, but waits on the gl server until the given webglsync object is
signaled.
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
this triggers renegotiation of the rtcpeerconnection by sending it a negotiationneeded event, which your code responds to generating an sdp offer using rtcpeerconnection.createoffer and sending it through the
signaling server to the remote peer.
... the sdp answer is generated and sent using a method called sendanswer(), which generates the answer using createanswer() then sends the resulting sdp to the other peer over the
signaling service.
Rendering and the WebXR frame animation callback - Web APIs
these two images are focused onto the retinas and the resulting
signal transmitted over the optic nerves to the brain's visual cortex, located at the back of the occipital lobe.
... tha brain takes those
signals from the left and right eyes and constructs a single, unified, 3d image of the world in the viewer's brain, and that image is what is seen.
Using IIR filters - Web APIs
it's one of two primary types of filters used in audio and digital
signal processing.
...this enters the realms of
signal processing theory — don't worry if you look at it and feel like it's not for you.
WritableStreamDefaultWriter - Web APIs
writablestreamdefaultwriter.readyread only returns a promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive,
signaling that it is no longer applying backpressure.
... methods writablestreamdefaultwriter.abort() aborts the stream,
signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
Upgrade-Insecure-Requests - HTTP
the http upgrade-insecure-requests request header sends a
signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests csp directive.
... header type request header forbidden header name no syntax upgrade-insecure-requests: 1 examples a client's request
signals to the server that it supports the upgrade mechanisms of upgrade-insecure-requests: get / http/1.1 host: example.com upgrade-insecure-requests: 1 the server can now redirect to a secure version of the site.
HTTP headers - HTTP
upgrade-insecure-requests sends a
signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests directive.
... x-ua-compatible used by internet explorer to
signal which document mode to use.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
source here is the source to the example: <html> <head> <title>xtech svg demo</title> <style> stop.begin { stop-color:yellow; } stop.end { stop-color:green; } body.invalid stop.end { stop-color:red; } #err { display:none; } body.invalid #err { display:inline; } </style> <script> function
signalerror() { document.getelementbyid('body').setattribute("class", "invalid"); } </script> </head> <body id="body" style="position:absolute; z-index:0; border:1px solid black; left:5%; top:5%; width:90%; height:90%;"> <form> <fieldset> <legend>html form</legend> <p><label>enter something:</label> <input type="text"> <span id="err">incorrect value!</span></p> <p><input ty...
...pe="button" value="activate!" onclick="
signalerror();"></p> </fieldset> </form> <svg viewbox="0 0 100 100" preserveaspectratio="xmidymid slice" style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:-1;"> <lineargradient id="gradient"> <stop class="begin" offset="0%"/> <stop class="end" offset="100%"/> </lineargradient> <rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" /> <circle cx="50" cy="50" r="30" style="fill:url(#gradient)" /> </svg> </body> </html> discussion the page is mainly regular html, css and javascript.
Index - Archive of obsolete content
3424 monitoring wifi access points wifi code with universalxpconnect privileges can monitor the list of available wifi access points to obtain information about them including their ssid, mac address, and
signal strength.
Visualizing an audio spectrum - Archive of obsolete content
function loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; fft = new fft(framebufferlength / channels, rate); } function audioavailable(event) { var fb = event.framebuffer, t = event.time, /* unused, but it's there */
signal = new float32array(fb.length / channels), magnitude; for (var i = 0, fbl = framebufferlength / 2; i < fbl; i++ ) { // assuming interlaced stereo channels, // need to split and merge into a stero-mix mono
signal signal[i] = (fb[2*i] + fb[2*i+1]) / 2; } fft.forward(
signal); // clear the canvas before drawing spectrum ...
How to implement a custom XUL query processor component - Archive of obsolete content
essor]), classdescription: "sample xul template query processor", classid: components.id("{282cc4ea-a49c-44fc-81f4-1f03cbb7825f}"), contractid: "@mozilla.org/xul/xul-query-processor;1?name=simpledata", getdatasource: function(adatasources, arootnode, aistrusted, abuilder, ashoulddelaybuilding) { // todo: parse the adatasources variable // for now, ignore everything and let's just
signal that we have data return this._data; }, initializeforbuilding: function(adatasource, abuilder, arootnode) { // perform any initialization that can be delayed until the content builder // is ready for us to start }, done: function() { // called when the builder is destroyed to clean up state }, compilequery: function(abuilder, aquery, arefvariable, amembervariable) {...
mozilla.dev.platform FAQ - Archive of obsolete content
a: xulrunner trunk and 1.8 (but not 1.8.0) build storage by default, and anything can be built with storage if you put in you <tt>mozconfig --enable-storage</tt> q: program received
signal exc_bad_instruction, illegal instruction/operand.
Browser Detection and Cross Browser Support - Archive of obsolete content
since the earliest browser detection techniques were based upon looking for a netscape based browser and only provided customized content to browsers which used the mozilla/version user agent string, other browser vendors standardized on using mozilla/version to
signal that they were compatible with a particular netscape version.
Anatomy of a video game - Game development
present, accept, interpret, calculate, repeat the goal of every video game is to present the user(s) with a situation, accept their input, interpret those
signals into actions, and calculate a new situation resulting from those acts.
Efficient animation for web games - Game development
there are
signals at the beginning and end of animations that allow you to attach javascript callbacks and form a rudimentary form of synchronisation (though there are no guarantees on how promptly these callbacks will happen).
Visual typescript game engine - Game development
- a command for killing all node.js process for window users : taskkill /im node.exe /f networking multimedia communication: websocketserver running on node.js text-based protocol sip (session initiation protocol) used for
signalling and controlling multimedia sessions.
MDN Web Docs Glossary: Definitions of Web-related terms
t digital certificate distributed denial of service dmz dns doctype document directive document environment dom (document object model) domain domain name domain sharding dominator dos attack dtls (datagram transport layer security) dtmf (dual-tone multi-frequency
signaling) dynamic programming language dynamic typing e ecma ecmascript effective connection type element empty element encapsulation encryption endianness engine entity entity header event exception expando f fallback a...
Client-side storage - Learn web development
inside the install handler we use the extendableevent.waituntil() method, available on the event object, to
signal that the browser shouldn't complete installation of the service worker until after the promise inside it has fulfilled successfully.
Accessibility API cross-reference
unavailable enabled n/a aria-disabled=true disabled (boolean attribute) especially used for sliders and scrollbars n/a vertical vertical aria-orientation=vertical accessible events msaa event (event_object_*, event_system_*) java accessibility event gnome accessibility
signals mac os x accessibility event description & notes javascript relevant xul focus focus, focusin blur, focusout selection select state_change change (not sure if this is the same thing?) ...
Mozilla accessibility architecture
we need to listen to some attribute changes because they might
signal the need to invalidate parts of our cache; for example, if the name or href attribute on an anchor element changes, or the usemap attribute of an img changes.
Multiprocess on Windows
setting eallocatedbyserver
signals to the interceptor that the array is allocated within the method's implementation by calling cotaskmemalloc().
IPDL Tutorial
normal errors should be
signaled with a message or return value.
UpdateListener
onupdatefinished() to
signal that the update check has completed.
DMD
(linux only) you can send
signal 34 to the firefox process, e.g.
Introduction to NSPR
a thread may wait on notification of a condition that
signals changes in the state of the associated data.
PR_Initialize
this allows main to be treated like any other function,
signaling its completion by returning and allowing the runtime to coordinate the completion of the other threads of the runtime.
PR_Notify
description notification of a monitor
signals the change of state of some monitored data.
PR_NotifyCondVar
notification of a condition variable
signals a change of state in some monitored data.
NSS 3.49 release notes
bug 1606025 - remove -wmaybe-uninitialized warning in sslsnce.c bug 1606119 - fix ppc hw crypto build failure bug 1605545 - memory leak in pk11install_platform_generate bug 1602288 - fix build failure due to missing posix
signal.h bug 1588714 - implement checkarmsupport for win64/aarch64 bug 1585189 - nss database uses 3des instead of aes to encrypt db entries bug 1603257 - fix ubsan issue in softoken ckm_nss_chacha20_ctr initialization bug 1590001 - additional hrr tests (cve-2019-17023) bug 1600144 - treat clienthello with message_seq of 1 as a second clienthello bug 1603027 - test that esni is regenerated after h...
FOSS
bundled modules include support for bytearray, bytestring, cgi, posix
signals, ffi, and more.
SpiderMonkey Internals
in general, both functions inside spidermonkey and jsapi callback functions
signal errors by calling js_reporterror or one of its variants, or js_setpendingexception, and returning js_false or null.
JSAPI Cookbook
the jsapi code also has to return false to
signal failure to the caller.
JS_GetPrototype
if js_getprototype returns false, that
signals an exception, which should be handled as usual.
Animated PNG graphics
actl fctl and adat are now copy safe, renamed them to actl, fctl and adat from 0.6 the fdat chunk is no longer a container for other chunks, but rather a replacement for an idat chunk removed the fend chunk added a sequence number field to fdat reintroduced the width and height fields in fctl from 0.7 removed hidden flag, instead only the first frame can be hidden and it is
signaled with a missing fctl idat, fctl and fdat are no longer required to have no other chunks in between them from 0.8 removed crcs for ihdr and plte from actl the actl fctl and adat are now not copy safe, renamed them to actl, fctl and adat from 0.9 split render_op into dispose_op and blend_op from 0.10 no changes test encoder and sample images sample images are available fr...
Components.returnCode
if the javascript code needs to
signal failure then that is done by throwing an exception.
nsIAppShellService
enterlastwindowclosingsurvivalarea() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) during application startup (and at other times!) we may temporarily encounter a situation where all application windows will be closed but we do not want to take this as a
signal to quit the application.
nsIDownloadObserver
inherits from: nsisupports last changed in gecko 1.7 method overview void ondownloadcomplete(in nsidownloader downloader, in nsirequest request, in nsisupports ctxt, in nsresult status, in nsifile result); methods ondownloadcomplete() called to
signal a download that has completed.
nsISmsRequestManager
constant value description success_no_error 0 no_
signal_error 1 not_found_error 2 unknown_error 3 internal_error 4 methods addrequest() track an already existing request object.
nsIThreadObserver
example it is possible to overlay processing events for a gui toolkit on top of the events for a thread: var nativequeue; observer = { ondispatchedevent(thread) { nativequeue.
signal(); } onprocessnextevent(thread, maywait, recursiondepth) { if (nativequeue.hasnextevent()) { nativequeue.processnextevent(); } while (maywait && !thread.haspendingevent()) { nativequeue.wait(); nativequeue.processnextevent(); } } }; see also the thread manager nsithreadmanager nsithread nsithreadpool nsithreadinternal nsithreadeventfilter ...
nsIXULRuntime
methods invalidatecachesonrestart()
signal the apprunner to invalidate caches on the next restart.
nsIXULWindow
this
signals the application in case it needs to quit.
Setting HTTP request headers
trapping other requests is done with notifications, which are a lot like events or
signals found in other languages and frameworks.
Weak reference
what is actually needed in this case, is either out-of-band
signaling, where when the observer wants to go away, it unregisters itself from the observable, which then releases its owning reference, allowing the observer to die, or else a new kind of reference.
WebIDL bindings
this is a
signal that you need to get a review from a dom peer.
Mozilla
the component can then call methods on the observer interface to
signal the external code when predefined events occur.
Inspecting web sockets - Firefox Developer Tools
supported ws protocols the inspector currently supports the following web socket protocols: plain json socket.io sockjs
signalr wamp the payload based on those protocols is parsed and displayed as an expandable tree for easy inspection, although you can of course still see the raw data (as sent over the wire) as well.
Waterfall - Firefox Developer Tools
the animating css properties article shows how animating different css properties can give different performance outcomes, and how the waterfall can help
signal that.
AudioParam - Web APIs
there are two kinds of audioparam, a-rate and k-rate parameters: an a-rate audioparam takes the current audio parameter value for each sample frame of the audio
signal.
BaseAudioContext.createConstantSource() - Web APIs
the createconstantsource() property of the baseaudiocontext interface creates a constantsourcenode object, which is an audio source that continuously outputs a monaural (one-channel) sound
signal whose samples all have the same value.
ChannelMergerNode - Web APIs
in that case, when the
signal is sent to the audiocontext.listener object, supernumerary channels will be ignored.
Clipboard - Web APIs
this asynchronous operation
signals that it's finished by resolving the returned promise.
DynamicsCompressorNode() - Web APIs
the dynamicscompressornode() constructor creates a new dynamicscompressornode object which provides a compression effect, which lowers the volume of the loudest parts of the
signal, in order to help prevent clipping and distortion.
Fetch API - Web APIs
aborting a fetch browsers have started to add experimental support for the abortcontroller and abort
signal interfaces (aka the abort api), which allow operations like fetch and xhr to be aborted if they have not already completed.
Gamepad API - Web APIs
the gamepad api is a way for developers to access and respond to
signals from gamepads and other game controllers in a simple, consistent way.
Key Values - Web APIs
historically, the escape character was used to
signal the start of a special control sequence of characters called an "escape sequence." vk_escape (0x1b) kvk_escape (0x35) gdk_key_escape (0xff1b) qt::key_escape (0x01000000) keycode_escape (111) "execute" the execute key.
Online and offline events - Web APIs
0.5em 0.5em; font: 1em sans-serif; } .online { background: green; } .offline { background: red; } and the corresponding htmlxxx when mochitests for this are created, point to those instead and update this example -nickolay <div id="status"></div> <div id="log"></div> <p>this is a test</p> here's the live result notes if the api isn't implemented in the browser, you can use other
signals to detect if you are offline including using service workers and responses from xmlhttprequest.
PannerNode - Web APIs
the pannernode interface represents the position and behavior of an audio source
signal in space.
PaymentResponse - Web APIs
the method takes an object as argument, which is used to
signal to the user exactly what is wrong with the payment response so they can try to correct any issues.
Using the Payment Request API - Web APIs
in the code above, you'll see that we've called the paymentresponse.complete() method to
signal that the interaction has finished — you'd use this to carry out finishing steps, like updating the user interface to tell the user the transaction is complete, etc.
RTCDataChannel.negotiated - Web APIs
example the code snippet below checks the value of negotiated; if it's true, a function called shutdownremotechannel() is called with the channel's id; presumably this would be implemented to transmit a shutdown
signal to the remote peer prior to terminating the connection.
RTCErrorEvent - Web APIs
the most common of these is probably rtcpeerconnectioniceerrorevent, used by the icecandidateerror event, which
signals an error that has occurred while gathering ice candidates during connection negotiation.
RTCIceCandidate.candidate - Web APIs
list of attributes for this example candidate is: foundation = 4234997325 component = "rtp" (the number 1 is encoded to this string; 2 becomes "rtcp") protocol = "udp" priority = 2043278322 ip = "192.168.0.56" port = 44323 type = "host" example in this example, we see a function which receives as input an sdp string containing an ice candidate received from the remote peer during the
signaling process.
RTCIceCandidate - Web APIs
examples for examples, see the article
signaling and video calling, which demonstrates the entire process.
RTCPeerConnection.onaddstream - Web APIs
example this code, based on an older version of our
signaling and video calling sample, responds to addstream events by setting the video source for a <video> element to the stream specified in the event, and then enabling a "hang up" button in the app's user interface.
RTCPeerConnection.ontrack - Web APIs
example this example, taken from the code for the article
signaling and video calling, connects the incoming track to the <video> element which will be used to display the incoming video.
RTCPeerConnection.remoteDescription - Web APIs
the returned value typically reflects a remote description which has been received over the
signaling server (as either an offer or an answer) and then put into effect by your code calling rtcpeerconnection.setremotedescription() in response.
RTCPeerConnection.removeTrack() - Web APIs
if the connection has already been negotiated (
signalingstate is set to "stable"), it is marked as needing to be negotiated again; the remote peer won't experience the change until this negotiation occurs.
RTCPeerConnection.setConfiguration() - Web APIs
.net", username: "allie@oopcode.com", credential: "topsecretpassword" }] }; mypeerconnection.setconfiguration(restartconfig); mypeerconnection.createoffer({"icerestart": true}).then(function(offer) { return mypeerconnection.setlocaldescription(offer); }) .then(function() { // send the offer to the other peer using the
signaling server }) .catch(reporterror); first, a new rtcconfiguration is created, restartconfig, specifying the new ice server and its credentials.
RTCSessionDescription - Web APIs
example
signalingchannel.onmessage = function (evt) { if (!pc) start(false); var message = json.parse(evt.data); if (message.sdp) pc.setremotedescription(new rtcsessiondescription(message), function () { // if we received an offer, we need to answer if (pc.remotedescription.type == "offer") pc.createanswer(localdesccreated, logerror); ...
ReadableStream - Web APIs
methods readablestream.cancel() cancels the stream,
signaling a loss of interest in the stream by a consumer.
StorageManager.estimate() - Web APIs
this variance is based on factors such as: how often the user visits public site popularity data user engagement
signals like bookmarking, adding to homescreen, or accepting push notifications example in this example, we obtain the usage estimates and present the percentage of storage capacity currently used to the user.
WebGL constants - Web APIs
r 0x8a44 uniform_block_referenced_by_fragment_shader 0x8a46 sync objects constant name value description object_type 0x9112 sync_condition 0x9113 sync_status 0x9114 sync_flags 0x9115 sync_fence 0x9116 sync_gpu_commands_complete 0x9117 un
signaled 0x9118
signaled 0x9119 already_
signaled 0x911a timeout_expired 0x911b condition_satisfied 0x911c wait_failed 0x911d sync_flush_commands_bit 0x00000001 miscellaneous constants constant name value description color 0x1800 depth 0x180...
The WebSocket API (WebSockets) - Web APIs
signalr:
signalr will use websockets under the covers when it's available, and gracefully fallback to other techniques and technologies when it isn't, while your application code stays the same.
Web Audio API best practices - Web APIs
if you have buttons that switch audio on and off, using the aria role="switch" attribute on them is a good option for
signalling to assistive technology what the button's exact purpose is, and therefore making the app more accessible.
WritableStream.abort() - Web APIs
the abort() method of the writablestream interface aborts the stream,
signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
WritableStream - Web APIs
methods writablestream.abort() aborts the stream,
signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
WritableStreamDefaultWriter.abort() - Web APIs
the abort() method of the writablestreamdefaultwriter interface aborts the stream,
signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
WritableStreamDefaultWriter.ready - Web APIs
the ready read-only property of the writablestreamdefaultwriter interface returns a promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive,
signaling that it is no longer applying backpressure.
XRReferenceSpace.onreset - Web APIs
the xrreferencespace interface's onreset event handler property can be set to a function which is called when the xrreferencespace receives a reset event,
signaling that the xr device has experienced a discontinuity large enough to require that the position and/or orientation of the origin be significantly altered to compensate.
Web APIs
a angle_instanced_arrays abortcontroller abort
signal absoluteorientationsensor abstractrange abstractworker accelerometer addresserrors aescbcparams aesctrparams aesgcmparams aeskeygenparams ambientlightsensor analysernode animation animationeffect animationevent animationplaybackevent animationtimeline arraybufferview attr audiobuffer audiobuffersourcenode audioconfiguration audiocontext audiocontextlatencycategory audiocontextoptions audi...
Using CSS transitions - CSS: Cascading Style Sheets
as usual, you can use the addeventlistener() method to monitor for this event: el.addeventlistener("transitionend", updatetransition, true); you detect the beginning of a transition using transitionrun (fires before any delay) and transitionstart (fires after any delay), in the same kind of fashion: el.addeventlistener("transitionrun",
signalstart, true); el.addeventlistener("transitionstart",
signalstart, true); note: the transitionend event doesn't fire if the transition is aborted before the transition is completed because either the element is made display: none or the animating property's value is changed.
Index - HTTP
109 upgrade-insecure-requests http, https, security, header the http upgrade-insecure-requests request header sends a
signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests csp directive.
Vary - HTTP
a better way to indicate this is to use cache-control: no-store, which is clearer to read and also
signals that the object shouldn't be stored ever.
HTTP Index - HTTP
190 upgrade-insecure-requests http, https, security, header the http upgrade-insecure-requests request header sends a
signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests csp directive.