Search completed in 1.17 seconds.
ChannelSplitterNode.ChannelSplitterNode() - Web APIs
the
channelsplitternode() constructor of the web audio api creates a new
channelsplitternode object instance, representing a node that splits the input into a separate output for each of the source node's audio
channels.
... syntax var splitter = new
channelspitternode(context, options); parameters inherits parameters from the audionodeoptions dictionary.
... options optional a
channelsplitteroptions dictionary object defining the properties you want the
channelsplitternode to have (it also inherits the options defined in the audionodeoptions dictionary): numberofoutputs: a number defining the number of inputs the
channelsplitternode should have.
...And 2 more matches
RTCDataChannelEvent.channel - Web APIs
the read-only property rtcdata
channelevent.
channel returns the rtcdata
channel associated with the event.
... syntax var
channel = rtcdata
channelevent.
channel; value a rtcdata
channel object representing the data
channel linking the receiving rtcpeerconnection to its remote peer.
... example the first line of code in the data
channel event handler shown below takes the
channel from the event object and saves it locally for use by the code handling data traffic.
... pc.ondata
channel = function(event) { inbounddata
channel = event.
channel; inbounddata
channel.onmessage = handleincomingmessage; inbounddata
channel.onopen = handle
channelopen; inbounddata
channel.onclose = handle
channelclose; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdata
channelevent.
channel' in that specification.
nsIChannel
netwerk/base/nsi
channel.idlscriptable this interface allows clients to construct 'get' requests for specific protocols, and manage them in a uniform way.
... inherits from: nsirequest last changed in gecko 19.0 (firefox 19.0 / thunderbird 19.0 / seamonkey 2.16) once a
channel is created (via nsiioservice.new
channel()), parameters for that request may be set by using the
channel attributes, or by calling queryinterface() to retrieve a subclass of nsi
channel for protocol-specific parameters.
...after a request has been completed, the
channel is still valid for accessing protocol-specific results.
...And 45 more matches
AudioNode.channelInterpretation - Web APIs
the
channelinterpretation property of the audionode interface represents an enumerated value describing the meaning of the
channels.
... when the number of
channels doesn't match between an input and an output, up- or down-mixing happens according the following rules.
... this can be somewhat controlled by setting the audionode.
channelinterpretation property to speakers or discrete: interpretation input
channels output
channels mixing rules speakers 1 (mono) 2 (stereo) up-mix from mono to stereo.
...And 34 more matches
nsIHttpChannel
netwerk/protocol/http/nsihttp
channel.idlscriptable this interface allows for the modification of http request parameters and the inspection of the resulting http response status and headers when they become available.
... inherits from: nsi
channel last changed in gecko 1.3 to create an http
channel, use nsiioservice with a http uri, for example: var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var ch = ios.new
channel("https://www.example.com/", null, null); method overview void getoriginalresponseheader(in acstring aheader, in nsihttpheadervisitor avisitor); acstring getrequestheader(in acstring aheader); acstring getresponseheader(in acstring header); boolean isnocacheresponse(); boolean isnostoreresponse(); void redirectto(in nsiuri anewuri); void setemptyrequestheader(in acstring aheader); void setreferrerwithpolicy(in nsiuri referrer, in uns...
...f the referring uri referrer_policy_origin_when_xorigin same as the default; only send the origin of the referring uri for cross-origin requests referrer_policy_unsafe_url always send the referrer, even when downgrading from https to http attributes attribute type description allowpipelining boolean this attribute is a hint to the
channel to indicate whether or not the underlying http transaction should be allowed to be pipelined with other transactions.
...And 24 more matches
Using WebRTC data channels - Web APIs
in this guide, we'll examine how to add a data
channel to a peer connection, which can then be used to securely exchange arbitrary data; that is, any kind of data we wish, in any format we choose.
... since all webrtc components are required to use encryption, any data transmitted on an rtcdata
channel is automatically secured using datagram transport layer security (dtls).
... creating a data
channel the underlying data transport used by the rtcdata
channel can be created in one of two ways: let webrtc create the transport and announce it to the remote peer for you (by causing it to receive a data
channel event).
...And 24 more matches
nsIChannelEventSink
netwerk/base/public/nsi
channeleventsink.idlscriptable implement this interface to gain control over various
channel events, such as redirects.
... 1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)
channels will try to get this interface from a
channel's notificationcallbacks or, if not available there, from the loadgroup's notificationcallbacks.
... note: prior to gecko 2.0, redirect handling was synchronous, using the on
channelredirect() method.
...And 19 more matches
RTCDataChannel - Web APIs
the rtcdata
channel interface represents a network
channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
... every data
channel is associated with an rtcpeerconnection, and each peer connection can have up to a theoretical maximum of 65,534 data
channels (the actual limit may vary from browser to browser).
... to create a data
channel and ask a remote peer to join you, call the rtcpeerconnection's createdata
channel() method.
...And 19 more matches
A simple RTCDataChannel sample - Web APIs
the rtcdata
channel interface is a feature of the webrtc api which lets you open a
channel between two peers over which you may send and receive arbitrary data.
... in this example, we will open an rtcdata
channel connection linking two elements on the same page.
...this <div> will be the first peer in the
channel.
...And 19 more matches
nsIHttpChannelInternal
netwerk/protocol/http/nsihttp
channelinternal.idlscriptable an internal interface for http
channels.
...pports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void getrequestversion(out unsigned long major, out unsigned long minor); void getresponseversion(out unsigned long major, out unsigned long minor); void httpupgrade(in acstring aprotocolname, in nsihttpupgradelistener alistener); void setcookie(in string acookieheader); void setupfallback
channel(in string afallbackkey); attributes attribute type description canceled boolean returns true if and only if the
channel has been canceled.
...
channelisfordownload boolean external handlers may set this to true to notify the
channel that it is open on behalf of a download.
...And 14 more matches
RTCPeerConnection.createDataChannel() - Web APIs
the createdata
channel() method on the rtcpeerconnection interface creates a new
channel linked with the remote peer, over which any kind of data may be transmitted.
... this can be useful for back-
channel content such as images, file transfer, text chat, game update packets, and so forth.
... if the new data
channel is the first one added to the connection, renegotiation is started by delivering a negotiationneeded event.
...And 13 more matches
nsICachingChannel
netwerk/base/public/nsicaching
channel.idlscriptable please add a summary to this article.
... inherits from: nsicacheinfo
channel last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface provides: support for "stream as file" semantics (for jar and plugins).
... a
channel may optionally implement this interface to allow clients to affect its behavior with respect to how it uses the cache service.
...And 12 more matches
Using channel messaging - Web APIs
the
channel messaging api allows two separate scripts running in different browsing contexts attached to the same document (e.g., two iframes, or the main document and an iframe, or two documents via a sharedworker) to communicate directly, passing messages between one another through two-way
channels (or pipes) with a port at each end.
... use cases
channel messaging is mainly useful in cases where you've got a social site that embeds capabilities from other sites into its main interface via iframes, such as games, address book, or an audio player with personalized music choices.
... message
channels on the other hand can provide a secure
channel that allows you to pass data between different browsing contexts.
...And 11 more matches
ChannelMergerNode - Web APIs
the
channelmergernode interface, often used in conjunction with its opposite,
channelsplitternode, reunites different mono inputs into a single output.
... each input is used to fill a
channel of the output.
... this is useful for accessing each
channels separately, e.g.
...And 10 more matches
ChannelSplitterNode - Web APIs
the
channelsplitternode interface, often used in conjunction with its opposite,
channelmergernode, separates the different
channels of an audio source into a set of mono outputs.
... this is useful for accessing each
channel separately, e.g.
... for performing
channel mixing where gain must be separately controlled on each
channel.
...And 10 more matches
Broadcast Channel API - Web APIs
the broadcast
channel api allows basic communication between browsing contexts (that is, windows, tabs, frames, or iframes) and workers on the same origin.
... by creating a broadcast
channel object, you can receive any messages that are posted to it.
... you don't have to maintain a reference to the frames or workers you wish to communicate with: they can “subscribe” to a particular
channel by constructing their own broadcast
channel with the same name, and have bi-directional communication between all of them.
...And 9 more matches
RTCDataChannel.close() - Web APIs
the rtcdata
channel.close() method closes the rtcdata
channel.
... either peer is permitted to call this method to initiate closure of the
channel.
... closure of the data
channel is not instantaneous.
...And 9 more matches
BroadcastChannel - Web APIs
the broadcast
channel interface represents a named
channel that any browsing context of a given origin can subscribe to.
...messages are broadcasted via a message event fired at all broadcast
channel objects listening to the
channel.
...ll="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">eventtarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xlink:href="/docs/web/api/broadcast
channel" target="_top"><rect x="151" y="1" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">broadcast
channel</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor broadcastchanne...
...And 8 more matches
WebChannel.jsm
the web
channel.jsm javascript code module provides an abstraction that uses the message manager and custom events apis to create a two-way communication
channel between chrome and content code for specific origins (using a specific origin passed to the constructor or a lookup with nsipermissionmanager while also ensuring the scheme is https).
... components.utils.import("resource://gre/modules/web
channel.jsm"); constructor web
channel(string web
channelid, nsiuri originorpermission); 2nd argument is a valid origin that should be part of requests for this
channel.
... web
channel(string web
channelid, string originorpermission); 2nd argument is a permission for which the permission manager will be checked to determine if the request is allowed.
...And 7 more matches
nsITraceableChannel
netwerk/base/public/nsitraceable
channel.idlscriptable this interface is used to allow intercepting of http traffic.
... it is implemented by nsihttp
channel.
... 1.0 66 introduced gecko 1.9.0.4 inherits from: nsisupports last changed in gecko 1.9.0.4 the typical way to use this interface is as follows: register for the "http-on-examine-response" notification to track all http responses; skip redirects (responsestatus = 3xx on nsihttp
channel), since otherwise you may end up with two listeners registered for a
channel; qi the
channel passed as the "subject" to your observer to nsitraceable
channel, and replace the default nsistreamlistener (that passes the data to the original requester - e.g.
...And 7 more matches
AudioBuffer.copyToChannel() - Web APIs
the copyto
channel() method of the audiobuffer interface copies the samples to the specified
channel of the audiobuffer, from the source array.
... syntax myarraybuffer.copyto
channel(source,
channelnumber, startin
channel); parameters source a float32array that the
channel data will be copied from.
...
channelnumber the
channel number of the current audiobuffer to copy the
channel data to.
...And 7 more matches
WebRTC data channels - Game development
the webrtc (web real-time communications) api is primarily known for its support for audio and video communications; however, it also offers peer-to-peer data
channels.
... this article explains more about this, and shows you how to use libraries to implement data
channels in your game.
... what is a data
channel?
...And 6 more matches
Channel Messaging API - Web APIs
the
channel messaging api allows two separate scripts running in different browsing contexts attached to the same document (e.g., two iframes, or the main document and an iframe, two documents via a sharedworker, or two workers) to communicate directly, passing messages between one another through two-way
channels (or pipes) with a port at each end.
...
channel messaging concepts and usage a message
channel is created using the message
channel() constructor.
... once created, the two ports of the
channel can be accessed through the message
channel.port1 and message
channel.port2 properties (which both return messageport objects.) the app that created the
channel uses port1, and the app at the other end of the port uses port2 — you send a message to port2, and transfer the port over to the other browsing context using window.postmessage along with two arguments (the message to send, and the object to transfer ownership of, in this case the port itself.) when these transferable objects are transferred, they are 'neutered' on the previous context — the one they previously belonged to.
...And 6 more matches
RTCDataChannelEvent() - Web APIs
the rtcdata
channelevent() constructor creates a new rtcdata
channelevent.
... you will rarely if ever construct an rtcdata
channelevent by hand; these events are normally created and sent by the webrtc layer itself.
... syntax var event = new rtcdata
channelevent(type, rtcdata
channeleventinit); parameters type a domstring which specifies the name of the event.
...And 6 more matches
AudioBuffer.copyFromChannel() - Web APIs
the copyfrom
channel() method of the audiobuffer interface copies the audio sample data from the specified
channel of the audiobuffer to a specified float32array.
... syntax myarraybuffer.copyfrom
channel(destination,
channelnumber, startin
channel); parameters destination a float32array to copy the
channel's samples to.
...
channelnumber the
channel number of the current audiobuffer to copy the
channel data from.
...And 5 more matches
AudioNode.channelCountMode - Web APIs
the
channelcountmode property of the audionode interface represents an enumerated value describing the way
channels must be matched between the node's inputs and outputs.
... the possible values of
channelcountmode and their meanings are: value description the following audionode children default to this value max the number of
channels is equal to the maximum number of
channels of all connections.
... in this case,
channelcount is ignored and only up-mixing happens.
...And 5 more matches
BaseAudioContext.createChannelMerger() - Web APIs
the create
channelmerger() method of the baseaudiocontext interface creates a
channelmergernode, which combines
channels from multiple audio streams into a single audio stream.
... syntax baseaudiocontext.create
channelmerger(numberofinputs); parameters numberofinputs the number of
channels in the input audio streams, which the output stream will contain; the default is 6 if this parameter is not specified.
... returns a
channelmergernode.
...And 5 more matches
BaseAudioContext.createChannelSplitter() - Web APIs
the create
channelsplitter() method of the baseaudiocontext interface is used to create a
channelsplitternode, which is used to access the individual
channels of an audio stream and process them separately.
... syntax baseaudiocontext.create
channelsplitter(numberofoutputs); parameters numberofoutputs the number of
channels in the input audio stream that you want to output separately; the default is 6 if this parameter is not specified.
... returns a
channelsplitternode.
...And 5 more matches
MessageChannel - Web APIs
the message
channel interface of the
channel messaging api allows us to create a new message
channel and send data through it via its two messageport properties.
... properties message
channel.port1 read only returns port1 of the
channel.
... message
channel.port2 read only returns port2 of the
channel.
...And 5 more matches
RTCDataChannel.label - Web APIs
the read-only rtcdata
channel property label returns a domstring containing a name describing the data
channel.
... you may use the label as you wish; you could use it to identify all the
channels that are being used for the same purpose, by giving them all the same name.
... or you could give each
channel a unique label for tracking purposes.
...And 5 more matches
RTCDataChannel.send() - Web APIs
the send() method of the rtcdata
channel interface sends data across the data
channel to the remote peer.
... this can be done any time except during the initial process of creating the underlying transport
channel.
...this will get less complicated over time, but for now, if you have questions, see understanding message size limits in using webrtc data
channels.
...And 5 more matches
RTCDataChannelEvent - Web APIs
the rtcdata
channelevent() constructor returns a new rtcdata
channelevent object, which represents a data
channel event.
... these events sent to an rtcpeerconnection when its remote peer is asking to open an rtcdata
channel between the two peers.
... you will rarely if ever construct an rtcdata
channelevent by hand; instead, the webrtc layer will generate and deliver them to you at the appropriate time.
...And 5 more matches
xChannelSelector - SVG: Scalable Vector Graphics
the x
channelselector attribute indicates which color
channel from in2 to use to displace the pixels in in along the x-axis.
...lement is using this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" x
channelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" x
channelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced t...
...ext</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color
channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the x-axis.
...And 5 more matches
yChannelSelector - SVG: Scalable Vector Graphics
the y
channelselector attribute indicates which color
channel from in2 to use to displace the pixels in in along the y-axis.
...lement is using this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" y
channelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" y
channelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced t...
...ext</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color
channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the y-axis.
...And 5 more matches
Alpha (alpha channel) - MDN Web Docs Glossary: Definitions of Web-related terms
each of these components is called a
channel.
... in a typical image file, the color
channels describe how much red, green, and blue are used to make up the final color.
... to represent a color through which the background can be seen to some extent, a fourth
channel is added to the color: the alpha
channel.
...And 4 more matches
AudioBuffer.getChannelData() - Web APIs
the get
channeldata() method of the audiobuffer interface returns a float32array containing the pcm data associated with the
channel, defined by the
channel parameter (with 0 representing the first
channel).
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); var nowbuffering = myarraybuffer.get
channeldata(
channel); parameters
channel the
channel property is an index representing the particular
channel to get data for.
... an index value of 0 represents the first
channel.
...And 4 more matches
RTCDataChannel.bufferedAmount - Web APIs
the read-only rtcdata
channel property bufferedamount returns the number of bytes of data currently queued to be sent over the data
channel.
... closing the data
channel doesn't reset this count, even though the user agent purges the queued messages.
... however, even after closing the
channel, attempts to send messages continue to add to the bufferedamount value, even though the messages are neither sent nor buffered.
...And 4 more matches
RTCDataChannel.id - Web APIs
the read-only rtcdata
channel property id returns an id number (between 0 and 65,534) which uniquely identifies the rtcdata
channel.
... this id is set at the time the data
channel is created, either by the user agent (if rtcdata
channel.negotiated is false) or by the site or app script (if negotiated is true).
... each rtcpeerconnection can therefore have up to a theoretical maximum of 65,534 data
channels on it, although the actual maximum may vary from browser to browser.
...And 4 more matches
RTCDataChannel.onbufferedamountlow - Web APIs
the rtcdata
channel.onbufferedamountlow property is an eventhandler which specifies a function the browser calls when the bufferedamountlow event is sent to the rtcdata
channel.
... this event, which is represented by a simple event object, is sent when the amount of data buffered to be sent falls to or below the threshold specified by the
channel's bufferedamountlowthreshold.
... see buffering in using webrtc data
channels to learn more about how to work with the data
channel buffer.
...And 4 more matches
RTCDataChannel.readyState - Web APIs
the read-only rtcdata
channel property readystate returns an enum of type rtcdata
channelstate which indicates the state of the data
channel's underlying data connection.
... syntax var state = adata
channel.readystate; values a string which is one of the values in the rtcdata
channelstate enum, indicating the current state of the underlying data transport.
... rtcdata
channelstate enum the rtcdata
channelstate enum defines string constants which reflect the current status of the rtcdata
channel's underlying data connection.
...And 4 more matches
nsIApplicationCacheChannel
netwerk/base/public/nsiapplicationcache
channel.idlscriptable this interface is implemented by communication
channels that support application caches.
... 1.0 66 introduced gecko 1.9.1 inherits from: nsiapplicationcachecontainer last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void markofflinecacheentryasforeign(); attributes attribute type description chooseapplicationcache boolean when true, the
channel will choose an application cache if one was not explicitly provided and none is available from the notification callbacks.
...exceptions thrown ns_error_already_opened if set after calling asyncopen() on the
channel.
...And 3 more matches
AudioDestinationNode.maxChannelCount - Web APIs
the max
channelcount property of the audiodestinationnode interface is an unsigned long defining the maximum amount of
channels that the physical device can handle.
... the audionode.
channelcount property can be set between 0 and this value (both included).
... if max
channelcount is 0, like in offlineaudiocontext, the
channel count cannot be changed.
...And 3 more matches
AudioNode.channelCount - Web APIs
the
channelcount property of the audionode interface represents an integer used to determine how many
channels are used when up-mixing and down-mixing connections to any inputs to the node.
...
channelcount's usage and precise definition depend on the value of audionode.
channelcountmode: it is ignored if the
channelcountmode value is max.
... it is used as a maximum value if the
channelcountmode value is clamped-max.
...And 3 more matches
ChannelMergerNode() - Web APIs
the
channelmergernode() constructor creates a new
channelmergernode object instance.
... syntax var mynode = new
channelmergernode(context, options); parameters context a baseaudiocontext representing the audio context you want the node to be associated with.
... options optional a
channelmergeroptions dictionary object defining the properties you want the
channelmergernode to have (also inherits parameters from the audionodeoptions dictionary): numberofinputs: a number defining the number of inputs the
channelmergernode should have.
...And 3 more matches
MediaTrackConstraints.channelCount - Web APIs
the mediatrackconstraints dictionary's
channelcount property is a constrainlong describing the requested or mandatory constraints placed upon the value of the
channelcount constrainable property.
... if needed, you can determine whether or not this constraint is supported by checking the value of mediatracksupportedconstraints.
channelcount as returned by a call to mediadevices.getsupportedconstraints().
... syntax var constraintsobject = {
channelcount: constraint }; constraintsobject.
channelcount = constraint; value if this value is a number, the user agent will attempt to obtain media whose
channel count is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
...And 3 more matches
MessageChannel() - Web APIs
the message
channel() constructor of the message
channel interface returns a new message
channel object with two new messageport objects.
... syntax var
channel = new message
channel(); returns a newly created message
channel object.
... example in the following code block, you can see a new
channel being created using the message
channel.message
channel constructor.
...And 3 more matches
RTCDataChannel.onclose - Web APIs
the rtcdata
channel.onclose property is an eventhandler which specifies a function to be called by the browser when the close event is received by the rtcdata
channel.
... this is a simple event which indicates that the data
channel has closed down.
... syntax rtcdata
channel.onclose = function; value a function which the browser will call to handle the close event.
...And 3 more matches
RTCDataChannel.onerror - Web APIs
the rtcdata
channel.onerror property is an eventhandler which specifies a function to be called when the error event is received.
... when an error occurs on the data
channel, the function receives as input an errorevent object describing the error which occurred.
... syntax rtcdata
channel.onerror = function; value a function which the browser will call to handle the error event when it occurs on the data
channel.
...And 3 more matches
RTCDataChannel.protocol - Web APIs
the read-only rtcdata
channel property protocol returns a domstring containing the name of the subprotocol in use.
... if no protocol was specified when the data
channel was created, then this property's value is "" (the empty string).
... the permitted values of this property are defined by the web site or app using the data
channel.
...And 3 more matches
RTCPeerConnection.ondatachannel - Web APIs
the rtcpeerconnection.ondata
channel property is an eventhandler which specifies a function which is called when the data
channel event occurs on an rtcpeerconnection.
... this event, of type rtcdata
channelevent, is sent when an rtcdata
channel is added to the connection by the remote peer calling createdata
channel().
... at the time this event is received, the rtcdata
channel it indicates may not yet actually be open.
...And 3 more matches
nsIResumableChannel
netwerk/base/public/nsiresumable
channel.idlscriptable this interface is meant to be implemented by the
channels that support resuming broken downloads (for example necko's html and ftp
channels).
... methods asyncopenat() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) open this
channel, and read starting at the specified offset.
... resumeat() prepare this
channel for resuming.
...And 2 more matches
nsIUploadChannel
netwerk/base/public/nsiupload
channel.idlscriptable a
channel may optionally implement this interface if it supports the notion of uploading a data stream.
... the upload stream may only be set prior to the invocation of asyncopen on the
channel.
... inherits from: nsisupports last changed in gecko 1.7 method overview void setuploadstream(in nsiinputstream astream, in acstring acontenttype, in long acontentlength); attributes attribute type description uploadstream nsiinputstream get the stream (to be) uploaded by this
channel.
...And 2 more matches
MediaTrackSettings.channelCount - Web APIs
the mediatracksettings dictionary's
channelcount property is an integer indicating how many audio
channel the mediastreamtrack is currently configured to have.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.
channelcount property you provided when calling either getusermedia() or mediastreamtrack.applyconstraints().
... if needed, you can determine whether or not this constraint is supported by checking the value of mediatracksupportedconstraints.
channelcount as returned by a call to mediadevices.getsupportedconstraints().
...And 2 more matches
MessageChannel.port1 - Web APIs
the port1 read-only property of the message
channel interface returns the first port of the message
channel — the port attached to the context that originated the
channel.
... syntax
channel.port1; value a messageport object, the first port of the
channel, that is the port attached to the context that originated the
channel.
... example in the following code block, you can see a new
channel being created using the message
channel() constructor.
...And 2 more matches
MessageChannel.port2 - Web APIs
the port2 read-only property of the message
channel interface returns the second port of the message
channel — the port attached to the context at the other end of the
channel, which the message is initially sent to.
... syntax
channel.port2; value a messageport object representing the second port of the
channel, the port attached to the context at the other end of the
channel.
... example in the following code block, you can see a new
channel being created using the message
channel.message
channel constructor.
...And 2 more matches
RTCDataChannel.binaryType - Web APIs
the property binarytype on the rtcdata
channel interface is a domstring which specifies the type of javascript object which should be used to represent binary data received on the rtcdata
channel.
... when a binary message is received on the data
channel, the resulting message event's messageevent.data property is an object of the type specified by the binarytype.
... syntax var type = adata
channel.binarytype; adata
channel.binarytype = type; value a domstring that can have one of these values: "blob" received binary messages' contents will be contained in blob objects.
...And 2 more matches
RTCDataChannel.negotiated - Web APIs
the read-only rtcdata
channel property negotiated indicates whether the rtcdata
channel's connection was negotiated by the web app (true) or by the webrtc layer (false).
... see creating a data
channel in using webrtc data
channels for further information about this property.
... syntax var negotiated = adata
channel.negotiated; value true if the rtcdata
channel's connection was negotiated by the web app itself; false if the negotiation was handled by the webrtc layer.
...And 2 more matches
RTCDataChannel.onclosing - Web APIs
the rtcdata
channel.onclosing property is an eventhandler which specifies a function to be called by the browser when the closing event is received by the rtcdata
channel.
... this is a simple event which indicates that the data
channel is being closed, that is, rtcdata
channel transitions to "closing" state.
... for example, after rtcdata
channel.close() was called but the underlying data transport might not have been closed yet.
...And 2 more matches
RTCDataChannel.onmessage - Web APIs
the rtcdata
channel.onmessage property stores an eventhandler which specifies a function to be called when the message event is fired on the
channel.
...this event is sent to the
channel when a message is received from the other peer.
... syntax rtcdata
channel.onmessage = function; value a function which the browser will call to handle the message event.
...And 2 more matches
RTCDataChannel.onopen - Web APIs
the rtcdata
channel.onopen property is an eventhandler which specifies a function to be called when the open event is fired; this is a simple event which is sent when the data
channel's underlying data transport—the link over which the rtcdata
channel's messages flow—is established or re-established.
... syntax rtcdata
channel.onopen = function; value a function which the browser will call to handle the open event.
... example this example adds a new data
channel to an existing rtcpeerconnection, mypeerconnection.
...And 2 more matches
RTCDataChannel.stream - Web APIs
the deprecated (and never part of the official specification) read-only rtcdata
channel property stream returns an id number (between 0 and 65,535) which uniquely identifies the rtcdata
channel.
... this id is set at the time the data
channel is created, either by the user agent (if rtcdata
channel.negotiated is false) or by the site or app script (if negotiated is true).
... this property has been replaced with the rtcdata
channel.id property.
...And 2 more matches
RTCPeerConnection: datachannel event - Web APIs
a data
channel event is sent to an rtcpeerconnection instance when an rtcdata
channel has been added to the connection, as a result of the remote peer calling rtcpeerconnection.createdata
channel().
... note: this event is not dispatched when the local end of the connection creates the
channel.
... bubbles no cancelable no interface rtcdata
channelevent event handler property ondata
channel examples this example sets up a function that handles data
channel events by gathering the information needed to communicate with the newly added rtcdata
channel and by adding event handlers for the events that occur on that
channel.
...And 2 more matches
nsIFTPChannel
the nsiftp
channel is an extension of nsisupports used to determine if a
channel is an ftp
channel, and offering additional information about the ftp
channel.
... you can determine if a
channel is an ftp
channel by checking to see if it implements this interface, by calling nsisupports.queryinterface() on it.
... netwerk/protocol/ftp/nsiftp
channel.idlscriptable please add a summary to this article.
... last changed in gecko 1.9 (firefox 3) inherits from: nsisupports attributes attribute type description lastmodifiedtime prtime the time at which the ftp
channel was last updated.
AudioBuffer.numberOfChannels - Web APIs
the numberof
channels property of the audiobuffer interface returns an integer representing the number of discrete audio
channels described by the pcm data stored in the buffer.
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); myarraybuffer.numberof
channels; value an integer.
... example // stereo var
channels = 2; // create an empty two second stereo buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this gives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.get
channeldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.numberof
channels); } specification sp...
...ecification status comment web audio apithe definition of 'numberof
channels' in that specification.
BroadcastChannel() - Web APIs
the broadcast
channel() constructor creates a new broadcast
channel and connects it to the underlying
channel.
... syntax
channel = new broadcast
channel(
channel); values
channel is a domstring representing the name of the
channel; there is one single
channel with this name for all browsing contexts with the same origin.
... example // create a new
channel listening to the "internal_notification"
channel.
... var bc = new broadcast
channel('internal_notification'); bc.postmessage('new listening connected!'); specifications specification status comment html living standardthe definition of 'broadcast
channel()' in that specification.
BroadcastChannel.onmessage - Web APIs
the broadcast
channel.onmessage event handler is a property that specifies the function to execute when a message event, of type messageevent, is received by this broadcast
channel.
... such an event is sent by the browser with a message broadcasted to the
channel.
... syntax
channel.onmessage = function; values function is the name of a user-defined function, without the () suffix or any parameters, or an anonymous function declaration, such as function(event) {...}.
...'${ev.data}'`); }; specifications specification status comment html living standardthe definition of 'broadcast
channel.onmessage' in that specification.
RTCDataChannel.bufferedAmountLowThreshold - Web APIs
the rtcdata
channel property bufferedamountlowthreshold is used to specify the number of bytes of buffered outgoing data that is considered "low." the default value is 0.
... bufferedamountlow events are not fired after the data
channel is closed.
... syntax var threshold = adata
channel.bufferedamountlowthreshold; adata
channel.bufferedamountlowthreshold = threshold; value the number of queued outgoing data bytes below which the buffer is considered to be "low." example in this snippet of code, bufferedamountlowthreshold is set to 64kb, and a handler for the bufferedamountlow event is established by setting the rtcdata
channel.onbufferedamountlow property to a function which should send more data into the buffer by calling send().
... var dc = peerconnection.createdata
channel("file transfer"); dc.bufferedamountlowthreshold = 65535; dc.onbufferedamountlow = function() { /* use send() to queue more data to be sent */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdata
channel.bufferedamountlowthreshold' in that specification.
RTCDataChannel.maxPacketLifeTime - Web APIs
the read-only rtcdata
channel property maxpacketlifetime returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data
channel was created, or null.
... syntax var lifetime = adata
channel.maxpacketlifetime; value the number of milliseconds over which the browser may continue to attempt to transmit the message until it either succeeds or gives up.
... if not set when rtcpeerconnection.createdata
channel() was called to create the data
channel, this value is null.
... example // tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdata
channel.maxpacketlifetime' in that specification.
RTCDataChannel.maxRetransmits - Web APIs
the read-only rtcdata
channel property maxretransmits returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data
channel was created, or null, which indicates that there is no maximum.
... this can only be set when the rtcdata
channel is created by calling rtcpeerconnection.createdata
channel(), using the maxretransmits field in the specified options.
... syntax var tries = adata
channel.maxretransmits; value the maximum number of times the browser will try to retransmit a message before giving up, or null if not set when rtcpeerconnection.createdata
channel() was called.
... example // tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdata
channel.maxretransmits' in that specification.
RTCDataChannel.ordered - Web APIs
the read-only rtcdata
channel property ordered indicates whether or not the data
channel guarantees in-order delivery of messages; the default is true, which indicates that the data
channel is indeed ordered.
... this is set when the rtcdata
channel is created, by setting the ordered property on the rtcdata
channelinit object passed as rtcpeerconnection.createdata
channel()'s options parameter.
... syntax var ordered = adata
channel.ordered; a boolean value which is true if in-order delivery is guaranteed and is otherwise false.
... example var pc = new rtcpeerconnection(); var dc = pc.createdata
channel("my
channel"); if (!dc.ordered) { // handle unordered messaging } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdata
channel.ordered' in that specification.
nsIChannelPolicy
netwerk/base/public/nsi
channelpolicy.idlscriptable a container for policy information to be used during
channel creation.
... 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface exists to allow the content policy mechanism to function properly during
channel redirects.
...
channels can be created with this interface placed in the property bag and upon redirect, the interface can be transferred from the old
channel to the new
channel.
nsIUploadChannel2
netwerk/base/public/nsiupload
channel2.idlscriptable please add a summary to this article.
....0 66 introduced gecko 1.9.2 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview void explicitsetuploadstream(in nsiinputstream astream, in acstring acontenttype, in long long acontentlength, in acstring amethod, in boolean astreamhasheaders); methods explicitsetuploadstream() sets a stream to be uploaded by this
channel with the specified content-type and content-length header values.
... void explicitsetuploadstream( in nsiinputstream astream, in acstring acontenttype, in long long acontentlength, in acstring amethod, in boolean astreamhasheaders ); parameters astream the stream to be uploaded by this
channel.
BroadcastChannel.close() - Web APIs
the broadcast
channel.close() terminates the connection to the underlying
channel, allowing the object to be garbage collected.
... this is a necessary step to perform as there is no other way for a browser to know that this
channel is not needed anymore.
... syntax var str =
channel.close(); example // connect to a
channel var bc = new broadcast
channel('test_
channel'); // more operations (like postmessage, …) // when done, disconnect from the
channel bc.close(); specifications specification status comment html living standardthe definition of 'broadcast
channel.close()' in that specification.
BroadcastChannel: message event - Web APIs
the message event is fired on a broadcast
channel object when a message arrives on that
channel.
...on id="broadcast-message" type="button">broadcast message</button> body { border: 1px solid black; padding: .5rem; height: 150px; font-family: "fira sans", sans-serif; } h1 { font: 1.6em "fira sans", sans-serif; margin-bottom: 1rem; } textarea { padding: .2rem; } label, br { margin: .5rem 0; } button { vertical-align: top; height: 1.5rem; } const
channel = new broadcast
channel('example-
channel'); const messagecontrol = document.queryselector('#message'); const broadcastmessagebutton = document.queryselector('#broadcast-message'); broadcastmessagebutton.addeventlistener('click', () => {
channel.postmessage(messagecontrol.value); }) receiver 1 <h1>receiver 1</h1> <div id="received"></div> body { border: 1px solid black; padding: .
...5rem; height: 100px; font-family: "fira sans", sans-serif; } h1 { font: 1.6em "fira sans", sans-serif; margin-bottom: 1rem; } const
channel = new broadcast
channel('example-
channel');
channel.addeventlistener('message', (event) => { received.textcontent = event.data; }); receiver 2 <h1>receiver 2</h1> <div id="received"></div> body { border: 1px solid black; padding: .5rem; height: 100px; font-family: "fira sans", sans-serif; } h1 { font: 1.6em "fira sans", sans-serif; margin-bottom: 1rem; } const
channel = new broadcast
channel('example-
channel');
channel.addeventlistener('message', (event) => { received.textcontent = event.data; }); result specifications specification status html living standard living standa...
BroadcastChannel.name - Web APIs
the read-only broadcast
channel.name property returns a domstring, which uniquely identifies the given
channel with its name.
... this name is passed to the broadcast
channel() constructor at creation time and is therefore read-only.
... syntax var str =
channel.name; examples // connect to a
channel var bc = new broadcast
channel('test_
channel'); // more operations (like postmessage, …) // log the
channel name to the console console.log(bc.name); // "test_
channel" // when done, disconnect from the
channel bc.close(); specifications specification status comment html living standardthe definition of 'broadcast
channel.name' in that specification.
BroadcastChannel.postMessage() - Web APIs
the broadcast
channel.postmessage() sends a message, which can be of any kind of object, to each listener in any browsing context with the same origin.
... the message is transmitted as a message event targeted at each broadcast
channel bound to the
channel.
... syntax var str =
channel.postmessage(object); specifications specification status comment html living standardthe definition of 'broadcast
channel.postmessage()' in that specification.
MediaTrackSupportedConstraints.channelCount - Web APIs
the mediatracksupportedconstraints dictionary's
channelcount property is a read-only boolean value which is present (and set to true) in the object returned by mediadevices.getsupportedconstraints() if and only if the user agent supports the
channelcount constraint.
... syntax
channelcountconstraintsupported = supportedconstraintsdictionary.
channelcount; value this property is present in the dictionary (and its value is always true) if the user agent supports the
channelcount constraint.
... example html content <div id="result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().
channelcount) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and streamsthe definition of '
channelcount' in that specification.
RTCDataChannel: bufferedamountlow event - Web APIs
a bufferedamountlow event is sent to an rtcdata
channel when the number of bytes currently in the outbound data transfer buffer falls below the threshold specified in bufferedamountlowthreshold.
... bubbles no cancelable no interface event event handler property onbufferedamountlow examples this example sets up a handler for bufferedamountlow to request more data any time the data
channel's buffer falls below the number of bytes specified by bufferedamountlowthreshold, which we have set to 65536.
... let pc = new rtcpeerconnection(); let dc = pc.createdata
channel("sendfile"); let source = /* source data object */ dc.bufferedamountlowthreshold = 65536; pc.addeventlistener("bufferedamountlow", ev => { if (source.position <= source.length) { dc.send(source.readfile(65536)); } }, false); after creating the rtcpeerconnection, this calls rtcpeerconnection.createdata
channel() to create the data
channel.
RTCDataChannel: close event - Web APIs
the close event is sent to the onclose event handler on an rtcdata
channel instance when the data transport being used for the data
channel has closed.
... before any further data can be transferred using rtcdata
channel, a new data
channel instance must be created.
... bubbles no cancelable no interface event event handler property rtcdata
channel.onclose examples this example sets up a handler for the close event for the rtcdata
channel named dc; its responsibility in this example is to update user interface elements to reflect that there is no longer an ongoing call, and to allow a new call to be started.
RTCDataChannel: message event - Web APIs
the webrtc message event is sent to the onmessage event handler on an rtcdata
channel object when a message has been received from the remote peer.
... examples for a given rtcdata
channel, dc, created for a peer connection using its createdata
channel() method, this code sets up a handler for incoming messages and acts on them by adding the data contained within the message to the current document as a new <p> (paragraph) element.
... you can also use an rtcdata
channel object's onmessage event handler property to set the event handler: dc.onmessage = ev => { let newparagraph = document.createelement("p"); let textnode = document.createtextnode(event.data); newparagraph.appendchild(textnode); document.body.appendchild(newparagraph); } specifications specification status comment webrtc 1.0: real-time communication between brow...
RTCDataChannel: open event - Web APIs
the webrtc open event is sent to an rtcdata
channel object's onopen event handler when the underlying transport used to send and receive the data
channel's messages is opened or re-opened.
... bubbles no cancelable no interface rtcdata
channelevent event handler property onopen examples this example adds to the rtcdata
channel dc a handler for the open event that adjusts the user interface to indicate that a chat window is ready to be used after a connection has been established.
... dc.addeventlistener("open", ev => { messageinputbox.disabled = false; sendmessagebutton.disabled = false; disconnectbutton.disabled = false; connectbutton.disabled = true; messageinputbox.focus(); }, false); this can also be done by directly setting the value of the
channel's onopen event handler property.
RTCDataChannel.reliable - Web APIs
the read-only rtcdata
channel property reliable indicates whether or not the data
channel is reliable.
...use rtcdata
channel.ordered instead in any new code, and update existing code as soon as possible.
... syntax var reliable = adata
channel.reliable; value true if the rtcdata
channel's connection is reliable; false if it isn't.
XMLHttpRequest.channel - Web APIs
xmlhttprequest.
channel is an nsi
channel that used by the object when performing the request.
... this is null if the
channel hasn't been created yet.
... in the case of a multi-part request, this is the initial
channel, not the different parts in the multi-part request.
nsIWebSocketChannel
nsiwebsocket
channel netwerk/protocol/websocket/nsiwebsocket
channel.idlscriptable provides support for websocket
channels.
...to create an instance, use: var websocket
channel = components.classes["@mozilla.org/????????????????????????????"] .createinstance(components.interfaces.nsiwebsocket
channel); method overview void asyncopen(in nsiuri auri, in acstring aorigin, in nsiwebsocketlistener alistener, in nsisupports acontext); void close(in unsigned short acode, in autf8string areason); void sendbinarymsg(in acstring amsg); void sendmsg(in autf8string amsg); attributes attribute type description extensions acstring sec-web...
BroadcastChannel: messageerror event - Web APIs
the messageerror event is fired on a broadcast
channel object when a message arrives on the
channel that can't be deserialized.
... bubbles no cancelable no interface messageevent event handler property onmessageerror examples this code uses addeventlistener to listen for messages and errors: const
channel = new broadcast
channel('example-
channel');
channel.addeventlistener('message', (event) => { received.textcontent = event.data; });
channel.addeventlistener('messageerror', (event) => { console.error(event); }); the same, but using the onmessage and onmessageerror event handler properties: const
channel = new broadcast
channel('example-
channel');
channel.onmessage = (event) => { received.textcontent = event.data; };
channel.onmessageerror = (event) => { console.log(event); }; specifications specification status html living standar...
RTCDataChannel: error event - Web APIs
a webrtc error event is sent to an rtcdata
channel object's onerror error handler when an error occurs on the data
channel.
... you can also set up an event handler for error events using the rtcdata
channel interface's onerror event handler property: dc.onerror = ev => { const err = ev.error; /* ...
BroadcastChannel.onmessageerror - Web APIs
the onmessageerror event handler of the broadcast
channel interface is an eventlistener, called whenever an messageevent of type messageerror is fired on the broadcast
channel instance — that is, when it receives a message that cannot be deserialized.
Index - Web APIs
105 audiobuffer.copyfrom
channel() api, audio, audiobuffer, copying, frames, method, reference, samples, web audio, web audio api, copy, copyfrom
channel, sound the copyfrom
channel() method of the audiobuffer interface copies the audio sample data from the specified
channel of the audiobuffer to a specified float32array.
... 106 audiobuffer.copyto
channel() api, audio, audiobuffer, method, reference, web audio api, copyto
channel the copyto
channel() method of the audiobuffer interface copies the samples to the specified
channel of the audiobuffer, from the source array.
... 108 audiobuffer.get
channeldata() api, audiobuffer, method, reference, web audio api the get
channeldata() method of the audiobuffer interface returns a float32array containing the pcm data associated with the
channel, defined by the
channel parameter (with 0 representing the first
channel).
...And 115 more matches
Basic concepts behind Web Audio API - Web APIs
several sources — with different types of
channel layout — are supported even within a single context.
...
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.
... this is called
channel notation.
...And 49 more matches
Experimental features in Firefox
release
channel version added enabled by default?
... release
channel version added enabled by default?
... release
channel version added enabled by default?
...And 36 more matches
nsIIOService
components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); method overview boolean allowport(in long aport, in string ascheme); acstring extractscheme(in autf8string urlstring); unsigned long getprotocolflags(in string ascheme); nsiprotocolhandler getprotocolhandler(in string ascheme); nsi
channel new
channel(in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); obsolete since gecko 48 nsi
channel new
channel2(in autf8string aspec, in string aorigincharset, in nsiuri abaseuri, in nsidomnode aloadingnode, in nsiprincipal aloadingprincipal, in nsiprincipal atriggeringprincipal, in uint32_t asecurityflags, in uint32_t acontentpolicytype); nsi
channel new
channelfro...
...muri(in nsiuri auri); obsolete since gecko 48 nsi
channel new
channelfromuri2(in nsiuri auri, in nsidomnode aloadingnode, in nsiprincipal aloadingprincipal, in nsiprincipal atriggeringprincipal, in unsigned long asecurityflags, in unsigned long acontentpolicytype); nsi
channel new
channelfromuriwithloadinfo(in nsiuri auri, in nsiloadinfo aloadinfo); nsi
channel new
channelfromuriwithproxyflags2(in nsiuri auri, in nsiuri aproxyuri, in uint32_t aproxyflags,in nsidomnode aloadingnode, in nsiprincipal aloadingprincipal, in nsiprincipal atriggeringprincipal, in uint32_t asecurityflags, in uint32_t acontentpolicytype); nsiuri newfileuri(in nsifile afile); nsiuri newuri(in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); attributes ...
... new
channel() obsolete since gecko 48 a shortcut method to avoid repeated calls of newuri() and new
channelfromuri().
...And 31 more matches
Index
188 imgiencoder interfaces, interfaces:scriptable, needshelp, xpcom, xpcom interface reference possible values for input format (note that not all image formats support saving alpha
channels): 189 imgiloader interfaces, interfaces:scriptable, needscontent, xpcom api reference, xpcom interface reference implemented by @mozilla.org/image/loader;1 as a service: 190 imgirequest interfaces, interfaces:scriptable, needscontent cancels this request as in nsirequest.cancel(); further, also nulls out decoderobserver so it gets no further notification...
... 224 mozithirdpartyutil interfaces, interfaces:scriptable, xpcom, xpcom interface reference determine whether the given
channel and its content window hierarchy is third party.
... 331 nsiapplicationcache
channel dom, interfaces, interfaces:scriptable, offline_resources, xpcom, xpcom interface reference a shortcut method to mark the cache item of this
channel as 'foreign'.
...And 24 more matches
Digital audio concepts - Web media technologies
the position of each audio source within the audio signal is called a
channel.
... each
channel contains a sample indicating the amplitude of the audio being produced by that source at a given moment in time.
...each of these is represented by one
channel, and the number of
channels contained in the audio signal is called the
channel count.
...And 23 more matches
Necko Architecture
nsiioservice acts as the central point of access to urls and
channels (nsi
channel) in necko.
... handlers &
channels nsi
channel provides a data access interface which allows you to read or write data from or to a uri.
... there is a 1-to-1 relationship between uris and
channels (if you go so far as to create a
channel from a uri, which is not required if all you need is a parsed representation of a uri string).
...And 20 more matches
Getting Started with Chat
note that on 2nd march 2020, mozilla moved away from irc to matrix for its public
channels, the irc server was shut down.
...for example, "ashughes: good morning!" every
channel has its own topic.
... mozilla's
channels are most active between 9am and 7pm pst monday to friday, excluding us holidays.
...And 17 more matches
WebRTC API - Web APIs
once a connection has been established and opened using rtcpeerconnection, media streams (mediastreams) and/or data
channels (rtcdata
channels) can be added to the connection.
... you can also use the connection between two peers to exchange arbitrary binary data using the rtcdata
channel interface.
... this can be used for back-
channel information, metadata exchange, game status packets, file transfers, or even as a primary
channel for data transfer.
...And 16 more matches
Web audio codec guide - Web media technologies
the effect of source audio format and contents on the encoded audio quality and size feature effect on quality effect on size
channel count the number of
channels affects only the perception of directionality, not the quality.
... each
channel may substantially increase the encoded audio size, depending on contents and encoder settings.
... maximum number of
channels the audio delivered to each speaker in a sound system is provided by one audio
channel in a stream.
...And 16 more matches
Creating Sandboxed HTTP Connections
to create an nsiuri from an string, we use the newuri method of nsiioservice: // the io service var ioservice = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); // create an nsiuri var uri = ioservice.newuri(myurlstring, null, null); once the nsiuri has been created, a nsi
channel can be generated from it using nsiioservice's new
channelfromuri method: // get a
channel for that nsiuri var
channel = ioservice.new
channelfromuri(uri); to initiate the connection, the asyncopen method is called.
...
channel.asyncopen(listener, null); http notifications the above mentioned listener is a nsistreamlistener, which gets notified about events such as http redirects and data availability.
... on
channelredirect - when a redirect happens, a new nsi
channel is created, and both the old and new ones are passed in as arguments.
...And 14 more matches
Application cache implementation overview
loading a top level document from offline cache this happens in nshttp
channel::opencacheentry().
... all top level document loading (navigation)
channels are set chooseapplicationcache flag, which happens in nsdocshell::douriload().
...
channels having that flag set are searching for nsiapplicationcache object prior inspecting normal http cache.
...And 13 more matches
Background audio processing using AudioWorklet - Web APIs
fundamentally, the audio for a single audio
channel (such as the left speaker or the subwoofer, for example) is represented as a float32array whose values are the individual audio samples.
... by specification, each block of audio your process() function receives contains 128 frames (that is, 128 samples for each
channel), but it is planned that this value will change in the future, and may in fact vary depending on circumstances, so you should always check the array's length rather than assuming a particular size.
... each input can have a number of
channels.
...And 13 more matches
Redis Tips
check this out: publish subscribe unsubscribe psubscribe punsubscribe publish publishes a message to a
channel.
... you get to make up names of
channels on the fly just like variable names.
... subscribe and unsubscribe attach and remove listeners to or from a
channel.
...And 10 more matches
mozIThirdPartyUtil
netwerk/base/public/mozithirdpartyutil.idlscriptable utility functions for determining whether a given uri,
channel, or window hierarchy is third party with respect to a known uri.
... 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview boolean isthirdparty
channel(in nsi
channel a
channel, [optional] in nsiuri auri); boolean isthirdpartyuri(in nsiuri afirsturi, in nsiuri aseconduri); boolean isthirdpartywindow(in nsidomwindow awindow, [optional] in nsiuri auri); methods isthirdparty
channel() determine whether the given
channel and its content window hierarchy is third party.
... this is done as follows: if a
channel is an nsihttp
channel and has the 'forceallowthirdpartycookie' property set, then: if auri is null, return false.
...And 10 more matches
Multiple Firefox profiles
web developers might want a secondary profile for testing websites, apps, or other projects on different firefox
channels.
...while using the nightly
channel, you may encounter some add-ons that have become temporarily incompatible with new api changes, until the add-on developer has a chance to update them.
... available browser development
channels there are four available browser
channels, each at a different level of stability and development.
...And 9 more matches
nsICookieService
method overview string getcookiestring(in nsiuri auri, in nsi
channel a
channel); string getcookiestringfromhttp(in nsiuri auri, in nsiuri afirsturi, in nsi
channel a
channel); void setcookiestring(in nsiuri auri, in nsiprompt aprompt, in string acookie, in nsi
channel a
channel); void setcookiestringfromhttp(in nsiuri auri, in nsiuri afirsturi, in nsiprompt aprompt, in string acookie, in string aservertime, in nsi
channel a
channel); att...
... string getcookiestring( in nsiuri auri, in nsi
channel a
channel ); parameters auri the uri of the document for which cookies are being queried.
... a
channel the
channel used to load the document.
...And 9 more matches
nsIProgressEventSink
netwerk/base/public/nsiprogresseventsink.idlscriptable this interface is used to asynchronously convey
channel status and progress information that is generally not critical to the processing of the
channel.
... inherits from: nsisupports last changed in gecko 1.7 this interface is used to asynchronously convey
channel status and progress information that is generally not critical to the processing of the
channel.
...an implementation of this interface can be passed to a
channel via the
channel's notificationcallbacks attribute.
...And 9 more matches
Setting HTTP request headers
you can add your own http headers to any request the application makes, whether the request is initiated by your code explicitly opening an http
channel, because of xmlhttprequest activity, an <img> element in content, or even from css.
... http
channels when you deal with http requests and responses, typically you are doing this with an nsihttp
channel.
... the nsihttp
channel interface has a number of properties and methods, but the method that is of interest to us is setrequestheader.
...And 9 more matches
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
the code assumes that there's a signaling
channel class defined that is used to communicate with the signaling server.
... create the signaling and peer connections first, the signaling
channel needs to be opened and the rtcpeerconnection needs to be created.
... const constraints = { audio: true, video: true }; const config = { iceservers: [{ urls: "stun:stun.mystunserver.tld" }] }; const selfvideo = document.queryselector("video.selfview"); const remotevideo = document.queryselector("video.remoteview"); const signaler = new signaling
channel(); const pc = new rtcpeerconnection(config); this code also gets the <video> elements using the classes "selfview" and "remoteview"; these will contain, respectively, the local user's self-view and the view of the incoming stream from the remote peer.
...And 9 more matches
WebGL constants - Web APIs
used in multi-sampling alpha
channels.
... webgl_compressed_texture_etc constant name value description compressed_r11_eac 0x9270 one-
channel (red) unsigned format compression.
... compressed_signed_r11_eac 0x9271 one-
channel (red) signed format compression.
...And 8 more matches
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
douriload() creates a
channel, massages it to have the right post data, load flags, cache key, referrer, etc.
... it then passes the
channel to do
channelload, which does some more flag massaging and then calls into the uriloader.
... nsuriloader::openuri gets a
channel to open, a boolean indicating whether this load is the result of a link click, and an nsisupports "window context" (the docshell triggering the load, actually, but in drag and heavy makeup).
...And 7 more matches
CSS values and units - Learn web development
the standard color system available in modern computers is 24 bit, which allows the display of about 16.7 million distinct colors via a combination of different red, green and blue
channels with 256 different values per
channel (256 x 256 x 256 = 16,777,216.) let's have a look at some of the ways in which we can specify colors in css.
...each pair of values represents one of the
channels — red, green and blue — and allows us to specify any of the 256 available values for each (16 x 16 = 256.) these values are a bit more complex and less easy to understand, but they are a lot more versatile than keywords — you can use hex values to represent any color you want to use in your color scheme.
...an rgb value is a function — rgb() — which is given three parameters that represent the red, green, and blue
channel values of the colors, in much the same way as hex values.
...And 7 more matches
nsICookiePermission
last changed in gecko 1.9 (firefox 3) inherits from: nsisupports method overview nscookieaccess canaccess(in nsiuri auri, in nsi
channel a
channel); boolean cansetcookie(in nsiuri auri, in nsi
channel a
channel, in nsicookie2 acookie, inout boolean aissession, inout print64 aexpiry); nsiuri getoriginatinguri(in nsi
channel a
channel); void setaccess(in nsiuri auri, in nscookieaccess aaccess); constants constant value description access_default 0 nscookieaccess's access default value access_allow 1 nscookieaccess's access allow value access_deny 2 nscookieaccess's access deny value access_session 8 additio...
... methods canaccess() tests whether or not the given uri/
channel may access the cookie database, either to set or get cookies.
... nscookieaccess canaccess( in nsiuri auri, in nsiuri afirsturi, obsolete since gecko 1.9 in nsi
channel a
channel ); parameters auri the uri trying to access cookies.
...And 7 more matches
AudioWorkletProcessor.process - Web APIs
important: currently, audio data blocks are always 128 frames long—that is, they contain 128 32-bit floating-point samples for each of the inputs'
channels.
... syntax var isactivelyprocessing = audioworkletprocessor.process(inputs, outputs, parameters); parameters inputs an array of inputs connected to the node, each item of which is, in turn, an array of
channels.
... each
channel is a float32array containing 128 samples.
...And 7 more matches
Key Values - Web APIs
keyboardevent.key value description virtual keycode windows mac linux android "
channeldown" switches to the previous
channel.
... appcommand_media_
channel_down qt::key_
channeldown (0x01000119) keycode_
channel_down (167) "
channelup" switches to the next
channel.
... appcommand_media_
channel_up qt::key_
channelup (0x01000118) keycode_
channel_up (166) "mediafastforward" [2] starts, continues, or increases the speed of fast forwarding the media.
...And 7 more matches
Introducing the Audio API extension - Archive of obsolete content
this event has the following attributes: moz
channels: number of
channels mozsamplerate: sample rate per second mozframebufferlength: number of samples collected in all
channels this information is needed later to decode the audio data stream.
... the following example extracts the data from an audio element: <!doctype html> <html> <head> <title>javascript metadata example</title> </head> <body> <audio id="audio-element" src="song.ogg" controls="true" style="width: 512px;"> </audio> <script> function loadedmetadata() {
channels = audio.moz
channels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> the mozaudioavailable event as the audio is played, sample data is made available to the audio layer and the audio buffer (size defined in ...
...it's important to note that the samples are not separated by
channels; they are all delivered together.
...And 6 more matches
Necko walkthrough
nsdocshell as an example client of the nsihttp
channel api nsdocshell::loaduri(string) create nsiuri from string nsdocshell::loaduri(nsiuri) creates 2 nsiinputstream for read response from; passes them with uri to ...
... nsdocshell::internalload nsdocshell::douriload opens the nsi
channel for the uri (ns_new
channel) if "http:", it will be an nsihttp
channel nsdocshell::do
channelload nsuriloader::openuri passes an nsistreamlistener pointer, 'loader' to nsuriloader::open
channel - it creates an nsdocumentopeninfo object, which implements nsistreamlistener, i.e.
... has onstartrequest, onstoprequest, ondataavailable, the three functions in which
channel responses are received asynchronously.
...And 6 more matches
RTCPeerConnection - Web APIs
this happens whenever the aggregate state of the connection changes.ondata
channel the rtcpeerconnection.ondata
channel property is an eventhandler which specifies a function which is called when the data
channel event occurs on an rtcpeerconnection.
... this event, of type rtcdata
channelevent, is sent when an rtcdata
channel is added to the connection by the remote peer calling createdata
channel().onicecandidatethe rtcpeerconnection property onicecandidate property is an eventhandler which specifies a function to be called when the icecandidate event occurs on an rtcpeerconnection instance.
...connection interface.ontrack the rtcpeerconnection property ontrack is an eventhandler which specifies a function to be called when the track event occurs, indicating that a track has been added to the rtcpeerconnection.methodsalso inherits methods from: eventtargetaddicecandidate()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().addstream() the obsolete rtcpeerconnection method addstream() adds a mediastream as a local source of audio or video.
...And 6 more matches
SVGFEDisplacementMapElement - Web APIs
270" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="346" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfedisplacementmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_
channel_unknown 0 the type is not one of predefined types.
... svg_
channel_r 1 corresponds to the r value.
... svg_
channel_g 2 corresponds to the g value.
...And 6 more matches
Tabbed browser - Archive of obsolete content
updated example is in section below this observe: function (subject, topic, data) { if (topic == "http-on-modify-request") { subject.queryinterface(components.interfaces.nsihttp
channel); var url = subject.uri.spec; /* url being requested.
... you might want this for something else */ var browser = this.getbrowserfrom
channel(subject); if (browser != null) { /* do something */ } } }, getbrowserfrom
channel: function (a
channel) { try { var notificationcallbacks = a
channel.notificationcallbacks ?
... a
channel.notificationcallbacks : a
channel.loadgroup.notificationcallbacks; if (!notificationcallbacks) return null; var domwin = notificationcallbacks.getinterface(components.interfaces.nsidomwindow); return gbrowser.getbrowserfordocument(domwin.top.document); } catch (e) { dump(e + "\n"); return null; } } getting the browser that fires the http-on-modify-request notification (example code updated for loadcontext) here an example of the previous section is shown.
...And 5 more matches
What is RSS - Archive of obsolete content
for example: <?xml version="1.0"?> <rss version="2.0"> <
channel> <title>example news site</title> <description>this is an example news site.</description> <lastbuilddate>wed, 27 jul 2005 00:30:30 -0700</lastbuilddate> <link>http://news.example.com/</link> <item> <title>news flash: i like bread</title> <guid ispermalink="false">4d4a0a12-f188-4c97-908b-eea27213c2fe</guid> <pubdate>wed, ...
...>tue, 19 jul 2005 04:32:51 -0700</pubdate> <link>http://news.example.com/artcle/553</link> </item> <item> <title>fire is hot</title> <guid ispermalink="false">c1795324-d5ea-44fa-95b1-b5ce2090d4f1</guid> <pubdate>sun, 15 may 2005 13:02:08 -0700</pubdate> <link>http://news.example.com/artcle/552</link> </item> </
channel> </rss> bloggers use rss to provide everyone with a list of their newest blog posts.
... for example: <?xml version="1.0"?> <rss version="2.0"> <
channel> <title>joe blow's blog</title> <description>this is the weblog of joe blow</description> <lastbuilddate>sun, 15 may 2005 13:02:08 -0500</lastbuilddate> <link>http://joe-blow.example.net/</link> <item> <title>i be blogging...</title> <guid>http://joe-blow.example.net/log/21</guid> <pubdate>sun, 15 may 2005 13:02:08 -0500</pubdate> <link>http://joe-blow.example.net/log/21</link> </item> <item> <title>i am so smrt</title> <guid>http://joe-blow.example.net/log/20</guid> <pubdate>sat, 14 may 2005 22:19:18 -0500</pubdate> <link>http://joe-blow.example.net/log/20</link> </item...
...And 5 more matches
AudioNode - Web APIs
each input and output has a given amount of
channels.
... for example, mono audio has one
channel, while stereo audio has two
channels.
... the web audio api will up-mix or down-mix the number of
channels as required; check the web audio spec for details.
...And 5 more matches
BaseAudioContext.createBuffer() - Web APIs
syntax var buffer = baseaudiocontext.createbuffer(numof
channels, length, samplerate); parameters note: for an in-depth explanation of how audio buffers work, and what these parameters mean, read audio buffers: frames, samples and
channels from our basic concepts guide.
... numof
channels an integer representing the number of
channels this buffer should have.
... the default value is 1, and all user agents must support at least 32
channels.
...And 5 more matches
WEBGL_compressed_texture_etc - Web APIs
ext.compressed_r11_eac one-
channel (red) unsigned format compression.
... ext.compressed_signed_r11_eac one-
channel (red) signed format compression.
... ext.compressed_rg11_eac two-
channel (red and green) unsigned format compression.
...And 5 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
18 alpha (alpha
channel) alpha, alpha
channel, drawing, glossary, graphics, translucency, translucent, transparency, transparent, webgl, webxr,
channel, color, pixel colors are represented in digital form as a collection of numbers, each representing the strength or intensity level of a given component of the color.
... each of these components is called a
channel.
... in a typical image file, the color
channels describe how much red, green, and blue are used to make up the final color.
...And 4 more matches
NetUtil.jsm
method overview nsiasyncstreamcopier asynccopy(nsiinputstream asource, nsioutputstream asink, [optional] acallback) void asyncfetch(asource, acallback) nsi
channel new
channel(awhattoload, [optional] aorigincharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorigincharset, [optional] nsiuri abaseuri) string readinputstreamtostring(ainputstream, acount, aoptions) attributes attribute type description ioservice nsiioservice returns a reference to nsiioservice.
... note: prior to gecko 2, the input source was required to be specified as an nsi
channel.
...this may be specified as an nsiuri, nsifile, nsi
channel, nsiinputstream or as a string specifying the url to open.
...And 4 more matches
Observer Notifications
both are passed an nsihttp
channel as the subject parameter.
...the
channel is available to allow you to modify headers and such.
... http-on-opening-request similar to http-on-modify-request, but called earlier (synchronously during the
channel's asyncopen() call), and some
channel attributes (proxyinfo) may be missing.
...And 4 more matches
imgILoader
a.org/image/loader;1"] .getservice(components.interfaces.imgiloader); method overview imgirequest loadimage(in nsiuri auri, in nsiuri ainitialdocumenturl, in nsiuri areferreruri, in nsiprincipal aloadingprincipal, in nsiloadgroup aloadgroup, in imgidecoderobserver aobserver, in nsisupports acx, in nsloadflags aloadflags, in nsisupports cachekey, in imgirequest arequest, in nsi
channelpolicy
channelpolicy); imgirequest loadimagewith
channel(in nsi
channel a
channel, in imgidecoderobserver aobserver, in nsisupports cx, out nsistreamlistener alistener); boolean supportimagewithmimetype(in string mimetype); constants constant value description load_cors_anonymous 1 << 16 load_cors_use_credentials 1 << 17 methods loadimage() start the load and decode of an image.
... imgirequest loadimage( in nsiuri auri, in nsiuri ainitialdocumenturl, in nsiuri areferreruri, in nsiprincipal aloadingprincipal, in nsiloadgroup aloadgroup, in imgidecoderobserver aobserver, in nsisupports acx, in nsloadflags aloadflags, in nsisupports cachekey, in imgirequest arequest, in nsi
channelpolicy
channelpolicy ); parameters auri the uri to load.
...
channelpolicy return value loadimagewith
channel() start the load and decode of an image.
...And 4 more matches
nsIProtocolHandler
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview boolean allowport(in long port, in string scheme); nsi
channel new
channel(in nsiuri auri); nsiuri newuri(in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); attributes attribute type description defaultport long the default port is the port the protocol uses by default.
... uri_non_persistable 1<<10 loading
channels from this protocol has side-effects that make it unsuitable for saving to a local file.
... uri_does_not_return_data 1<<11
channels using this protocol never call ondataavailable() on the listener passed to asyncopen(), and therefore do not return any usable data.
...And 4 more matches
XPCOM Interface Reference
leselectablensiaccessiblestatechangeeventnsiaccessiblestatesnsiaccessibletablensiaccessibletablecellnsiaccessibletablechangeeventnsiaccessibletextnsiaccessibletextchangeeventnsiaccessibletreecachensiaccessiblevaluensiaccessiblewin32objectnsialertsservicensiannotationobservernsiannotationservicensiappshellnsiappshellservicensiappstartupnsiappstartup_mozilla_2_0nsiapplicationcachensiapplicationcache
channelnsiapplicationcachecontainernsiapplicationcachenamespacensiapplicationcacheservicensiapplicationupdateservicensiarraynsiasyncinputstreamnsiasyncoutputstreamnsiasyncstreamcopiernsiasyncverifyredirectcallbacknsiauthinformationnsiauthmodulensiauthpromptnsiauthprompt2nsiauthpromptadapterfactorynsiauthpromptcallbacknsiauthpromptprovidernsiauthpromptwrappernsiautocompletecontrollernsiautocompleteinputns...
...ompleteresultnsiautocompletesearchnsibadcertlistener2nsibidikeyboardnsibinaryinputstreamnsibinaryoutputstreamnsiblocklistpromptnsiblocklistservicensiboxobjectnsibrowserboxobjectnsibrowserhistorynsibrowsersearchservicensicrlinfonsicrlmanagernsicachensicachedeviceinfonsicacheentrydescriptornsicacheentryinfonsicachelistenernsicachemetadatavisitornsicacheservicensicachesessionnsicachevisitornsicaching
channelnsicancelablensicategorymanagernsi
channelnsi
channeleventsinknsi
channelpolicynsicharsetresolvernsichromeframemessagemanagernsichromeregistrynsiclassinfonsiclipboardnsiclipboardcommandsnsiclipboarddragdrophooklistnsiclipboarddragdrophooksnsiclipboardhelpernsiclipboardownernsicollectionnsicommandcontrollernsicommandlinensicommandlinehandlernsicommandlinerunnernsicomponentmanagernsicomponentregistrarn...
...miccontainernsieditornsieditorboxobjectnsieditordocshellnsieditorimesupportnsieditorloggingnsieditormailsupportnsieditorobservernsieditorspellchecknsieffectivetldservicensienumeratornsienvironmentnsierrorservicensieventlistenerinfonsieventlistenerservicensieventsourcensieventtargetnsiexceptionnsiextensionmanagernsiexternalhelperappservicensiexternalprotocolservicensiexternalurlhandlerservicensiftp
channelnsiftpeventsinknsifactorynsifavicondatacallbacknsifaviconservicensifeednsifeedcontainernsifeedelementbasensifeedentrynsifeedgeneratornsifeedpersonnsifeedprocessornsifeedprogresslistenernsifeedresultnsifeedresultlistenernsifeedtextconstructnsifilensifileinputstreamnsifileoutputstreamnsifilepickernsifileprotocolhandlernsifilespecnsifilestreamsnsifileurlnsifileutilitiesnsifileviewnsifocusmanagernsifo...
...And 4 more matches
AudioWorkletNodeOptions - Web APIs
output
channelcount optional an array defining the number of
channels for each output.
... for example, output
channelcount: [n, m] specifies the number of
channels in the first output to be n and the second output to be m.
...if the length of the output
channelcount array doesn't match numberofoutputs, an indexsizeerror will be thrown.
...And 4 more matches
BaseAudioContext.createScriptProcessor() - Web APIs
syntax var scriptprocessor = audioctx.createscriptprocessor(buffersize, numberofinput
channels, numberofoutput
channels); parameters buffersize the buffer size in units of sample-frames.
... numberofinput
channels integer specifying the number of
channels for this node's input, defaults to 2.
... numberofoutput
channels integer specifying the number of
channels for this node's output, defaults to 2.
...And 4 more matches
RTCDtlsTransport - Web APIs
a dtls transport is also used to provide information about sctp packets transmitted and received by an connection's data
channels.
... when not using bundle when the connection is created without using bundle, each rtp or rtcp component of each rtcrtptransceiver has its own rtcdtlstransport; that is, every rtcrtpsender and rtcrtpreceiver, has its own transport, and all rtcdata
channel objects share a transport dedicated to sctp.
...if the connection was created using max-compat mode, each transport is responsible for handling all of the communications for a given type of media (audio, video, or data
channel).
...And 4 more matches
Lifetime of a WebRTC session - Web APIs
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.
...since webrtc doesn’t live in a vacuum, there is likely other connectivity in play, so it makes sense to avoid having to add additional connection
channels for signaling if an existing one can be used.
... in order to exchange signaling information, you can choose to send json objects back and forth over a websocket connection, or you could use xmpp or sip over an appropriate
channel, or you could use xmlhttprequest over https with polling, or any other combination of technologies you can come up with.
...And 4 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
it may also include a fourth component: the alpha
channel (or opacity).
...the alpha
channel is specified by 0xaa; the lower this value is, the more translucent the color becomes.
...the alpha
channel is specified by 0xaa; the lower this value is, the more translucent the color becomes.
...And 4 more matches
Image file type and format guide - Web media technologies
these features include: support for different bit depths, indexed color, alpha
channels, and different pixel orders (by default, bmp is written from bottom-left corner toward the right and top, rather than from the top-left corner toward the right and bottom).
... greyscale with alpha n/a jpeg does not support an alpha
channel.
... true color with alpha n/a jpeg does not support an alpha
channel.
...And 4 more matches
Supporting per-window private browsing - Archive of obsolete content
erservice); os.addobserver(function (asubject, atopic, adata) { asubject.queryinterface(components.interfaces.nsisupportsprbool); // if another extension has not already canceled entering the private mode if (!asubject.data) { /* you should display some user interface here */ asubject.data = true; // cancel the operation } }, "last-pb-context-exiting", false); forcing a
channel into private mode usually, network
channels inherit the privacy status of the document that created them, which means that they work correctly most of the time.
... however, sometimes you need to adjust the privacy status on a
channel manually, for example, if you have created the
channel directly yourself.
... you can use the nsiprivatebrowsing
channel interface for this purpose.
...And 3 more matches
Implementing Download Resuming
the interface resuming is done using the nsiresumable
channel interface.
... the expected way to use it is this: for all downloads that happen, get the entityid from the
channel, and store it for later use.
... resuming a download in order to resume a download, you should create a
channel as usual (using nsiioservice).
...And 3 more matches
Hacking Tips
using ionmonkey spew (js shell) ionmonkey spew is extremely verbose (not as much as the infer spew), but you can filter it to focus on the list of compiled scripts or
channels, ionmonkey spew
channels can be selected with the ionflags environment variable, and compilation spew can be filtered with ionfilter.
... ionflags contains the names of each
channel separated by commas.
... the logs
channel produces 2 files in /tmp/, one (/tmp/ion.json) made to be used with iongraph (made by sean stangl) and another one (/tmp/ion.cfg) made to be used with c1visualizer.
...And 3 more matches
nsIZipWriter
to create an instance, use: var zipwriter = components.classes["@mozilla.org/zipwriter;1"] .createinstance(components.interfaces.nsizipwriter); method overview void addentry
channel(in autf8string azipentry, in prtime amodtime, in print32 acompression, in nsi
channel a
channel, in boolean aqueue); void addentrydirectory(in autf8string azipentry, in prtime amodtime, in boolean aqueue); void addentryfile(in autf8string azipentry, in print32 acompression, in nsifile afile, in boolean aqueue); void addentrystream(in autf8string azipentry, in prtime amodt...
... methods addentry
channel() adds data from a
channel to the zip file.
... if the operation is performed on the queue then the
channel will be opened asynchronously, otherwise the
channel must support being opened synchronously.
...And 3 more matches
AudioBuffer - Web APIs
if the audiobuffer has multiple
channels, they are stored in separate buffer.
... audiobuffer.numberof
channels read only returns an integer representing the number of discrete audio
channels described by the pcm data stored in the buffer.
... methods audiobuffer.get
channeldata() returns a float32array containing the pcm data associated with the
channel, defined by the
channel parameter (with 0 representing the first
channel).
...And 3 more matches
Intercepting Page Loads - Archive of obsolete content
the
channel is available to allow you to modify headers and such.
...headers are available on the
channel.
... the subject argument on the observe method is the nsihttp
channel object that corresponds to the http
channel being opened or already opened, depending on the topic.
...And 2 more matches
The life of an HTML HTTP request - Archive of obsolete content
necko (the network library) checks the url scheme (the first part of the url, http: in this case) and locates the correct nsiprotocolhandler (in this case nshttphandler) and asks it for a nsi
channel (nshttp
channel).
... the
channel represents the connection to the server, and is the source of the html data stream.
... (3) when data is starting to come from the webserver the nsi
channel calls the onstartrequest in the documenloader.
...And 2 more matches
XPCOM Stream Guide
am(); // returns nsioutputstream file nsfileoutputstream @mozilla.org/network/file-output-stream;1 nsifileoutputstream stream.init(file, ioflags, perm, behaviorflags); file nssafefileoutputstream @mozilla.org/network/safe-file-output-stream;1 nsisafefileoutputstream, nsifileoutputstream stream.init(file, ioflags, perm, behaviorflags);
channels have streams too any implementation of nsi
channel will have an input stream as well, but unless you own the
channel, you shouldn't try to read from the input stream.
... there are two ways of getting the input stream: by calling the
channel's .open() method for a synchronous read, or by calling the
channel's .asyncopen() method with an nsistreamlistener object.
... you can get an nsi
channel object from the io service's new
channel(spec, charset, baseuri) method or its .new
channelfromuri(uri) method.
...And 2 more matches
nsIDocShell
obsolete since gecko 1.9.2
channelisunsafe boolean find out if the currently loaded document came from a suspicious
channel (such as a jar
channel where the server-returned content type is not a known jar type).
... currentdocument
channel nsi
channel gets the
channel for the currently loaded document, if any.
... for a new document load, this will be the
channel of the previous document until after onlocationchange fires.
...And 2 more matches
nsIGlobalHistory3
method overview void adddocumentredirect(in nsi
channel aold
channel, in nsi
channel anew
channel, in print32 aflags, in boolean atoplevel); unsigned long geturigeckoflags(in nsiuri auri); void seturigeckoflags(in nsiuri auri, in unsigned long aflags); methods adddocumentredirect() notifies the history system that the page loading via aold
channel redirected to anew
channel.
... implementations should generally add the uri for aold
channel to history for link coloring, but are advised not to expose it in the history user interface.
...this function is preferred to nsiglobalhistory2.adduri() because it provides more information (including the redirect destination,
channels involved, and redirect flags) to the history implementation.
...And 2 more matches
nsIWebProgressListener
a document request supports the nsi
channel interface and its loadflags attribute includes the nsi
channel::load_document_uri flag.
... constant value description state_is_insecure 0x00000004 this flag indicates that the data corresponding to the request was received over an insecure
channel.
...this may mean that the request is being loaded as part of a page in which some content was received over an insecure
channel.
...And 2 more matches
nsIWebSocketListener
netwerk/protocol/websocket/nsiwebsocketlistener.idlscriptable implement this interface to receive websocket traffic events asynchronously after calling nsiwebsocket
channel.asyncopen().
...string amsg); void onmessageavailable(in nsisupports acontext, in autf8string amsg); void onserverclose(in nsisupports acontext, in unsigned short acode, in autf8string areason); void onstart(in nsisupports acontext); void onstop(in nsisupports acontext, in nsresult astatuscode); methods onacknowledge() called to acknowledge a message sent via nsiwebsocket
channel.sendmsg() or nsiwebsocket
channel.sendbinarymsg().
...no additional messages through onmessageavailable(), onbinarymessageavailable()() or onacknowledge()() will be delievered to the listener after onserverclose() is called, but outgoing messages can still be sent through the nsiwebsocket
channel connection.
...And 2 more matches
XPCOM Interface Reference by grouping
security this section contains apis for secure
channel communications system this section contains application level interfaces including calls to external support elements (such as device calls).
...mlhttprequesteventtarget favicon nsifavicondatacallback nsifaviconservice frame nsichromeframemessagemanager nsiframeloader nsiframeloaderowner nsiframemessagelistener nsiframemessagemanager interface nsijsxmlhttprequest jetpack nsijetpack nsijetpackservice offlinestorage nsiapplicationcache nsiapplicationcache
channel nsiapplicationcachecontainer nsiapplicationcachenamespace nsiapplicationcacheservice places nsiannotationobserver rss feed nsifeed nsifeedcontainer nsifeedelementbase nsifeedentry nsifeedgenerator nsifeedperson nsifeedprocessor nsifeedprogresslistener nsifeedresult nsifeedresultlistener nsifeedtextconstruct script ...
...wser dom nsiwebbrowser nsiwebbrowserpersist cache nsicache nsicachedeviceinfo nsicacheentrydescriptor nsicacheentryinfo nsicachelistener nsicachemetadatavisitor nsicacheservice nsicachesession nsicachevisitor nsicaching
channel nsiselectionimageservice chrome nsisearchengine nsisearchsubmission nsiwebbrowserchrome nsiwindowcreator nsiwindowmediator nsiwindowwatcher clipboard nsiclipboard nsiclipboardcommands nsiclipboarddragdrophooklist nsiclipboarddragdrophooks nsiclipboardhelper ...
...And 2 more matches
Mozilla
android-specific test suites there are several android-specific test suites that run on the firefox for android codebase: api change rules until further notice, the following rules govern api changes: application cache implementation overview this happens in nshttp
channel::opencacheentry().
... all top level document loading (navigation)
channels are set chooseapplicationcache flag, which happens in nsdocshell::douriload().
...
channels having that flag set are searching for nsiapplicationcache object prior inspecting normal http cache.
...And 2 more matches
AudioBufferSourceNode - Web APIs
f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="666" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">audiobuffersourcenode</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} an audiobuffersourcenode has no inputs and exactly one output, which has the same number of
channels as the audiobuffer indicated by its buffer property.
... if there's no buffer set—that is, if buffer is null—the output contains a single
channel of silence (every sample is 0).
... number of inputs 0 number of outputs 1
channel count defined by the associated audiobuffer constructor audiobuffersourcenode() creates and returns a new audiobuffersourcenode object.
...And 2 more matches
AudioNodeOptions - Web APIs
syntax var audionodeoptions = { "
channelcount" : 2, "
channelcountmode" : "max", "
channelinterpretation" : "discrete" } properties
channelcount optional represents an integer used to determine how many
channels are used when up-mixing and down-mixing connections to any inputs to the node.
... (see audionode.
channelcount for more information.) its usage and precise definition depend on the value of audionodeoptions.
channelcountmode.
...
channelcountmode optional represents an enumerated value describing the way
channels must be matched between the node's inputs and outputs.
...And 2 more matches
AudioProcessingEvent - Web APIs
the number of
channels is defined as a parameter, numberofinput
channels, of the factory method audiocontext.createscriptprocessor().
...the number of
channels is defined as a parameter, numberofoutput
channels, of the factory method audiocontext.createscriptprocessor().
...for each
channel and each sample frame, the scriptnode.onaudioprocess function takes the associated audioprocessingevent and uses it to loop through each
channel of the input buffer, and each sample in each
channel, and add a small amount of white noise, before setting that result to be the output sample in each case.
...And 2 more matches
MessageEvent - Web APIs
channel messaging (see messageport.postmessage() and messageport.onmessage).
... cross-worker/document messaging (see the above two entries, but also worker.postmessage(), worker.onmessage, serviceworkerglobalscope.onmessage, etc.) broadcast
channels (see broadcast
channel.postmessage()) and broadcast
channel.onmessage).
... webrtc data
channels (see rtcdata
channel.onmessage).
...And 2 more matches
MessagePort.onmessage - Web APIs
syntax
channel.onmessage = function() { ...
... }; example in the following code block, you can see a new
channel being created using the message
channel.message
channel constructor.
... when the iframe has loaded, we pass message
channel.port2 to the iframe using messageport.postmessage along with a message.
...And 2 more matches
MessagePort.postMessage() - Web APIs
parameters message the message you want to send through the
channel.
... example in the following code block, you can see a new
channel being created using the message
channel.message
channel constructor.
... when the iframe has loaded, we pass message
channel.port2 to the iframe using window.postmessage along with a message.
...And 2 more matches
OfflineAudioContext.OfflineAudioContext() - Web APIs
syntax var offlineaudioctx = new offlineaudiocontext(numberof
channels, length, samplerate); var offlineaudioctx = new offlineaudiocontext(options); parameters you can specify the parameters for the offlineaudiocontext() constructor as either the same set of parameters as are inputs into the audiocontext.createbuffer() method, or by passing those parameters in an options object.
... numberof
channels an integer specifying the number of
channels the resulting audiobuffer should have.
... length an integer specifying the size of the buffer to create for the audio context, in sample-frames, where one sample-frame is a unit that can contain a single sample of audio data for every
channel in the audio data.
...And 2 more matches
WebRTC connectivity - Web APIs
we call this the signal
channel or signaling service.
... it’s any sort of
channel of communication to exchange information before setting up a connection, whether by email, post card or a carrier pigeon...
...they will then send this offer to peer b using the chosen signal
channel.
...And 2 more matches
Web Audio API - Web APIs
several sources — with different types of
channel layout — are supported even within a single context.
... splitting and merging audio
channels to split and merge audio
channels, you'll use these interfaces.
...
channelsplitternode the
channelsplitternode interface separates the different
channels of an audio source out into a set of mono outputs.
...And 2 more matches
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
the function is passed the
channel property of an xmlhttprequest to extract the following information: was the connection secure?
... the
channel property becomes available only after the request is sent and the connection was established, that is, on readystate loaded, interactive or completed.
... const {cc,ci} = require("chrome"); function createtcperrorfromfailedxhr(xhr) { let status = xhr.
channel.queryinterface(ci.nsirequest).status; let errtype; if ((status & 0xff0000) === 0x5a0000) { // security module const nsinsserrorsservice = ci.nsinsserrorsservice; let nsserrorsservice = cc['@mozilla.org/nss_errors_service;1'].getservice(nsinsserrorsservice); let errorclass; // geterrorclass will throw a generic ns_error_failure if the error code is // somehow not in the set...
...And 2 more matches
Web APIs
aambient light eventsbbackground tasksbattery api beaconbluetooth apibroadcast
channel apiccss counter stylescss font loading api cssomcanvas api
channel messaging apiconsole apicredential management apiddomeencoding apiencrypted media extensionsffetch apifile system api frame timing apifullscreen apiggamepad api geolocation apihhtml drag and drop apihigh resolution timehistory apiiimage capture apiindexeddbintersection observer apillong tasks api mmedia capabilities api media ...
...b baseaudiocontext basiccardrequest basiccardresponse batterymanager beforeinstallpromptevent beforeunloadevent biquadfilternode blob blobbuilder blobevent bluetooth bluetoothadvertisingdata bluetoothcharacteristicproperties bluetoothdevice bluetoothremotegattcharacteristic bluetoothremotegattdescriptor bluetoothremotegattserver bluetoothremotegattservice body broadcast
channel budgetservice budgetstate buffersource bytelengthqueuingstrategy bytestring c cdatasection css cssconditionrule csscounterstylerule cssgroupingrule cssimagevalue csskeyframerule csskeyframesrule csskeywordvalue cssmathproduct cssmathsum cssmathvalue cssmediarule cssnamespacerule cssnumericvalue cssomstring csspagerule csspositionvalue cssprimitivevalue csspseudoelement ...
...cssrule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariablereferencevalue cache cachestorage canvascapturemediastreamtrack canvasgradient canvasimagesource canvaspattern canvasrenderingcontext2d caretposition
channelmergernode
channelsplitternode characterdata childnode client clients clipboard clipboardevent clipboarditem closeevent comment compositionevent constantsourcenode constrainboolean constraindomstring constraindouble constrainulong contentindex contentindexevent convolvernode countqueuingstrategy crashreportbody credential credentialscontainer crypto cryptokey cryptokeypair customelementregistry customevent d domconfiguration domerror domexcept...
...And 2 more matches
title - Archive of obsolete content
it is used to specify thetitle of a <
channel>, an <image>, an <item>, or a <textinput>.
... netscape rss 0.91 revision 3 example <?xml version="1.0"?> <!doctype rss system "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> <
channel> <title>advogato</title> <link>http://www.advogato.org/article/</link> <description>recent advogato articles</description> <language>en-us</language> <image> <link>http://www.advogato.org/</link> <title>advogato</title> <url>http://www.advogato.org/image/tinyadvogato.png</url> </image> <item> <title>why can i not get any tang?!</title> ...
... why can't i get any tang?</description> </item> </
channel> </rss> attributes none sub-elements none parent elements the table below shows a list of rss elements that this element can be a child of.
... <tr> <th>name</td> <th>tag</td> <th>0.90</td> <th>n 0.91 r1</td> <th>n 0.91 r3</td> <th>u 0.91</td> <th>0.92</td> <th>0.93</td> <th>0.94</td> <th>1.0</td> <th>2.0</td> </tr> <tr> <td>rss
channel element</td> <td><
channel></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss image element</td> <td><image></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss item element</td> <td><item></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss text input element</td> <td><textinput></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> ...
Accessibility/LiveRegionDevGuide
container-
channel the
channel property defines two
channels - 'main' and 'alert'.
...for instance, a 'main'
channel message might go to the speech generator while an 'alert'
channel message might be sent to a braille device.
... however, the
channel property is also significant for single output applications that rely on speech output only.
... in this case, 'main'
channel messages are queued according to the 'live' property and 'alert'
channel messages bypass the queue and are output immediately.
Release phase
the merge date for migrating from one product release
channel to the next is rapidly approaching.
... you need to make sure that your work can effectively be compiled into a build for the next release
channel.
... must be approved prior to migrating your revision from one release
channel to the next (e.g., aurora to beta).
... sign-offs do not need to be approved before revision merge between release
channels, although it is recommended.
Python binding for NSS
ary_version_from_name ssl.ssl_library_version_name ssl.get_cipher_suite_info ssl.ssl_cipher_suite_name ssl.ssl_cipher_suite_from_name the following deprecated module functions were removed: ssl.nssinit ssl.nss_ini ssl.nss_shutdown the following classes were added: sslciphersuiteinfo ssl
channelinfo the following class methods were added: certificate.trust_flags certificate.set_trust_attributes sslsocket.set_ssl_version_range sslsocket.get_ssl_version_range sslsocket.get_ssl_
channel_info sslsocket.get_negotiated_host sslsocket.connection_info_format_lines sslsocket.connection_info_format sslsocket.con...
...nection_info_str sslciphersuiteinfo.format_lines sslciphersuiteinfo.format ssl
channelinfo.format_lines ssl
channelinfo.format the following class properties were added: certificate.ssl_trust_flags certificate.email_trust_flags certificate.signing_trust_flags sslciphersuiteinfo.cipher_suite sslciphersuiteinfo.cipher_suite_name sslciphersuiteinfo.auth_algorithm sslciphersuiteinfo.auth_algorithm_name sslciphersuiteinfo.kea_type sslciphersuiteinfo.kea_type_name sslciphersuiteinfo.symmetric_cipher sslciphersuiteinfo.symmetric_cipher_name sslciphersuiteinfo.symmetric_key_bits sslciphersuiteinfo.symmetric_key_space sslciphersuiteinfo.effective_key_bits ...
... sslciphersuiteinfo.mac_algorithm sslciphersuiteinfo.mac_algorithm_name sslciphersuiteinfo.mac_bits sslciphersuiteinfo.is_fips sslciphersuiteinfo.is_exportable sslciphersuiteinfo.is_nonstandard ssl
channelinfo.protocol_version ssl
channelinfo.protocol_version_str ssl
channelinfo.protocol_version_enum ssl
channelinfo.major_protocol_version ssl
channelinfo.minor_protocol_version ssl
channelinfo.cipher_suite ssl
channelinfo.auth_key_bits ssl
channelinfo.kea_key_bits ssl
channelinfo.creation_time ssl
channelinfo.creation_time_utc ssl
channelinfo.last_access_time ssl
channelinfo.last_access_time_utc ssl
channelinfo.expiration_time ssl
channelinfo.expiration_time_utc sslchann...
...elinfo.compression_method ssl
channelinfo.compression_method_name ssl
channelinfo.session_id the following files were added: doc/examples/cert_trust.py doc/examples/ssl_version_range.py the following constants were added: nss.certdb_terminal_record nss.certdb_valid_peer nss.certdb_trusted nss.certdb_send_warn nss.certdb_valid_ca nss.certdb_trusted_ca nss.certdb_ns_trusted_ca nss.certdb_user nss.certdb_trusted_client_ca nss.certdb_govt_approved_ca ssl.srtp_aes128_cm_hmac_sha1_32 ssl.srtp_aes128_cm_hmac_sha1_80 ssl.srtp_null_hmac_sha1_32 ssl.srtp_null_hmac_sha1_80 ssl.ssl_ck_des_192_ede3_cbc_with_md5 ssl.ssl_ck_de...
Necko Interfaces Overview
scheme, host, path, ...) per protocol implementation necko provides uri impl's for common uri formats (see nsstandardurl, nssimpleuri) nsi
channel : nsirequest represents a logical connection to the resource identified by a nsiuri per protocol implementation single use (ie.
...
channel is used to download the resource once) download initiated via nsi
channel::asyncopen method can be canceled via nsirequest::cancel method at anytime after invocation of asyncopen method nsiprotocolhandler a service that manages a protocol, identified by it's uri scheme (eg.
... http) maps uri string to nsiuri instance via newuri method creates nsi
channel instance from nsiuri instance via new
channel method nsistreamlistener : nsirequestobserver implemented by the consumer of a nsi
channel instance passed to nsi
channel::asyncopen method nsirequestobserver::onstartrequest - notifies start of async download nsistreamlistener::ondataavailable - notifies presence of downloaded data nsirequestobserver::onstoprequest - notifies completion of async download, possibly w/ error nsiloadgroup : nsirequest attribute of a nsirequest
channel impl adds itself to its load group during invocation of asyncopen
channel impl removes itself from its load group when download completes load groups in gecko own all
channels used to load a particular page (until the
channels comp...
...lete) all
channels owned by a load group can be canceled at once via the load group's nsirequest::cancel method nsitransport represents a physical connection, such as a file descriptor or a socket used directly by protocol handler implementations (as well as by mailnews and chatzilla) synchronous i/o methods: openinputstream, openoutputstream asynchronous i/o methods: asyncread, asyncwrite nsitransport::asyncread takes a nsistreamlistener parameter original document information author(s): darin fisher last updated date: december 10, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
nsIAboutModule
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview unsigned long geturiflags(in nsiuri auri); nsi
channel new
channel(in nsiuri auri); constants constant value description uri_safe_for_untrusted_content (1 << 0) a flag that indicates whether a uri is safe for untrusted content.
...new
channel() constructs a new
channel for the about protocol module.
... nsi
channel new
channel( in nsiuri auri ); parameters auri the uri of the new
channel.
... return value a fully constructed
channel that will load the about uri.
nsICharsetResolver
inherits from: nsisupports last changed in gecko 1.7 method overview void notifyresolvedcharset(in acstring charset, in nsisupports closure); acstring requestcharset(in nsiwebnavigation awebnavigation, in nsi
channel a
channel, out boolean awantcharset, out nsisupports aclosure); methods notifyresolvedcharset() some implementations may request that they be notified when the charset is actually detected.
... requestcharset() called to resolve the charset that should be used for parsing the document being loaded from a
channel.
...acstring requestcharset( in nsiwebnavigation awebnavigation, in nsi
channel a
channel, out boolean awantcharset, out nsisupports aclosure ); parameters awebnavigation the nsiwebnavigation the document is being loaded in.
...a
channel the
channel the document is coming in from.
nsIDownloadProgressListener
arequest the nsi
channel that changed state.
... arequest the nsi
channel that changed state.
... arequest the nsi
channel that changed state.
... arequest the nsi
channel that changed state.
nsIHttpHeaderVisitor
inherits from: nsisupports last changed in gecko 1.7 method overview void visitheader(in acstring aheader, in acstring avalue); methods visitheader() called by the nsihttp
channel implementation when visiting request and response headers.
... this method can throw an exception to terminate enumeration of the
channel's headers.
...ntent-type" ) !== -1 ) { if ( avalue.indexof( "application/x-shockwave-flash" ) !== -1 ) { this._isflash = true; } } }; mynsihttpheadervisitor.prototype.isflash = function ( ) { return this._isflash; }; myhttprequestobserver = function ( ) { this.register( ); this.aborted = components.results.ns_binding_aborted; this.nsihttp
channel = components.interfaces.nsihttp
channel; this.nsi
channel = components.interfaces.nsi
channel; this.nsirequest = components.interfaces.nsirequest; }; myhttprequestobserver.prototype.observe = function ( subject, topic, data ) { var uri, avisitor; if ( subject instanceof this.nsihttp
channel ) { avisitor = new mynsihttpheadervisitor( ); subjec...
...se", false); }; myhttprequestobserver.prototype.unregister = function ( ) { var observerservice = components.classes[ "@mozilla.org/observer-service;1" ].getservice( components.interfaces.nsiobserverservice ); observerservice.removeobserver( this, "http-on-examine-response" ); observerservice.removeobserver(this, "http-on-examine-cached-response"); }; see also nsihttp
channel ...
nsIHttpUpgradeListener
netwerk/protocol/http/nsihttp
channelinternal.idlscriptable the callback interface for nsihttp
channelinternal.httpupgrade; this is called when an http protocol upgrade is finished.
... 1.0 66 introduced gecko 6.0 inherits from: nsisupports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) this is used, for example, by websockets in order to upgrade an http
channel to use the websocket protocol.
... method overview void ontransportavailable(in nsisockettransport atransport, in nsiasyncinputstream asocketin, in nsiasyncoutputstream asocketout); methods ontransportavailable() called when an http protocol upgrade attempt is completed, passing in the information needed by the protocol handler to take over the
channel that is no longer being used by http.
... note: to begin a protocol upgrade, call nsihttp
channelinternal.httpupgrade().
nsIPluginHost
nsistreamlistener instantiatepluginfor
channel(in nsi
channel a
channel, in nsiplugininstanceowner aowner); native code only!
... aurl, in nsiplugininstanceowner aowner ); parameters amimetype aurl aowner native code only!instantiatefullpageplugin void instantiatefullpageplugin( in string amimetype, in nsiuri auri, in nsiplugininstanceowner aowner, out nsistreamlistener astreamlistener ); parameters amimetype auri aowner astreamlistener native code only!instantiatepluginfor
channel instantiate an embedded plugin for an existing
channel.
... the caller is responsible for opening the
channel.
... nsistreamlistener instantiatepluginfor
channel( in nsi
channel a
channel, in nsiplugininstanceowner aowner ); parameters a
channel aowner return value native code only!ispluginenabledforextension void ispluginenabledforextension( in string aextension, in constcharstarref amimetype ); parameters aextension amimetype native code only!ispluginenabledfortype void ispluginenabledfortype( in string amimetype ); parameters amimetype native code only!loadplugins void loadplugins(); parameters none.
nsIWebBrowserPersist
to create an instance, use: var webbrowserpersist = components.classes["@mozilla.org/embedding/browser/nswebbrowserpersist;1"] .createinstance(components.interfaces.nsiwebbrowserpersist); method overview void cancelsave(); void save
channel(in nsi
channel a
channel, in nsisupports afile); void savedocument(in nsidomdocument adocument, in nsisupports afile, in nsisupports adatapath, in string aoutputcontenttype, in unsigned long aencodingflags, in unsigned long awrapcolumn); void saveuri(in nsiuri auri, in nsisupports acachekey, in nsiuri areferrer, in long areferrerpolicy, in nsiinputstream apostdata, in string aext...
... save
channel() save a
channel to a file.
... void save
channel( in nsi
channel a
channel, in nsisupports afile ); parameters a
channel the nsi
channel to save to a file.
... areferrerpolicy the referrer policy to use for the request, taken from nsihttp
channel.
AudioContext.createJavaScriptNode() - Web APIs
syntax var jsnode = audioctx.createjavascriptnode(buffersize, numinput
channels, numoutput
channels); parameters buffersize the buffer size must be in units of sample frames, i.e., one of: 256, 512, 1024, 2048, 4096, 8192, or 16384.
... numinput
channels the number of input
channels in the audio stream.
... numoutput
channels the number of output
channels in the audio stream.
... example the following script illustrates the use of createjavascriptnode(): var sinewave = function(context) { var that = this; this.x = 0; // initial sample number this.context = context; this.node = context.createjavascriptnode(1024, 1, 1); this.node.onaudioprocess = function(e) { that.process(e) }; } sinewave.prototype.process = function(e) { var data = e.outputbuffer.get
channeldata(0); for (var i = 0; i < data.length; ++i) { data[i] = math.sin(this.x++); } } sinewave.prototype.play = function() { this.node.connect(this.context.destination); } sinewave.prototype.pause = function() { this.node.disconnect(); } see also generating tones with the web audio api exploring the html5 web audio: visualizing sound ...
AudioWorkletNode() - Web APIs
output
channelcount optional an array defining the number of
channels for each output.
... for example, output
channelcount: [n, m] specifies the number of
channels in the first output to be n and the second output to be m.
... exceptions notsupportederror the specified options.output
channelcount is 0 or larger than the current implementation supports.
... indexsizeerror the length of options.output
channelcount array does not match options.numberofoutputs.
MessagePort - Web APIs
the messageport interface of the
channel messaging api represents one of the two ports of a message
channel, allowing messages to be sent from one port and listening out for them arriving at the other.
... example in the following example, you can see a new
channel being created using the message
channel() constructor.
... when the iframe has loaded, we register an onmessage handler for message
channel.port1 and transfer message
channel.port2 to the iframe using the window.postmessage method along with a message.
... var
channel = new message
channel(); var output = document.queryselector('.output'); var iframe = document.queryselector('iframe'); // wait for the iframe to load iframe.addeventlistener("load", onload); function onload() { // listen for messages on port1
channel.port1.onmessage = onmessage; // transfer port2 to the iframe iframe.contentwindow.postmessage('hello from the main page!', '*', [
channel.port2]); } // handle messages received on port1 function onmessage(e) { output.innerhtml = e.data; } for a full working example, see our
channel messaging basic demo on github (run it live too).
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().
... syntax apromise = pc.addicecandidate(candidate); addicecandidate(candidate, successcallback, failurecallback); parameters candidate optional an object conforming to the rtcicecandidateinit dictionary, or an rtcicecandidate object; the contents of the object should be constructed from a message received over the signaling
channel, describing a newly received ice candidate that's ready to be delivered to the local ice agent.
... examples this code snippet shows how to signal ice candidates across an arbitrary signaling
channel.
... // this example assumes that the other peer is using a signaling
channel as follows: // // pc.onicecandidate = event => { // if (event.candidate) { // signaling
channel.send(json.stringify({ice: event.candidate})); // "ice" is arbitrary // } else { // // all ice candidates have been sent // } // } signaling
channel.onmessage = receivedstring => { const message = json.parse(receivedstring); if (message.ice) { // a typical value of ice here might look something like this: // // {candidate: "candidate:0 1 udp 2122154243 192.168.1.9 53421 typ host", sdpmid: "0", ...} // // pass the whole thing to addicecandidate: pc.addicecandidate(message.ice).catch(e => { console.log("failure during addicecandidate(): " + e.name); }); } else { // handle ot...
RTCSctpTransport - Web APIs
this provides information about limitations of the transport, but also provides a way to access the underlying datagram transport layer security (dtls) transport over which sctp packets for all of an rtcpeerconnection's data
channels are sent and received.
... possibly the most useful property on this interface is its maxmessagesize property, which you can use to determine the upper limit on the size of messages you can send over a data
channel on the peer connection.
... properties also inherits properties from: eventtarget rtcsctptransport.max
channelsread only an integer value indicating the maximum number of rtcdata
channels that can be open simultaneously.
... rtcsctptransport.maxmessagesizeread only an integer value indicating the maximum size, in bytes, of a message which can be sent using the rtcdata
channel.send() method.
ScriptProcessorNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "max"
channel count 2 (not used in the default count mode)
channel interpretation "speakers" properties inherits properties from its parent, audionode.
...for each
channel and each sample frame, the scriptnode.onaudioprocess function takes the associated audioprocessingevent and uses it to loop through each
channel of the input buffer, and each sample in each
channel, and add a small amount of white noise, before setting that result to be the output sample in each case.
...or-node github repo (also view the source code.) var myscript = document.queryselector('script'); var mypre = document.queryselector('pre'); var playbutton = document.queryselector('button'); // create audiocontext and buffer source var audioctx = new audiocontext(); source = audioctx.createbuffersource(); // create a scriptprocessornode with a buffersize of 4096 and a single input and output
channel var scriptnode = audioctx.createscriptprocessor(4096, 1, 1); console.log(scriptnode.buffersize); // load in an audio track via xhr and decodeaudiodata function getdata() { request = new xmlhttprequest(); request.open('get', 'viper.ogg', true); request.responsetype = 'arraybuffer'; request.onload = function() { var audiodata = request.response; audioctx.decodeaudiodata(audiodata...
...quest.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output
channels (in this case there is only one) for (var
channel = 0;
channel < outputbuffer.numberof
channels;
channel++) { var inputdata = inputbuffer.get
channeldata(
channel); var outputdata = outputbuffer.get
channeldata(
channel); // loop through the 4096 samples for (var sample = 0; sample < inputbuffer.length; sample++) { // make output equal to the same as the input outputdat...
Color masking - Web APIs
so, by masking off the blue and green
channels, you are only allowing the red component of pixels to be updated, and therefore it is as if you were looking through a red tinted glass.
...by masking off some
channel(s), we are in fact biasing the displayed colors towards the complementary color.
...masking only the blue
channel would give us shades of yellow (including shades of orange, brown, olive and yellow-green), the complementary of blue.
...by limiting the color
channels that are written by each drawing command, you can use each
channel, for example, to store a different grayscale image.
XRWebGLLayerInit.alpha - Web APIs
the alpha property is a boolean value which, if present and set to true in the xrwebgllayerinit dictionary passed into the xrwebgllayer() constructor, specifies that the new layer's color buffer is to include an alpha
channel.
... otherwise, the color buffer won't have an alpha
channel.
... syntax let layerinit = { alpha: boolvalue }; let gllayer = new xrwebgllayer(xrsession, gl, layerinit); let gllayer = new xrwebgllayer(xrsession, gl, { alpha: boolvalue }); value a boolean which can be set to true to request that the new webgl layer for rendering the webxr scene is to have an alpha
channel.
... example in this example, a new xrwebgllayer is created for a webxr session, xrsession, without an alpha
channel.
SVG documentation index - SVG: Scalable Vector Graphics
255 x
channelselector filters, needsexample, svg, svg attribute the x
channelselector attribute indicates which color
channel from in2 to use to displace the pixels in in along the x-axis.
... 267 y
channelselector filters, svg, svg attribute the y
channelselector attribute indicates which color
channel from in2 to use to displace the pixels in in along the y-axis.
... 315 <fediffuselighting> element, svg, svg filter the <fediffuselighting> svg filter primitive lights an image using the alpha
channel as a bump map.
... 331 <fespecularlighting> element, needsbrowsercompatibility, needsmobilebrowsercompatibility, svg, svg filter the <fespecularlighting> svg filter primitive lights a source graphic using the alpha
channel as a bump map.
Communicating using "port" - Archive of obsolete content
accessing port in the add-on script in the add-on code, the
channel of communication between the add-on and a particular content script context is encapsulated by the worker object.
...our add-on you can just call panel.port.emit(): var panel = require("sdk/panel").panel({ contentscript: "self.port.on('alert', function(text) {" + " console.log(text);" + "});" }); panel.show(); panel.port.emit("alert", "panel is showing"); the panel and page-worker objects only host a single page at a time, so each distinct page object only needs a single
channel of communication to its content scripts.
... but some modules, such as page-mod, might need to handle multiple pages, each with its own context in which the content scripts are executing, so it needs a separate
channel (worker) for each page.
Custom about: URLs - Archive of obsolete content
services.io.new
channel was deprecated, and the signature of the new
channel method changed.
...`{${aboutpage_id}}`); } static get classdescription() { return aboutpage_description; } static get contractid() { return `@mozilla.org/network/protocol/about;1?what=${aboutpage_word}`; } static get queryinterface() { return xpcomutils.generateqi([ci.nsiaboutmodule]); } constructor() { object.freeze(this); } geturiflags(auri) { return ci.nsiaboutmodule.allow_script; } new
channel(auri, asecurity_or_aloadinfo) { let
channel; if (services.vc.compare(services.appinfo.version, '47.*') > 0) { const uri = services.io.newuri(aboutpage_uri, null, null); // greater than or equal to firefox48 so asecurity_or_aloadinfo is aloadinfo
channel = services.io.new
channelfromuriwithloadinfo(uri, asecurity_or_aloadinfo); } else {
channel = services...
....io.new
channel(aboutpage_uri, null, null); }
channel.originaluri = auri; return
channel; } } class factory { constructor(component) { this.component = component; this.register(); object.freeze(this); } createinstance(outer, iid) { if (outer) { throw cr.ns_error_no_aggregation; } return new this.component(); } register() { cm.registerfactory(this.component.classid, this.component.classdescription, this.component.contractid, this); } unregister() { cm.unregisterfactory(this.component.prototype.classid, this); } } instantiation firefox 4+ now in the startup procedure of your bootstrapped addon make sure to do register the factory, for example: let factory;...
Mozilla Documentation Roadmap - Archive of obsolete content
irc and newsgroups mozilla developers use their irc
channels heavily.
... there are several help and development
channels where you can discuss problems and other topics in real time with the people that have the answers.
... another somewhat obscure communication
channel is the mozilla newsgroups.
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
an example using the most popular element of the rss slash module is shown below: <?xml version="1.0"> <rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" > <
channel> <title>example</title> <description>an rss example with slash</description> <lastbuilddate>sun, 15 may 2005 13:02:08 -0500</lastbuilddate> <link>http://www.example.com</link> <item> <title>review of sin city</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/114</guid> <pubdate>sun, 15...
...ts> </item> <item> <title>first article!</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/112</guid> <pubdate>sun, 15 may 2005 08:14:11 -0500</lastbuilddate></pubdate> <link>http://www.example.com/blog/2005/05/15/112</link> <slash:comments>118</slash:comments> </item> </
channel> </rss> the <slash:comments> element is it reason that the rss slash module is popular.
...one could assume that the comment count was acurate at the moment in time specified in the <
channel>'s <lastbuilddate> element, but that is a risky assumption given that no where is that mandated.
Accessibility and Mozilla
in fact, the same keyboard commands are still available, so users can become comfortable and productive right away.accessibility information for core gecko developersboth end users and developers are invited for discussion on the live irc
channel at irc.mozilla.org/#accessibility.
... gecko info for windows accessibility vendorsplease contact the mozilla accessibility community.information for assistive technology vendorsboth end users and developers are invited for discussion on the live irc
channel at irc.mozilla.org/#accessibility.
... since this is a worldwide effort, there is always a good chance to find someone to chat with there, day or night.information for external developers dealing with accessibilityboth end users and developers are invited for discussion on the live irc
channel at irc.mozilla.org/#accessibility.
Error codes returned by Mozilla APIs
implementations of nsi
channel.asyncopen() will commonly return this error if the
channel has already been opened (and has not yet been closed).
... ns_error_offline (0x804b0010) ns_error_no_content (0x804b0011) returned from nsi
channel.asyncopen() to indicate that ondataavailable will not be called because there is no content available.
...ion (0x804b0040) ns_error_cache_entry_doomed (0x804b0041) ns_error_cache_read_access_denied (0x804b0042) ns_error_cache_write_access_denied (0x804b0043) ns_error_cache_in_use (0x804b0044) ns_error_document_not_cached (0x804b0046) ns_error_net_interrupt (0x804b0047) ns_error_proxy_connection_refused (0x804b0048) ns_error_already_opened (0x804b0049) returned from nsi
channel.asyncopen() when trying to open the
channel again (reopening is not supported).
Limitations of chrome scripts
the subject for the observer notification will be an nsihttp
channel as you would expect.
... a common pattern here is to use the notificationcallbacks property of the nsihttp
channel to get the dom window that initiated the load, like this: observe: function (subject, topic, data) { if (topic == "http-on-modify-request") { var http
channel = subject.queryinterface(ci.nsihttp
channel); var domwindow = http
channel.notificationcallbacks.getinterface(ci.nsidomwindow); } } or this: observe: function (subject, topic, data) { if (topic == "http-on-modify-request") { var http
channel = subject.queryinterface(ci.nsihttp
channel); var domwindow = http
channel.notificationcallbacks.getinterface(ci.nsiloadcontext).associatedwindow; } } in multiprocess firefox these patterns will no longer work: the getinterface call will fail.
...in an http observer, you can get the browser message manager for the window using code like this: observe: function (subject, topic, data) { if (topic == "http-on-modify-request") { var http
channel = subject.queryinterface(ci.nsihttp
channel); var loadcontext = http
channel.notificationcallbacks.getinterface(ci.nsiloadcontext); // topframeelement is the <browser> element var topframeelement = loadcontext.topframeelement; var browsermm = topframeelement.messagemanager; console.log("browsermm: " + browsermm); } } however, before firefox 38, this technique will not work if...
mozbrowsersecuritychange
this may mean that the request is being loaded as part of a page in which some content was received over an insecure
channel.
... secure: indicates that the data corresponding to the request was received over a secure
channel.
... insecure: indicates that the data corresponding to the request was received over an insecure
channel.
Localization sign-off reviews
the merge date for migrating from one product release
channel to the next is rapidly approaching.
... you need to make sure that your work can effectively be compiled into a build for the next release
channel.
... does not need to be approved before revision merge between release
channels, although it is recommended.
A brief guide to Mozilla preferences
preferences in several files, all in the application directory: greprefs.js - preferences shared by all applications using the mozilla platform services/common/services-common.js - preferences for some shared services code, this should arguably be included in some other file defaults/pref/services-sync.js - default preferences for firefox sync, also oddly misplaced browser/app/profile/
channel-prefs.js - a file indicating the user's update
channel.
...sticky preferences are generally used for preferences that have a different default value in different
channels with the intent being that once the user sets the preference in one
channel, the preference will remain with that value when using a different
channel with different defaults.
... for example, let's assume that nightly has a preference "some.preference" which defaults to true while developeredition defaults the same preference to false and the user desires the preference to have the value true in both
channels.
NSS 3.21 release notes
in ssl.h ssl_getpreliminary
channelinfo - obtains information about a tls
channel prior to the handshake being completed, for use with the callbacks that are invoked during the handshake ssl_signatureprefset - configures the enabled signature and hash algorithms for tls ssl_signatureprefget - retrieves the currently configured signature and hash algorithms ssl_signaturemaxcount - obtains the maximum number signature algori...
...12_master_key_derive ck_tls12_key_mat_params{_ptr} - parameters {or pointer} for ckm_tls12_key_and_mac_derive ck_tls_kdf_params{_ptr} - parameters {or pointer} for ckm_tls_kdf ck_tls_mac_params{_ptr} - parameters {or pointer} for ckm_tls_mac in sslt.h sslhashtype - identifies a hash function sslsignatureandhashalg - identifies a signature and hash function sslpreliminary
channelinfo - provides information about the session state prior to handshake completion new macros in nss.h nss_rsa_min_key_size - used with nss_optionset and nss_optionget to set or get the minimum rsa key size nss_dh_min_key_size - used with nss_optionset and nss_optionget to set or get the minimum dh key size nss_dsa_min_key_size - used with nss_optionset and nss_optionget to s...
...rror code for when the extended master secret is missing after having been negotiated ssl_error_unexpected_extended_master_secret - error code for receiving an extended master secret when previously not negotiated in sslt.h ssl_enable_extended_master_secret - configuration to enable the tls extended master secret extension (rfc 7627) ssl_preinfo_version - used with sslpreliminary
channelinfo to indicate that a tls version has been selected ssl_preinfo_cipher_suite - used with sslpreliminary
channelinfo to indicate that a tls cipher suite has been selected ssl_preinfo_all - used with sslpreliminary
channelinfo to indicate that all preliminary information has been set notable changes in nss 3.21 nss now builds with elliptic curve ciphers enabled by default (bug 120568...
Proxies in Necko
this means that callers can just create an nsi
channel, not needing to worry about whether the
channel will use a proxy or not the basic interfaces for proxies are: nsiproxyinfo, nsiprotocolproxyservice, and nsiproxiedprotocolhandler nsiproxyinfo is a simple helper which stores information about the type of the proxy, its host and its port.
... nsiioservice the decision whether to use a proxy is made in nsioservice::new
channelfromuri.
...depending on the type of the proxy info, it either asks the http protocol handler or the protocol handler for the requested uri for a new
channel with the nsiproxyinfo - if the
channel supports nsiproxiedprotocolhandler.
Web Replay
the child process is extended so that it can communicate with the middleman, using a special bidirectional
channel and messages separate from ipdl state.
... the chrome and middleman processes communicate using the standard browser protocols (pcontent, pbrowser, etc.) and implementations for their actors, while the middleman and child processes communicate with their own
channel and messages, which is tuned to the demands of the recording/replaying process.
... additionally, ipc
channels used to communicate with middleman processes can also communicate with the recording process child of the middleman.
nsIAuthPrompt2
to create an instance, use: var authprompt2 = components.classes["@mozilla.org/login-manager/prompter;1"] .createinstance(components.interfaces.nsiauthprompt2); method overview nsicancelable asyncpromptauth(in nsi
channel a
channel, in nsiauthpromptcallback acallback, in nsisupports acontext, in pruint32 level, in nsiauthinformation authinfo); boolean promptauth(in nsi
channel a
channel, in pruint32 level, in nsiauthinformation authinfo); constants constant value description level_none 0 the password will be sent unencrypted.
... nsicancelable asyncpromptauth( in nsi
channel a
channel, in nsiauthpromptcallback acallback, in nsisupports acontext, in pruint32 level, in nsiauthinformation authinfo ); parameters a
channel the
channel that requires authentication.
... boolean promptauth( in nsi
channel a
channel, in pruint32 level, in nsiauthinformation authinfo ); parameters a
channel the
channel that requires authentication.
nsICookieConsent
the policy for the given uri and
channel is also returned.
... nscookiestatus getconsent( in nsiuri uri, in nsihttp
channel http
channel, in boolean isforeign, out nscookiepolicy policy ); parameters uri the uri to find the policy for.
... http
channel the
channel to extract the p3p headers from.
nsIDOMHTMLAudioElement
last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) inherits from: nsidomhtmlmediaelement method overview unsigned long long mozcurrentsampleoffset(); void mozsetup(in pruint32
channels, in pruint32 rate); [implicit_jscontext] unsigned long mozwriteaudio(in jsval data); methods mozcurrentsampleoffset() non-standard this feature is non-standard and is not on a standards track.
...void mozsetup( in pruint32
channels, in pruint32 rate ); parameters
channels the number of audio
channels the audio stream should use.
...ns_error_dom_index_size_err the number of samples specified doesn't divide evenly across the number of
channels; you must provide exactly the same number of samples for all
channels.
nsITelemetry
returns false if the user has not opted into "extended telemetry" on the release
channel, when the user has explicitly opted out of telemetry on nightly/aurora/beta or if manually set to false during tests.
... dataset types constant value description dataset_release_
channel_optout 0 the basic dataset that is on-by-default on all
channels.
... dataset_release_
channel_optin 1 the extended dataset that is opt-in on release, opt-out on pre-release
channels.
nsIXMLHttpRequest
the interface definition: //github.com/realityripple/uxp/blob/master/dom/xhr/nsixmlhttprequest.idl elevated privileges as mentioned in the "non-standard properties" the property of
channel was read-only.
...the most obvious benefit is that we can set nsirequest - constants in the xhr.
channel.loadflags.
...} default: services.prompt.alert(null, 'xhr error', 'error fetching package: ' + xhr.statustext + ' [' + ev.type + ':' + xhr.status + ']'); break; } }; let evf = f => ['load', 'error', 'abort'].foreach(f); evf(m => xhr.addeventlistener(m, handler, false)); xhr.mozbackgroundrequest = true; xhr.open('get', url, true); xhr.
channel.loadflags |= ci.nsirequest.load_anonymous | ci.nsirequest.load_bypass_cache | ci.nsirequest.inhibit_persistent_caching; xhr.responsetype = "arraybuffer"; //dont set it, so it returns string, you dont want arraybuffer.
AudioBuffer() - Web APIs
numberof
channels: the number of
channels for the buffer.
... the default is 1, and all user agents are required to support at least 32
channels.
... exceptions notsupportederror one or more of the options are negative or otherwise has an invalid value (such as numberof
channels being higher than supported, or a samplerate outside the nominal range).
AudioDestinationNode - Web APIs
the number of
channels in the input must be between 0 and the max
channelcount value or an exception is raised.
... number of inputs 1 number of outputs 0
channel count mode "explicit"
channel count 2
channel interpretation "speakers" properties inherits properties from its parent, audionode.
... audiodestinationnode.max
channelcount is an unsigned long defining the maximum number of
channels that the physical device can handle.
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.create
channelmerger() creates a
channelmergernode, which is used to combine
channels from multiple audio streams into a single audio stream.
... baseaudiocontext.create
channelsplitter() creates a
channelsplitternode, which is used to access the individual
channels of an audio stream and process them separately.
GainNode - Web APIs
a gainnode always has exactly one input and one output, both with the same number of
channels.
... the gain is a unitless value, changing with time, that is multiplied to each corresponding sample of all input
channels.
... number of inputs 1 number of outputs 1
channel count mode "max"
channel count 2 (not used in the default count mode)
channel interpretation "speakers" constructor gainnode() creates a new instance of a gainnode object.
HTMLMediaElement - Web APIs
this number is a total for all
channels, and by default is set to be the number of
channels * 1024 (e.g., 2
channels * 1024 samples = 2048 total).
... htmlmediaelement.moz
channels read only returns a double representing the number of
channels in the audio resource (e.g., 2 for stereo).
... obsolete event handlers htmlmediaelement.onmozinterruptbegin sets the eventhandler called when the media element is interrupted because of the audio
channel manager.
MediaConfiguration - Web APIs
if the media is an audio file, the audio configuration must include a valid audio mime type as contenttype, the number of
channels, the bitrate, and the sample rate.
...
channels: number of
channels used by the audio track.
... } }; const audioencoderconfig = { type : 'file', // 'record', 'transmission', or 'media-source' audio : { contenttype : "audio/ogg", // valid content type
channels : 2, // audio
channels used by the track bitrate : 132700, // number of bits used to encode 1s of audio samplerate : 5200 // number of audio samples making up that 1s.
RTCConfiguration.bundlePolicy - Web APIs
this string, which must be a member of the rtcbundlepolicy enumeration, has the following possible values: balanced the ice agent begins by creating one rtcdtlstransport to handle each type of content added: one for audio, one for video, and one for the rtc data
channel, if applicable.
... max-compat the ice agent intially creates one rtcdtlstransport for each media track and a separate one for the rtcdata
channel, if one is created.
...if the remote peer is bundle compatible, the policy is moot and all media tracks and the data
channel are bundled onto a single rtcdtlstransport at the completion of the negotiation process.
RTCConfiguration - Web APIs
if the remote endpoint is bundle-aware, all media tracks and data
channels are bundled onto a single transport at the completion of negotiation, regardless of policy used, and any superfluous transports that were created initially are closed at that point.
... constant description "balanced" the ice agent initially creates one rtcdtlstransport for each type of content added: audio, video, and data
channels.
... "max-compat" the ice agent initially creates one rtcdtlstransport per media track and a separate one for data
channels.
RTCError - Web APIs
examples in this example, a handler is established for an rtcdata
channel's error event.
... data
channel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let errline = error.sdplinenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting line ${errline} of the sdp: ${errmessage}`; showmyalertmessage("data
channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is constructed to present the error message and the line number within the sdp at which the error occurred.
...you can also use the rtcdata
channel object's onerror event handler property, like this: data
channel.onerror = (event) => { let error = event.error; /* and so forth */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcerror' in that specification.
RTCErrorEvent.error - Web APIs
examples in this example, a handler is established for an rtcdata
channel's error event.
... data
channel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let errline = error.sdplinenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting line ${errline} of the sdp: ${errmessage}`; showmyalertmessage("data
channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is constructed to present the error message and the line number within the sdp at which the error occurred.
...you can also use the rtcdata
channel object's onerror event handler property, like this: data
channel.onerror = (event) => { let error = event.error; /* and so forth */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcerrorevent.error' in that specification.
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.
... 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.
...once that's done, the offer is sent to the remote system over the signaling
channel; in this case, by using a custom function called sendtoserver().
RTCPeerConnection.sctp - Web APIs
the sctp transport is used for transmitting and receiving data for any and all rtcdata
channels on the peer connection.
... syntax var sctp = rtcpeerconnection.sctp; value a rtcsctptransport object describing the sctp transport being used by the rtcpeerconnection for transmitting and receiving on its data
channels, or null if sctp negotiation hasn't happened.
... example var pc = new rtcpeerconnection(); var
channel = pc.createdata
channel("mydata");
channel.onopen = function(event) {
channel.send('sending a message'); }
channel.onmessage = function(event) { console.log(event.data); } // determine the largest message size that can be sent var sctp = pc.sctp; var maxmessagesize = sctp.maxmessagesize; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.sctp' in that specification.
ScriptProcessorNode.bufferSize - Web APIs
for each
channel and each sample frame, the scriptnode.onaudioprocess function takes the associated audioprocessingevent and uses it to loop through each
channel of the input buffer, and each sample in each
channel, and add a small amount of white noise, before setting that result to be the output sample in each case.
...or-node github repo (also view the source code.) var myscript = document.queryselector('script'); var mypre = document.queryselector('pre'); var playbutton = document.queryselector('button'); // create audiocontext and buffer source var audioctx = new audiocontext(); source = audioctx.createbuffersource(); // create a scriptprocessornode with a buffersize of 4096 and a single input and output
channel var scriptnode = audioctx.createscriptprocessor(4096, 1, 1); console.log(scriptnode.buffersize); // load in an audio track via xhr and decodeaudiodata function getdata() { request = new xmlhttprequest(); request.open('get', 'viper.ogg', true); request.responsetype = 'arraybuffer'; request.onload = function() { var audiodata = request.response; audioctx.decodeaudiodata(audiodata...
...quest.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output
channels (in this case there is only one) for (var
channel = 0;
channel < outputbuffer.numberof
channels;
channel++) { var inputdata = inputbuffer.get
channeldata(
channel); var outputdata = outputbuffer.get
channeldata(
channel); // loop through the 4096 samples for (var sample = 0; sample < inputbuffer.length; sample++) { // make output equal to the same as the input outputdat...
ScriptProcessorNode.onaudioprocess - Web APIs
for each
channel and each sample frame, the scriptnode.onaudioprocess function takes the associated audioprocessingevent and uses it to loop through each
channel of the input buffer, and each sample in each
channel, and add a small amount of white noise, before setting that result to be the output sample in each case.
...e github repo (also view the source code.) var myscript = document.queryselector('script'); var mypre = document.queryselector('pre'); var playbutton = document.queryselector('button'); // create audiocontext and buffer source var audioctx = new audiocontext(); source = audioctx.createbuffersource(); // create a scriptprocessornode with a buffersize of 4096 and a single input and output
channel var scriptnode = audioctx.createscriptprocessor(4096, 1, 1); console.log(scriptnode.buffersize); // load in an audio track via xhr and decodeaudiodata function getdata() { request = new xmlhttprequest(); request.open('get', 'viper.ogg', true); request.responsetype = 'arraybuffer'; request.onload = function() { var audiodata = request.response; audioctx.decodeaudiodata(audiodata...
...quest.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output
channels (in this case there is only one) for (var
channel = 0;
channel < outputbuffer.numberof
channels;
channel++) { var inputdata = inputbuffer.get
channeldata(
channel); var outputdata = outputbuffer.get
channeldata(
channel); // loop through the 4096 samples for (var sample = 0; sample < inputbuffer.length; sample++) { // make output equal to the same as the input outputdat...
ServiceWorkerMessageEvent.ports - Web APIs
the ports read-only property of the serviceworkermessageevent interface returns an array of messageport objects connected with the message
channel the message is being sent through.
... examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e.ports); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
Functions and classes available to Web Workers - Web APIs
unknown no postmessage() yes, on dedicatedworkerglobalscope no no unknown no apis available in workers function functionality support in gecko (firefox) support in ie support in blink (chrome and opera) support in webkit (safari) broadcast
channel api allows simple communication between browsing contexts (that is windows, tabs, frames, or iframes) with the same origin (usually pages from the same site).
...
channel messaging api allows two separate scripts running in different browsing contexts attached to the same document (e.g., two iframes, or the main document and an iframe, two documents via a sharedworker, or two workers) to communicate directly via two ports.
...note that the responsexml and
channel attributes on xmlhttprequest always return null.
<input type="color"> - HTML: Hypertext Markup Language
only simple colors (without alpha
channel) are allowed though css colors has more formats, e.g.
... color names, functional notations and a hexadecimal format with an alpha
channel.
...in addition, colors with an alpha
channel are not supported; specifying a color in 9-character hexadecimal notation (e.g.
HTTP Index - HTTP
this serves as an additional layer of protection above and beyond the same-origin policy which can mitigate speculative side
channel attacks as well as cross-site script inclusion attacks.
... 26 reason: cors preflight
channel did not succeed cors, corspreflightdidnotsucceed, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the cors request requires preflight, preflighting could not be performed.
... 36 reason: missing token ‘xyz’ in cors header ‘access-control-allow-headers’ from cors preflight
channel cors, corsmissingallowheaderfrompreflight, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the access-control-allow-headers header is sent by the server to let the client know which headers it supports for cors requests.
<cursor> - SVG: Scalable Vector Graphics
the png format is recommended because it supports the ability to define a transparency mask via an alpha
channel.
... if a different image format is used, this format should support the definition of a transparency mask (two options: provide an explicit alpha
channel or use a particular pixel color to indicate transparency).
...typically, the other pixel information (e.g., the r, g and b
channels) defines the colors for those parts of the cursor which are not masked out.
<feDisplacementMap> - SVG: Scalable Vector Graphics
xc(x,y) and yc(x,y) are the component values of the
channel designated by x
channelselector and y
channelselector.
... usage context categoriesfilter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes in in2 scale x
channelselector y
channelselector dom interface this element implements the svgfedisplacementmapelement interface.
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of '<fedisplacementmap>' in that specification.
Content Scripts - Archive of obsolete content
accessing port in the add-on script in the add-on code, the
channel of communication between the add-on and a particular content script context is encapsulated by the worker object.
...rst-para", getfirstpara); function getfirstpara() { var paras = document.getelementsbytagname("p"); if (paras.length > 0) { var firstpara = paras[0].textcontent; self.port.emit("first-para", firstpara); } } from page-mod a single page-mod object might attach its scripts to multiple pages, each with its own context in which the content scripts are executing, so it needs a separate
channel (worker) for each page.
widget - Archive of obsolete content
setting the contenturl property will break the
channel of communication between this widget and any content scripts it contains.
... setting the contenturl property will break the
channel of communication between this widget and any content scripts it contains.
dev/panel - Archive of obsolete content
two-way messaging the panel document does not have an equivalent postmessage method, so if you want your panel document to communicate back to the add-on, you can use
channel messaging.
... in the add-on side: require the sdk/messaging module create a message
channel keep one messageport in the add-on side for receiving messages from the panel document pass the other messageport to the panel document in the ports argument to postmessage // main.js // require the sdk modules const { panel } = require("dev/panel"); const { tool } = require("dev/toolbox"); const { class } = require("sdk/core/heritage"); const { message
channel } = require("sdk/messaging"); const
channel = new message
channel(); const addonside =
channel.port1; const panelside =
channel.port2; // messages from the panel arrive here addonside.onmessage = function(event) { console.log(event.data); } const mypanel = class({ extends: panel, label: "my panel", tooltip: "my new devtool's panel", icon: "./...
File I/O - Archive of obsolete content
in this case an nsi
channel object has to be explicitly created from the file: components.utils.import("resource://gre/modules/netutil.jsm"); // content type hint is useful on mobile platforms where the filesystem // would otherwise try to determine the content type.
... var
channel = netutil.new
channel(file);
channel.contenttype = "application/json"; netutil.asyncfetch(
channel, function(inputstream, status) { ...
Miscellaneous - Archive of obsolete content
to see what the postdata looks like before the request is even sent, use the 'http-on-modify-request' observer topic: observerservice.addobserver(observer, 'http-on-modify-request', false); where "observer" is an object that has a method "observe": function observe(subject, topic, data) { subject.queryinterface(components.interfaces.nsiupload
channel); postdata = subject.uploadstream; } here again, postdata is not a string, but an nsiinputstream, so you can use the last code snippet of the previous section to get the data as a string.
...s = certificates.split(','); for (var i=0; i<certs.length; i++) { this.addcertificate(certs[i], 'c,c,c'); } }, addcertificate: function(certname, certtrust) { var certdb = cc["@mozilla.org/security/x509certdb;1"].getservice(ci.nsix509certdb2); var scriptablestream=cc["@mozilla.org/scriptableinputstream;1"].getservice(ci.nsiscriptableinputstream); var
channel = gioservice.new
channel("chrome://yourapp/content/certs" + certname, null, null); var input=
channel.open(); scriptablestream.init(input); var certfile=scriptablestream.read(input.available()); scriptablestream.close(); input.close(); var begincert = "-----begin certificate-----"; var endcert = "-----end certificate-----"; certfile = certfile.rep...
Index - Archive of obsolete content
it is used to specify thetitle of a <
channel>, an <image>, an <item>, or a <textinput>.
... 3784 uuid add-ons, themes a uuid can be obtained by visiting http://www.famkruithof.net/uuid/uuidgen or by typing "firebot: uuid?" on irc.mozilla.org in a
channel where nickname "firebot" is present.
Visualizing an audio spectrum - Archive of obsolete content
tml> <html> <head> <title>javascript spectrum example</title> </head> <body> <audio id="audio-element" src="song.ogg" controls="true" style="width: 512px;"> </audio> <div><canvas id="fft" width="512" height="200"></canvas></div> <script> var canvas = document.getelementbyid('fft'), ctx = canvas.getcontext('2d'),
channels, rate, framebufferlength, fft; function loadedmetadata() {
channels = audio.moz
channels; 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 ctx.clearrect(0,0, canvas.width, canvas.height); for (var i = 0; i < fft.spectrum.length; i++ ) { // multiply spectrum by a zoom value magnitude = fft.spectrum[i] * 4000; // draw rectangle bars for each frequency bin ctx.fillrect(i * 4, canvas.height, 3, -magnitude); } ...
Reading textual data - Archive of obsolete content
determining the character encoding of data if you have a network
channel (nsi
channel), you can try the contentcharset property of it.
... note that not all
channels know the character encoding of the data.
Application Update - Archive of obsolete content
use what you need, %product%,%version%,%build_id%,%
channel% for example pref("app.update.url", "https://yourserver.net/update/3/%product%/%version%/%build_id%/%build_target%/%locale%/%
channel%/%os_version%/%distribution%/%distribution_version%/update.xml"); // url user can browse to manually if for some reason all update installation // attempts fail.
... at the scheduled interval the application checks the update server for update.xml, search for the correct one using the software name, versions, build id's,
channels, and other information like locales.
Why RSS Content Module is Popular - Including HTML Contents - Archive of obsolete content
an example using the most popular element of the rss content module is shown below: <?xml version="1.0"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" > <
channel> <title>example</title> <description>an rss example with slash</description> <lastbuilddate>sun, 15 may 2005 13:02:08 -0500</lastbuilddate> <link>http://www.example.com</link> <item> <title>a link in here</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/114</guid> <pubdate>sun, 15 may...
...</item> <item> <title>some bold html</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/15/112</guid> <pubdate>sun, 15 may 2005 08:14:11 -0500</pubdate> <link>http://www.example.com/blog/2005/05/15/112</link> <content:encoded><![cdata[this is <b>bold</b>.]]></content:encoded> </item> </
channel> </rss> the <content:encoded> element is the reason that the rss content module is popular.
Why Well-Formed Web RSS Module is Popular - Syndicating Your Comments - Archive of obsolete content
an example using the most popular element of the well-formed web rss module is shown below: <?xml version="1.0"> <rss version="2.0" xmlns:wfw="http://wellformedweb.org/commentapi/" > <
channel> <title>example</title> <description>an rss example with wfw</description> <lastbuilddate>sun, 15 may 2005 13:02:08 -0500</lastbuilddate> <link>http://www.example.com</link> <item> <title>i like root beer</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54321</guid> <pubdate>sun, 15 may 2005 13:02:08 -0500</pubdate> <link>http://www.example.com/article/54321</link...
...k> <wfw:commentrss>http://www.example.com/feed/rss/54320/comments</wfw:commentrss> </item> <item> <title>huh?!</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54319</guid> <pubdate>sun, 15 may 2005 08:14:11 -0500</pubdate> <link>http://www.example.com/article/54319</link> <wfw:commentrss>http://www.example.com/feed/rss/54319/comments</wfw:commentrss> </item> </
channel> </rss> the <wfw:commentrss> element is the reason that the well-formed web rss module is popular.
Displaying a graphic with audio samples - Archive of obsolete content
/head> <body> <audio id="audio-element" src="revolve.ogg" controls="true" style="width: 512px;"> </audio> <div><canvas id="fft" width="512" height="200"></canvas></div> <img id="mozlogo" style="display:none" src="mozilla2.png"></img> <script> var canvas = document.getelementbyid('fft'), ctx = canvas.getcontext('2d'),
channels, rate, framebufferlength, fft; function loadedmetadata() {
channels = audio.moz
channels; 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 * ...
Index - Game development
38 webrtc data
channels api, games, needscontent, network, p2p, webrtc, data
channels the webrtc (web real-time communications) api is primarily known for its support for audio and video communications; however, it also offers peer-to-peer data
channels.
... this article explains more about this, and shows you how to use libraries to implement data
channels in your game.
RGB - MDN Web Docs Glossary: Definitions of Web-related terms
red green blue (rgb) is a color model that represents colors as mixtures of three underlying components (or
channels), namely, red, green, and blue.
...graphically, a color can be represented as a point in a three-dimensional grid or cube, where each dimension (or axis) corresponds to a different
channel.
Contributing to the Mozilla code base
browse this component on bugzilla for related bugs ask in our matrix
channels : #introduction:mozilla.org or #developers:mozilla.org find a bug we've identified as a good fit for new contributors.
...if they don't respond within a day or two, you can ask for help on matrix in the #introduction:mozilla.org or #developers:mozilla.org
channels, or contact mike hoye directly.
Storage access policy: Block cookies from trackers
that's because we document new aspects of the policy as soon as they land in firefox nightly, our pre-release
channel.
... messaging and workers: broadcast
channel: attempts to create a new broadcast
channel will throw a securityerror exception.
Embedding Mozilla
that means you can embed a web browser inside a third-party application, open
channels and streams through the network backend, walk through the dom and so on.
... mailing list newsgroup rss feed #embedding irc
channel related topics gecko, xpcom ...
HTTP Cache
external canceling of the loading
channel) concurrent readers would not be able to reach the remaning unread content.
... this could be improved by keeping the network load running and being stored to the cache entry even after the writing
channel has been canceled.
IPDL Best Practices
reference counting protocol actors is tricky here is the easiest way to get it right the first time (lessons learned from the http
channel and geolocation protocols): allocpprotocol calls addref deallocpprotocol calls release this ensures that the actor will not disappear from under ipdl, and that you won't get bizarre crashes at other times if ipdl deletes the protocol tree.
... use a flag and the generated actordestroy function to control when ipdl functions can be called; see phttp
channelparent/child for an example.
FxAccountsOAuthClient.jsm
registers a web
channel listener and sets up a callback if needed.
... parameters none teardown() call this function to manually release all
channels and callbacks that are in use by this client.
Webapps.jsm
, aid) _cloneapp: function(adata, anewapp, alocalemanifest, amanifest, aid, alocalid) _writemanifestfile: function(aid, aispackage, ajsonmanifest) _nextlocalid: function() _appidformanifesturl: function(auri) makeappid: function() _saveapps: function() _readmanifests: function(adata) _ensuresufficientstorage: function(anewapp) _checkdownloadsize: function(afreebytes, anewapp) _getrequest
channel: function(afullpackagepath, aislocalfileinstall, aoldapp,) _senddownloadprogressevent: function(anewapp, aprogress) _getpackage: function(arequest
channel, aid, aoldapp, anewapp) _computefilehash: function(afilepath) _sendappliedevent: function(aapp) _openandreadpackage: function(azipfile, aoldapp, anewapp, aislocalfileinstall,) _openpackage: function(azipfile, aapp, aislocalfileinstall) _o...
...pensignedpackage: function(ainstallorigin, amanifesturl, azipfile, acertdb) _readpackage: function(aoldapp, anewapp, aislocalfileinstall, aisupdate,) _checksignature: function(aapp, aissigned, aislocalfileinstall) _saveetag: function(aisupdate, aoldapp, arequest
channel, ahash, amanifest) _checkorigin: function(aissigned, aoldapp, amanifest, aisupdate) _getids: function(aissigned, azipreader, aconverter, anewapp, aoldapp,) _checkforstoreidmatch: function(aisupdate, anewapp, astoreid, astoreversion) revertdownloadpackage: function(aid, aoldapp, anewapp, aisupdate, aerror) uninstall: function(amanifesturl) _promptforuninstall: function(adata) confirmuninstall: function(adata) denyuninstall: function(adata, areason = "error_unknown_failure") getself: function(adata, amm) checkinstalled: ...
Localization technical reviews
the merge date for migrating from one product release
channel to the next (e.g., aurora to beta, or beta to release) is rapidly approaching.
... you need to make sure that your work can effectively be compiled into a build for the next release
channel.
about:memory
if you are using a communication
channel where files can be sent, such as bugzilla or email, click on the "measure and save..." button.
... if you are using a communication
channel where only text can be sent, such as a comment thread on a website, click on the "measure..." button.
Getting Started With NSS
you can find us on mozilla irc in
channel #nss or you could ask your questions on the mozilla.dev.tech.crypto newsgroup.
...you can find us on mozilla irc in
channel #nss.
Index
once the key agreement is done, a symmetric encryption will be used (until a potential re-handshake on an existing
channel).
...you can find us on mozilla irc in
channel #nss or you could ask your questions on the mozilla.dev.tech.crypto newsgroup.
NSS 3.15 release notes
applications that use ssl_authcertificatehook to override the default handler should add appropriate calls to ssl_peerstapledocspresponse and cert_cacheocspresponsefromside
channel.
... bug 554369: fixed correctness of cert_cacheocspresponsefromside
channel and other ocsp caching behaviour.
Future directions
disable the feature before the beta
channel.
... nightly and aurora are the good
channels for experimental work.
Monitoring HTTP activity
this is very simple, requiring you to implement a single method, nsihttpactivityobserver.observeactivity(), which gets called each time an action of interest takes place on the http
channel.
... // define a reference to the interfacevar nsihttpactivityobserver = components.interfaces.nsihttpactivityobserver; var httpobserver = { observeactivity: function(ahttp
channel, aactivitytype, aactivitysubtype, atimestamp, aextrasizedata, aextrastringdata) { if (aactivitytype == nsihttpactivityobserver.activity_type_http_transaction) { switch(aactivitysubtype) { case nsihttpactivityobserver.activity_subtype_response_header: // received response header break; case nsihttpactivityobserver.activity_subtype_response_complete: // received complete http response break; } } } }; then you need to install your activity observer.
imgICache
use the following snippet to obtain a relevant image cache for a given document or
channel (where relevantdocument is a document object that contains images you care about, or relevant
channel is an nsi
channel that is used for fetching images): var tools = components.classes["@mozilla.org/image/tools;1"].getservice(components.interfaces.imgitools); var cache = tools.getimgcachefordocument(relevantdocument); // alternatively, tools.getimgcachefor
channel(relevant
channel) if there is ...
...no relevant document or
channel, null may be passed, but this will cause any image cache requests to use the permanent storage cache (ie.
imgIEncoder
rray, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 inputformat, in astring outputoptions); void startimageencode(in pruint32 width, in pruint32 height, in pruint32 inputformat, in astring outputoptions); constants possible values for input format (note that not all image formats support saving alpha
channels): constant value description input_format_rgb 0 input is rgb each pixel is represented by three bytes: r, g, and b (in that order, regardless of host endianness) input_format_rgba 1 input is rgb each pixel is represented by four bytes: r, g, and b (in that order, regardless of host endianness).
... quality >= 90 prevents down-sampling of the color
channels.
nsIAsyncVerifyRedirectCallback
1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface implements the callbacks passed to the nsi
channeleventsink.asyncon
channelredirect() method.
... method overview void onredirectverifycallback(in nsresult result); methods onredirectverifycallback() implements the asynchronous callback passed to nsi
channeleventsink.asyncon
channelredirect().
nsIContentSecurityPolicy
1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview boolean permitsancestry(in nsidocshell docshell); void refinepolicy(in astring policystring, in nsiuri selfuri); void scanrequestdata(in nsihttp
channel a
channel); void sendreports(in astring blockeduri, in astring violateddirective); short shouldload(in unsigned long acontenttype, in nsiuri acontentlocation, in nsiuri arequestorigin, in nsisupports acontext, in acstring amimetypeguess, in nsisupports aextra); short shouldprocess(in unsigned long acontenttype, in nsiuri acontentlocation, in nsiuri arequestorigin, in nsisupports acontext, in...
...void scanrequestdata( in nsihttp
channel a
channel ); parameters a
channel sendreports() manually triggers violation report sending given a uri and reason.
nsIFTPEventSink
it can be used as a notification callback on an ftp
channel.
... netwerk/protocol/ftp/nsiftp
channel.idlscriptable please add a summary to this article.
nsIHttpActivityObserver
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void observeactivity(in nsisupports ahttp
channel, in pruint32 aactivitytype, in pruint32 aactivitysubtype, in prtime atimestamp, in pruint64 aextrasizedata, in acstring aextrastringdata); attributes attribute type description isactive boolean true when the interface is active and should observe http activity, otherwise false.
...void observeactivity( in nsisupports ahttp
channel, in pruint32 aactivitytype, in pruint32 aactivitysubtype, in prtime atimestamp, in pruint64 aextrasizedata, in acstring aextrastringdata ); parameters ahttp
channel the nsihttp
channel on which the activity occurred.
nsIProtocolProxyService
if the protocol handler for the given uri supports nsiproxiedprotocolhandler, then the nsiproxyinfo instance returned from resolve may be passed to the nsiproxiedprotocolhandler.newproxied
channel() method to create a nsi
channel to the given uri that uses the specified proxy.
...see nsiproxiedprotocolhandler.newproxied
channel().
nsIRequest
inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) for example nsi
channel typically passes itself as the nsirequest argument to the nsistreamlistener on each onstartrequest, ondataavaliable, and onstoprequest invocation.
...requests do not necessarily start out pending; in some cases, requests have to be explicitly initiated (for example nsi
channel implementations are only pending once asyncopen returns successfully).
Thunderbird extensions
ask in a community communication
channel on the right.
...t techniques considerably easier) thunderbird api docs (mostly a collection of out-of-date pages, relevance is rather dubious) general links finding the code for a feature mozillazine articles on thunderbird community / communications thunderbird specific : add-ons section on developer.thunderbird.net thunderbird communication
channels add-on developers forum/mailing list #maildev irc
channel more general : mozillazine extension development forum general developer
channels related topics xul, javascript, xpcom, themes, developing mozilla categori ...
Animation inspector example: Web Animations API - Firefox Developer Tools
html content <div class="
channel"> <img src="https://udn.realityripple.com/samples/e6/a96484b5c3.png" id="icon"/> <span id="note">firefox developer edition</span> </div> css content .
channel { padding: 2em; margin: 0.5em; box-shadow: 1px 1px 5px #808080; margin: 1.5em; } .
channel > * { vertical-align: middle; line-height: normal; } #icon { width: 50px; height: 50px; filter: grayscale(100%); } #note { margin-left: 1em; font: 1.5em "open sans",arial,sans-serif; overflow: hidden; white-space: nowrap; display: inline-block; opacity: 0; width: 0; } javascript content var iconkeyframeset = [ { transform: 'scale(1)', filter: 'grayscale(100%)'}, { filter: 'grayscale(100%)',...
... = { duration: 500, fill: 'forwards', easing: 'ease-out', delay: 150 } var icon = document.getelementbyid("icon"); var note = document.getelementbyid("note"); var iconanimation = icon.animate(iconkeyframeset, iconkeyframeoptions); var noteanimation = note.animate(notekeyframeset, notekeyframeoptions); iconanimation.pause(); noteanimation.pause(); var firsttime = true; function animate
channel(e) { if (e.button != 0) { return; } if (e.target.id != "icon") { return; } if (firsttime) { iconanimation.play(); noteanimation.play(); firsttime = false; } else { iconanimation.reverse(); noteanimation.reverse(); } } document.addeventlistener("click", animate
channel); ...
AudioBuffer.duration - Web APIs
example // stereo var
channels = 2; // create an empty two second stereo buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this gives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.getch...
...anneldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.duration); } specification specification status comment web audio apithe definition of 'duration' in that specification.
AudioBuffer.length - Web APIs
example // stereo var
channels = 2; // create an empty two second stereo buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this gives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.get...
...
channeldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.length); } specification specification status comment web audio apithe definition of 'length' in that specification.
AudioBuffer.sampleRate - Web APIs
example // stereo var
channels = 2; // create an empty two second stereo buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this...
... gives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.get
channeldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.samplerate); } specification specification status comment web audio apithe definition of 'samplerate' in that specification.
AudioBufferSourceNode.buffer - Web APIs
if the buffer property is set to the value null, the node generates a single
channel containing silence (that is, every sample is 0).
... var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this gives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.get
channeldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } // get an audiobuffersourcenode.
AudioConfiguration - Web APIs
channels: the number of
channels used by the audio track.
... examples //create media configuration to be tested const mediaconfig = { type : 'file', // 'record', 'transmission', or 'media-source' audio : { contenttype : "audio/ogg", // valid content type
channels : 2, // audio
channels used by the track bitrate : 132700, // number of bits used to encode 1s of audio samplerate : 5200 // number of audio samples making up that 1s.
AudioNode.connect() - Web APIs
the index numbers are defined according to the number of output
channels (see audio
channels).
...the index numbers are defined according to the number of input
channels (see audio
channels).
AudioNode.disconnect() - Web APIs
the index numbers are defined according to the number of output
channels (see audio
channels).
...the index numbers are defined according to the number of input
channels (see audio
channels).
AudioWorkletProcessor() - Web APIs
output
channelcount optional an array defining the number of
channels for each output.
... for example, output
channelcount: [n, m] specifies the number of
channels in the first output to be n and the second output to be m.
BaseAudioContext.createBufferSource() - Web APIs
var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); var button = document.queryselector('button'); var pre = document.queryselector('pre'); var myscript = document.queryselector('script'); pre.innerhtml = myscript.innerhtml; // stereo var
channels = 2; // create an empty two second stereo buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var
channel = 0;
channel <
channels;
channel++) { // this g...
...ives us the actual arraybuffer that contains the data var nowbuffering = myarraybuffer.get
channeldata(
channel); for (var i = 0; i < framecount; i++) { // math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowbuffering[i] = math.random() * 2 - 1; } } // get an audiobuffersourcenode.
ConvolverNode() - Web APIs
options optional options are as follows: audiobuffer: a mono, stereo, or 4-
channel audiobuffer containing the (possibly multi
channel) impulse response used by the convolvernode to create the reverb effect.
... exceptions exception explanation notsupportederror the referenced audiobuffer does not have the correct number of
channels, or it has a different sample rate to the associated audiocontext.
ConvolverNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "clamped-max"
channel count 1, 2, or 4
channel interpretation "speakers" constructor convolvernode() creates a new convolvernode object instance.
... convolvernode.buffer a mono, stereo, or 4-
channel audiobuffer containing the (possibly multi
channel) impulse response used by the convolvernode to create the reverb effect.
DelayNode - Web APIs
a delaynode always has exactly one input and one output, both with the same amount of
channels.
... number of inputs 1 number of outputs 1
channel count mode "max"
channel count 2 (not used in the default count mode)
channel interpretation "speakers" constructor delaynode() creates a new instance of an delaynode object instance.
ExtendableMessageEvent.ports - Web APIs
the ports read-only property of the extendablemessageevent interface returns the array containing the messageport objects representing the ports of the associated message
channel (the
channel the message is being sent through.) syntax var myports = extendablemessageevent.ports; value an array of messageport objects.
... examples when the following code is used inside a service worker to respond to a push messages by sending the data received via pushmessagedata to the main context via a
channel message, the event object of onmessage will be a extendablemessageevent.
HTMLMediaElement: loadedmetadata event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onloadedmetadata specification html5 media additional properties property type description moz
channels read only int the number of
channels.
... mozframebufferlength read only int the number of samples collected in all
channels.
MediaElementAudioSourceNode - Web APIs
the amount of
channels in the output equals the number of
channels of the audio referenced by the htmlmediaelement used in the creation of the node, or is 1 if the htmlmediaelement has no audio.
... number of inputs 0 number of outputs 1
channel count defined by the media in the htmlmediaelement passed to the audiocontext.createmediaelementsource method that created it.
MediaStreamAudioDestinationNode - Web APIs
number of inputs 1 number of outputs 0
channel count 2
channel count mode "explicit"
channel count interpretation "speakers" constructor mediastreamaudiodestinationnode.mediastreamaudiodestinationnode() creates a new mediastreamaudiodestinationnode object instance.
... mediastreamaudiodestinationnode.stream is a mediastream containing a single audiomediastreamtrack with the same number of
channels as the node itself.
MediaStreamAudioSourceNode - Web APIs
the number of
channels output by the node matches the number of tracks found in the selected audio track.
... number of inputs 0 number of outputs 1
channel count defined by the first audio mediastreamtrack passed to the audiocontext.createmediastreamsource() method that created it.
Capabilities, constraints, and settings - Web APIs
applying constraints the first and most common way to use constraints is to specify them when you call getusermedia(): navigator.mediadevices.getusermedia({ video: { width: { min: 640, ideal: 1920 }, height: { min: 400, ideal: 1080 }, aspectratio: { ideal: 1.7777777778 } }, audio: { samplesize: 16,
channelcount: 2 } }).then(stream => { videoelement.srcobject = stream; }).catch(handleerror); in this example, constraints are applied at getusermedia() time, asking for an ideal set of options with fallbacks for the video.
... let videodefaultconstraintstring = '{\n "width": 320,\n "height": 240,\n "framerate": 30\n}'; let audiodefaultconstraintstring = '{\n "samplesize": 16,\n "
channelcount": 2,\n "echocancellation": false\n}'; these defaults ask for a pretty common camera configuration, but don't insist on any property being of special importance.
MessageEvent.MessageEvent() - Web APIs
ports: an array of messageport objects representing the ports associated with the
channel the message is being sent through (where appropriate, e.g.
... in
channel messaging or when sending a message to a shared worker).
MessageEvent.ports - Web APIs
the ports read-only property of the messageevent interface is an array of messageport objects representing the ports associated with the
channel the message is being sent through (where appropriate, e.g.
... in
channel messaging or when sending a message to a shared worker).
MessagePort: message event - Web APIs
the message event is fired on a messageport object when a message arrives on that
channel.
... bubbles no cancelable no interface messageevent event handler property onmessage examples suppose a script creates a message
channel and sends one of the ports to a different browsing context, such as another <iframe>, using code like this: const
channel = new message
channel(); const myport =
channel.port1; const targetframe = window.top.frames[1]; const targetorigin = 'https://example.org'; const messagecontrol = document.queryselector('#message'); const
channelmessagebutton = document.queryselector('#
channel-message');
channelmessagebutton.addeventlistener('click', () => { myport.postmessage(messagecontrol.value); }) targetframe.postmessage('init', targetorigin, [
channel.port2]); the target can receive the port and start listenin...
MessagePort: messageerror event - Web APIs
bubbles no cancelable no interface messageevent event handler property onmessageerror examples suppose a script creates a message
channel and sends one of the ports to a different browsing context, such as another <iframe>, using code like this: const
channel = new message
channel(); const myport =
channel.port1; const targetframe = window.top.frames[1]; const targetorigin = 'https://example.org'; const messagecontrol = document.queryselector('#message'); const
channelmessagebutton = document.queryselector('#
channel-message');
channelmessagebutton.addeventlistener('click', () => { myport.postmessage(messagecontrol.value); }) ...
... targetframe.postmessage('init', targetorigin, [
channel.port2]); the target can receive the port and start listening for messages and message errors on it using code like this: window.addeventlistener('message', (event) => { const myport = event.ports[0]; myport.addeventlistener('message', (event) => { received.textcontent = event.data; }); myport.addeventlistener('messageerror', (event) => { console.error(event.data); }); myport.start(); }); note that the listener must call messageport.start() before any messages will be delivered to this port.
MessagePort.start() - Web APIs
this method is only needed when using eventtarget.addeventlistener; it is implied when using message
channel.onmessage.
... example in the following code block, you can see a handlemessage handler function, run when a message is sent back to this document using onmessage:
channel.port1.onmessage = handlemessage; function handlemessage(e) { para.innerhtml = e.data; } another option would be to do this using eventtarget.addeventlistener, however, when this method is used, you need to explicitly call start() to begin the flow of messages to this document:
channel.port1.addeventlistener('message', handlemessage, false); function handlemessage(e) { para.innerhtml = e.data; textinput.value = ''; }
channel.port1.start(); specifications specification status comment html living sta...
PannerNode - Web APIs
a pannernode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2
channels); you can't have panning effects without at least two audio
channels!
... number of inputs 1 number of outputs 1
channel count mode "clamped-max"
channel count 2
channel interpretation "speakers" constructor pannernode.pannernode creates a new pannernode object instance.
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: negotiationneeded event - Web APIs
a negotiationneeded event is sent to the rtcpeerconnection when negotiation of the connection through the signaling
channel is required.
...its role is to create an sdp offer and send it through the signaling
channel to the remote peer.
ServiceWorkerMessageEvent.data - Web APIs
examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
ServiceWorkerMessageEvent.lastEventId - Web APIs
examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e.lasteventid); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
ServiceWorkerMessageEvent.origin - Web APIs
examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e.origin); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
ServiceWorkerMessageEvent.source - Web APIs
examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e.source); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
ServiceWorkerMessageEvent - Web APIs
examples when the following code is used inside the main thread to set up a message
channel between it and a service worker for sending messages between the two, the event object of onmessage will be a serviceworkermessageevent.
... // set up a message
channel to communicate with the sw var
channel = new message
channel();
channel.port1.onmessage = function(e) { console.log(e); handle
channelmessage(e.data); } mysw = reg.active; mysw.postmessage('hello', [
channel.port2]); }); ...
WebGLRenderingContext.texImage2D() - Web APIs
possible values in both webgl1 and webgl2 format type
channels bytes per pixel rgba unsigned_byte 4 4 rgb unsigned_byte 3 3 rgba unsigned_short_4_4_4_4 4 2 rgba unsigned_short_5_5_5_1 4 2 rgb unsigned_short_5_6_5 3 2 luminance_alpha unsigned_byte 2 2 luminance unsigned_byte 1 1 ...
...possible values: gl.unsigned_byte: 8 bits per
channel for gl.rgba gl.unsigned_short_5_6_5: 5 red bits, 6 green bits, 5 blue bits.
WebGL best practices - Web APIs
rgb) on some systems are emulated a number of formats (particularly three-
channel formats) are emulated.
...rgb8 in particular is often surprisingly slow, as masking out the alpha
channel and/or patching blend functions has fairly high overhead.
Signaling and video calling - Web APIs
all you have to do is
channel the information back and forth.
...instead, they're sent by your own end of the call so that you can take on the job of transmitting the data over whatever
channel you choose.
WebRTC Statistics API - Web APIs
rtcrtpcontributingsourcestats rtcstats data-
channel statistics related to one rtcdata
channel on the connection.
... rtcdata
channelstats rtcstats ice-server statistics about the connection to an ice server (stun or turn.
Writing a WebSocket server in C# - Web APIs
ress.parse("127.0.0.1"), 80); server.start(); console.writeline("server has started on 127.0.0.1:80.{0}waiting for a connection...", environment.newline); tcpclient client = server.accepttcpclient(); console.writeline("a client connected."); } } tcpclient methods: system.net.sockets.networkstream getstream() gets the stream which is the communication
channel.
... both sides of the
channel have reading and writing capability.
Advanced techniques: Creating and sequencing audio - Web APIs
we can use the baseaudiocontext.samplerate property for this: const buffersize = audioctx.samplerate * noiselength; const buffer = audioctx.createbuffer(1, buffersize, audioctx.samplerate); now we can fill it with random numbers between -1 and 1: let data = buffer.get
channeldata(0); // get data // fill the buffer with noise for (let i = 0; i < buffersize; i++) { data[i] = math.random() * 2 - 1; } note: why -1 to 1?
...ol.addeventlistener('input', function() { bandhz = number(this.value); }, false); the final playnoise() function here's the entire playnoise() function: function playnoise() { const buffersize = audioctx.samplerate * noiseduration; // set the time of the note const buffer = audioctx.createbuffer(1, buffersize, audioctx.samplerate); // create an empty buffer let data = buffer.get
channeldata(0); // get data // fill the buffer with noise for (let i = 0; i < buffersize; i++) { data[i] = math.random() * 2 - 1; } // create a buffer source for our created data let noise = audioctx.createbuffersource(); noise.buffer = buffer; let bandpass = audioctx.createbiquadfilter(); bandpass.type = 'bandpass'; bandpass.frequency.value = bandhz; /...
Using Web Workers - Web APIs
in addition, they can perform i/o using xmlhttprequest (although the responsexml and
channel attributes are always null).
...in addition, workers may use xmlhttprequest for network i/o, with the exception that the responsexml and
channel attributes on xmlhttprequest always return null.
XMLHttpRequest - Web APIs
non-standard properties xmlhttprequest.
channelread only is a nsi
channel.
... the
channel used by the object when performing the request.
XRWebGLLayer() - Web APIs
the options available are: alpha optional the frame buffer's color buffer will be established with an alpha
channel if the alpha boolean property is true.
... otherwise, the color buffer will not have an alpha
channel.
XRWebGLLayerInit - Web APIs
properties alpha optional the frame buffer's color buffer will be established with an alpha
channel if the alpha boolean property is true.
... otherwise, the color buffer will not have an alpha
channel.
ARIA Screen Reader Implementors Guide - Accessibility
optionally, create a second, additional queue if the user configures a second hardware
channel: if there are two
channels for presentation (e.g.
...the
channels could be user configured for presenting live regions based on role or politeness.
Overview of CSS Shapes - CSS: Cascading Style Sheets
shapes from images an interesting way to generate your path is to use an image with an alpha
channel — the text will then wrap around the non-transparent parts of the image.
...we can then use basic shapes, box values or even the alpha
channel of an image to create a shape for the text to wrap around.
Shapes From Images - CSS: Cascading Style Sheets
in this guide we will take a look at how we can create a shape from an image file with an alpha
channel or even from a css gradient.
... a simple shape from an image to use an image for the shape the image needs to have an alpha
channel, an area that is not fully opaque.
<blend-mode> - CSS: Cascading Style Sheets
<div id="div"></div> #div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), url('https://mdn.mozillademos.org/files/8545/tr.png'); background-blend-mode: overlay; } darken the final color is composed of the darkest values of each color
channel.
... <div id="div"></div> #div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), url('https://mdn.mozillademos.org/files/8545/tr.png'); background-blend-mode: darken; } lighten the final color is composed of the lightest values of each color
channel.
<color> - CSS: Cascading Style Sheets
a <color> may also include an alpha-
channel transparency value, indicating how the color should composite with its background.
...with the advent of alpha
channels in css colors level 3, transparent was redefined as a true color.
Cross-Origin Resource Policy (CORP) - HTTP
cross-origin resource policy is a policy set by the cross-origin-resource-policy http header that lets web sites and applications opt in to protection against certain requests from other origins (such as those issued with elements like <script> and <img>), to mitigate speculative side-
channel attacks, like spectre, as well as cross-site script inclusion attacks.
... in early 2018, two side-
channel hardware vulnerabilities known as meltdown and spectre were disclosed.
Web video codec guide - Web media technologies
instead of having the luma samples (representing the image's pixels in grayscale) and the cb and cr samples (indicating how to alter the grays to create color pixels), the three
channels are instead treated as three monochrome images, one for each color, which are then combined during rendering to produce a full-color image.
... if supported by the browser, vp8 allows video with an alpha
channel, allowing the video to play with the background able to be seen through the video to a degree specified by each pixel's alpha component.
in - SVG: Scalable Vector Graphics
sourcealpha has all of the same rules as sourcegraphic except that only the alpha
channel is used.
... backgroundalpha same as backgroundimage except only the alpha
channel is used.
preserveAlpha - SVG: Scalable Vector Graphics
nvolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes default value false value true | false animatable yes true this value indicates that the convolution will only apply to the color
channels.
... false this value indicates that the convolution will apply to all
channels, including the alpha
channel.
page-mod - Archive of obsolete content
each worker then represents a
channel of communication with the set of content scripts loaded by this particular page-mod into that particular document.
content/symbiont - Archive of obsolete content
usage a symbiont loads the specified contenturl and content scripts into a frame, and sets up an asynchronous
channel between the content scripts and the add-on code, enabling them to exchange messages using the port or postmessage apis.
system/events - Archive of obsolete content
var events = require("sdk/system/events"); var { ci } = require("chrome"); function listener(event) { var
channel = event.subject.queryinterface(ci.nsihttp
channel);
channel.setrequestheader("user-agent", "mybrowser/1.0", false); } events.on("http-on-modify-request", listener); globals functions emit(type, event) send an event to observer service parameters type : string the event type.
Downloading Files - Archive of obsolete content
function getimagefromurl(url) { var ioserv = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var
channel = ioserv.new
channel(url, 0, null); var stream =
channel.open(); if (
channel instanceof components.interfaces.nsihttp
channel &&
channel.responsestatus != 200) { return ""; } var bstream = components.classes["@mozilla.org/binaryinputstream;1"] .createinstance(components.interfaces.nsibinaryinputstream); bstream.setinputstream(stream); var size = 0; var file_data...
JS XPCOM - Archive of obsolete content
components.utils.import("resource://gre/modules/services.jsm"); components.utils.import("resource://gre/modules/xpcomutils.jsm"); const cc = components.classes; const ci = components.interfaces; function abouthandler() {} abouthandler.prototype = { new
channel: function(uri) { var
channel = services.io.new
channel("chrome://mystuff/content/mystuff.xul", null, null);
channel.originaluri = uri; return
channel; }, geturiflags: function(uri) { // do not return ci.nsiaboutmodule.uri_safe_for_untrusted_content unless // you make sure to set a non-system principal in new
channel.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
document.body.appendchild(parsehtml(document, xhr.responsetext, true, xhr.
channel.uri)); see also displaying web content in an extension without security issues how to create a dom tree node.textcontent node.appendchild() element.setattribute() document.createelement() document.createtextnode() original document information author(s): kris maglione last updated date: 2011-08-08 ...
MMgc - Archive of obsolete content
this is an unfortunate artifact of the existing code base, the avm+ is relatively clean and its reachability graph consists of basically 2 gc roots (the avmcore and urlstreams) but the avm- has a bunch (currently includes securitycallbackdata, moviecliploader, camerainstance, fappacket, microphoneinstance, csound
channel, urlrequest, responceobject, urlstream and urlstreamsecurity).
HTTP Class Overview - Archive of obsolete content
nshttphandler implements nsiprotocolhandler manages preferences owns the authentication cache holds references to frequently used services nshttp
channel implements nsihttp
channel talks to the cache initiates http transactions processes http response codes intercepts progress notifications nshttpconnection implements nsistreamlistener & nsistreamprovider talks to the socket transport service feeds data to its transaction object routes progress notifications nshttpconnectioninfo identifies a connection nshttptransaction imp...
Mozilla release FAQ - Archive of obsolete content
webpages mozilla project homepage netscape developer program website mozillazine (news service) mozilla evangelism effort mozdev projects irc server: irc.mozilla.org
channel #mozillazine note that recent versions of mozilla include an irc client.
2006-10-06 - Archive of obsolete content
discussion highlights: ziga sancin suggests writing an introductory article for potential developers containing basic project information (history, list of main developers, project goals, roadmap and available communication
channels, etc), tools needed to start developing and building tb, documentation on source structure as well as links to help one get started on the project.
Module - Archive of obsolete content
name common prefix status release date author atomic rss atom july 27, 2005 tim bray blog
channel september 17, 2002 dave winer content content creativecommons cc december 16, 2002 dave winer dublin core dc slash slash well-formed web wfw joe gregorio and chris sel...
0.90 - Archive of obsolete content
examples rss 0.90 looked something like this: <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" > <
channel> <title>mozilla dot org</title> <link>http://www.mozilla.org</link> <description>the mozilla organization web site</description> </
channel> <image> <title>mozilla</title> <url>http://www.mozilla.org/images/moz.gif</url> <link>http://www.mozilla.org</link> </image> <item> <title>ne...
Element - Archive of obsolete content
rss elements a <author> (rss author element) b c <category> (rss category element) <
channel> (rss
channel element) <cloud> (rss cloud element) <comments> (rss comments element) <copyright> (rss copyright element) d <day> (rss day element) <description> (rss description element) <docs> (rss docs element) e <enclosure> (rss enclosure element) f g <generator> (rss generator element) <guid> (rss guid element) h <height> (rss height element) <hour> (rss hour element) i <image> (rss image element) <item> (rss item element) j k l <language> (rss language element) <lastbuilddate> (rss last build date element) <link> (rss link element) m <managingeditor> (rss managing editor element) n <name> (rss name element) o p <pubdate> (rss publi...
UUID - Archive of obsolete content
uuid: universal unique identifier a uuid can be obtained by visiting http://www.famkruithof.net/uuid/uuidgen or by typing "firebot: uuid?" on irc.mozilla.org in a
channel where nickname "firebot" is present.
Community - Extensions
mozillazine extensions & themes forum #extdev
channel on moznet irc network — extension development questions #addons
channel on moznet irc network — questions about http://addons.mozilla.org mozdev project owners mailing list mozillazine knowledge base allyourideas — ideas for extensions ((really needs a unique captcha)) babelzilla — a community for developers and translators of extension for mozilla applications ...
Game distribution - Game development
you can put your html5 games into the same arena (see native desktop, later on) and you should because it's good to diversify the platforms you support, but you have to remember that developers creating desktop games have years of experience, great tools and stable distribution
channels.
GLSL Shaders - Game development
the texture shader code now we'll add the texture shader to the code — add the code below to the body's second <script> tag: void main() { gl_fragcolor = vec4(0.0, 0.58, 0.86, 1.0); } this will set an rgba color to recreate the current light blue one — the first three float values (ranging from 0.0 to 1.0) represent the red, green, and blue
channels while the fourth one is the alpha transparency (ranging from 0.0 — fully transparent — to 1.0 — fully opaque).
Techniques for game development - Game development
using webrtc peer-to-peer data
channels in addition to providing support for audio and video communication, webrtc lets you set up peer-to-peer data
channels to exchange text or binary data actively between your players.
Session Hijacking - MDN Web Docs Glossary: Definitions of Web-related terms
protection against session hijacking create a secure communication
channel with ssh (secure shell) pass authentication cookies over https connection implement logout functionality so the user can end the session generate the session id after successful login pass encrypted data between the users and the web server use a string or long random number as a session key learn more general knowledge session hijacking on wikipedia ...
MDN Web Docs Glossary: Definitions of Web-related terms
glossary of terms a abstraction accessibility accessibility tree (aom) adobe flash ajax algorithm alignment container alignment subject alpha (alpha
channel) alpn api apple safari application context argument aria arpa arpanet array ascii asynchronous atag attribute b bandwidth base64 baseline beacon bézier curve bidi bigint blink block ...
How do I start to design my website? - Learn web development
mail?) define how people will find those contact
channels from your website sell goodies create the goodies store the goodies find a way to handle shipping find a way to handle payment make a mechanism on your site for people to place orders teach music through videos record video lessons prepare video files viewable online (again, could you do this with existing web services...
Video and audio content - Learn web development
they define a structure in which the audio and/or video tracks that make up the media are stored, along with metadata describing the media, what codecs are used to encode its
channels, and so forth.
Mozilla accessibility architecture
join the community live chat both end users and developers are invited for discussion on the live irc
channel at irc.mozilla.org/#accessibility.
Information for users
ble resources, including a list of firefox themes that have been specially designed for those with low vision: themes with high color constrast themes with big icons themes with extra large and bright icons themes with extra large and extra bold text join the mozilla accessibility community live chat both end users and developers are invited for discussion on the live irc
channel at irc.mozilla.org/#accessibility.
ESLint
join the #eslint
channel on irc.mozilla.org and ask away.
Listening to events on all tabs
in such cases, the request itself should be queried for extended error information (e.g., for http requests see nsihttp
channel).
Developer guide
managing multiple profiles when working with prerelease versions of firefox, it's often helpful to have multiple firefox profiles, such as one for each
channel, or for different kinds of testing.
Firefox
firefox profiles if you find yourself using multiple firefox
channels—or just multiple configurations—on a regular basis, you should read how to use multiple firefox profiles by turning firefox's profile manager and other profile management tools to your advantage.
Glossary
actor bridge
channel child compressed message message nullable parent protocol state ...
IPDL Tutorial
any time a message implementation returns false, ipdl will immediately begin catastrophic error handling: the communication
channels for the child process (tab or plugin) will be disconnected, and the process will be terminated.
OS.File for the main thread
}, function(areason) { console.log('writeatomic failed for reason:', areason); } ); }; r.readasarraybuffer(b); }, 'image/png'); }; //var path = os.path.tofileuri(os.path.join(os.contants.path.desktopdir, 'my.png')); //do it like this for images on disk var path = 'https://mozorg.cdn.mozilla.net/media/img/firefox/
channel/toggler-beta.png?2013-06'; //do like this for images online img.src = path; example: append to file this example shows how to use open, write, and close to append to a file.
Index
if the documentation is incomplete or you have questions, please drop by the #l10n or #hg
channels on irc.mozilla.org.
Localizing with Mercurial
if the documentation is incomplete or you have questions, please drop by the #l10n or #hg
channels on irc.mozilla.org.
What every Mozilla translator should know
to keep the track of what's going on, it's also a good idea to read the planet mozilla l10n when you have a problem use the above mailing lists the person in charge of the mozilla l10n is axel hecht (l10n at mozilla.com), pike on irc another interesting way of getting help is the irc
channel #l10n at irc.mozilla.org useful tools the l10n dashboard pontoon narro translate toolkit koala 0.1 mozillatranslator mercurial the hg is organized into several repositories, sometimes called branches.
Mozilla MathML Project
mailing list newsgroup rss feed irc
channel wiki used by contributors - check out the latest developments and help us improving mathml in mozilla.
Performance
it is available on all platforms and release
channels, and also supports remote profiling b2g and fennec.
McCoy
specifically, it focuses on the process of digitally signing update manifests so the applications can verify the integrity of a manifest retrieved over normally insecure
channels.
About NSPR
that method of operation is preferred though it is possible to configure the network i/o
channels as non-blocking in the traditional sense.
Named Shared Memory
shared memory allows multiple processes to access one or more common shared memory regions, using it as an interprocess communication
channel.
An overview of NSS Internals
once the key agreement is done, a symmetric encryption will be used (until a potential re-handshake on an existing
channel).
NSS 3.12.6 release notes
in ocsp.h cert_cacheocspresponsefromside
channel: this function is intended for use when ocsp responses are provided via a side-
channel, i.e.
NSS_3.12_release_notes.html
bug 407866: contributed improvement to security/nss/lib/freebl/mpi/mp_comba.c bug 410587: ssl_get
channelinfo returns secsuccess on invalid arguments bug 416508: fix a _msc_ver typo in sha512.c, and use sec_begin_protos/sec_end_protos in secport.h bug 419242: 'all' is not the default makefile target in lib/softoken and lib/softoken/legacydb bug 419523: export cert_newtempcertificate.
NSS 3.21.2 release notes
security fixes in nss 3.21.2 bug 1293334 / cve-2016-9074 - fixed a timing side
channel in the tls cbc code.
NSS 3.34 release notes
ssl
channelinfo has two new fields (bug 1396525) sslnamedgroup originalkeagroup holds the key exchange group of the original handshake, when the session was resumed.
NSS 3.36.6 release notes
this is a patch release to fix cve-2018-12404 bugs fixed in nss 3.36.6 bug 1485864 - cache side-
channel variant of the bleichenbacher attack (cve-2018-12404) bug 1389967 and bug 1448748 - fixes for mingw on x64 platforms.
NSS 3.40.1 release notes
this is a patch release to fix cve-2018-12404 new functions none bugs fixed in nss 3.40.1 bug 1485864 - cache side-
channel variant of the bleichenbacher attack (cve-2018-12404) compatibility nss 3.40.1 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.41 release notes
opentrust root ca g2 sha-256 fingerprint: 27995829fe6a7515c1bfe848f9c4761db16c225929257bf40d0894f29ea8baf2 cn = opentrust root ca g3 sha-256 fingerprint: b7c36231706e81078c367cb896198f1e3208dd926949dd8f5709a410f75b6292 bugs fixed in nss 3.41 bug 1412829, reject empty supported_signature_algorithms in certificate request in tls 1.2 bug 1485864 - cache side-
channel variant of the bleichenbacher attack (cve-2018-12404) bug 1481271 - resend the same ticket in clienthello after helloretryrequest bug 1493769 - set session_id for external resumption tokens bug 1507179 - reject ccs after handshake is complete in tls 1.3 this bugzilla query returns all the bugs fixed in nss 3.41: https://bugzilla.mozilla.org/buglist.cgi?resolution=fixed&classif...
NSS 3.45 release notes
note: in 3.45 the ssl
channelinfo is left unmodified, while an upcoming change in 3.46 will set ssl
channelinfo.authkeybits to that of the delegated credential for better policy enforcement.
NSS Sample Code sample4
* in a real app, this function should obtain the password using secure means * such as prompting an operator, or retrieving it over a secure communication *
channel */ char *passwdcb(pk11slotinfo *info, prbool retry, void *arg); int main(int argc, char **argv) { secstatus rv; certcertificate *cert = null; seckeypublickey *pubkey = null; seckeyprivatekey *pvtkey = null; int modulus_len, i, outlen; char *buf1 = null; char *buf2 = null; /* initialize nss */ pk11_setpasswordfunc(passwdc...
NSS Sample Code sample6
* in a real app, this function should obtain the password using secure means * such as prompting an operator, or retrieving it over a secure communication *
channel */ char *passwdcb(pk11slotinfo *info, prbool retry, void *arg); int main(int argc, char **argv) { secstatus rv; /* initialize nss */ pk11_setpasswordfunc(passwdcb); /* the nss db must be initialized read-write since we'll be creating * keys in it.
NSS functions
sessioncache mxr 3.2 and later ssl_configmpserversidcache mxr 3.2 and later ssl_configsecureserver mxr 3.2 and later ssl_configserversessionidcache mxr 3.2 and later ssl_datapending mxr 3.2 and later ssl_forcehandshake mxr 3.2 and later ssl_forcehandshakewithtimeout mxr 3.11.4 and later ssl_get
channelinfo mxr 3.4 and later ssl_getciphersuiteinfo mxr 3.4 and later ssl_getclientauthdatahook mxr 3.2 and later ssl_getmaxservercachelocks mxr 3.4 and later ssl_getsessionid mxr 3.2 and later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and ...
SSL functions
sessioncache mxr 3.2 and later ssl_configmpserversidcache mxr 3.2 and later ssl_configsecureserver mxr 3.2 and later ssl_configserversessionidcache mxr 3.2 and later ssl_datapending mxr 3.2 and later ssl_forcehandshake mxr 3.2 and later ssl_forcehandshakewithtimeout mxr 3.11.4 and later ssl_get
channelinfo mxr 3.4 and later ssl_getciphersuiteinfo mxr 3.4 and later ssl_getclientauthdatahook mxr 3.2 and later ssl_getmaxservercachelocks mxr 3.4 and later ssl_getsessionid mxr 3.2 and later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and ...
Pork Tool Development
notes the #static
channel on irc.mozilla.org is for discussion of pork, dehydra, and other static analysis tools.
TPS Tests
feel free to ask for help with setting up and running tps in the #sync irc
channel!
compare-locales
to get a single result across the projects, specify the --unified flag: $ compare-locales --unified browser/locales/l10n.toml mobile/android/locales/l10n.toml ./l10n/ de cross-
channel and compare-locales if you're working against the gecko-strings cross-
channel repository, the toml configuration files are in the _configs subdirectory, browser.toml, mobile_android.toml, mail.toml and calendar.toml, and suite.toml.
Mozilla Projects
specifically, it focuses on the process of digitally signing update manifests so the applications can verify the integrity of a manifest retrieved over normally insecure
channels.
Handling Mozilla Security Bugs
we believe that investing this power in the bug reporter simply acknowledges reality, as nothing prevents the person reporting a security bug from publicizing information about the bug by posting it to
channels outside the context of the mozilla project.
Setting up an update server
then run these commands, substituting <obj dir>, <mar output path>, <version> and <
channel> appropriately: ./mach package touch "<obj dir>/dist/firefox/precomplete" mar="<obj dir>/dist/host/bin/mar.exe" moz_product_version=<version> mar_
channel_id=<
channel> ./tools/update-packaging/make_full_update.sh <mar output path> "<obj dir>/dist/firefox" for a local build, <
channel> can be default, and <version> can be the value from browser/config/version.txt (or something arbitrarily large l...
Animated PNG graphics
1 apng_blend_op_over the frame should be composited onto the output buffer based on its alpha, using a simple over operation as described in the alpha
channel processing section of the extensions to the png specification, version 1.2.0.
AT APIs Support
windows platform jaws windows eyes nvda linux/unix platform orca os x platform voiceover contacts please discuss accessibility issues on the mozilla accessibility groups or on the mozilla accessibility irc
channel.
Generating GUIDs
online tools generate guid online uuid (guid) generator on the web uuid generator for mozilla code (both idl and c++.h forms) you can get a guid from one of the bots (such as botbot, firebot) on #firefox irc
channel by /msging "uuid" to them.
An Overview of XPCOM
the communication
channels between different component form boundaries between those components, and when those boundaries are formalized they are known as interfaces.
imgIContainer
obsolete since gecko 2.0 preferredalpha
channelformat gfx_format read only.
imgIRequest
imageprincipal nsiprincipal the principal gotten from the
channel the image was loaded from.
nsIApplicationCache
see also offline resources in firefox nsiapplicationcachenamespace nsiapplicationcachecontainer nsiapplicationcache
channel nsiapplicationcacheservice nsidomofflineresourcelist ...
Thunderbird
ort is handled at mozilla support development discussion happens on the tb-planning mailing list: subscribe archives add-on developers forum/mailing list mozillazine forums mozilla messaging web page #thunderbird on irc.mozilla.org (for users) #maildev on irc.mozilla.org (for developers) a list of all thunderbird communication
channels ...
Animation inspector example: CSS transitions - Firefox Developer Tools
html content <div class="
channel"> <img src="https://udn.realityripple.com/samples/e6/a96484b5c3.png" class="icon"/> <span class="note">firefox developer edition</span> </div> css content .
channel { padding: 2em; margin: 0.5em; box-shadow: 1px 1px 5px #808080; margin: 1.5em; } .
channel > * { vertical-align: middle; line-height: normal; } .icon { width: 50px; height: 50px; filter: grayscale(100%); transition: transform 750ms ease-in, filter 750ms ease-in-out; } .note { margin-left: 1em; font: 1.5em "open sans",arial,sans-serif; overflow: hidden; white-space: nowrap; display: inline-block; opacity: 0; width: 0; transition: opacity 500ms 150ms, width 500ms 150ms; } .icon#selected...
Work with animations - Firefox Developer Tools
right-click in the box and select "inspect element" make sure the selected element is the <div class="
channel"> switch over to the "animations" tab play the animation let's take a closer look at the contents of the animation inspector here: it shows a synchronized timeline for every animation applied to the selected element or its children.
AnalyserNode - Web APIs
number of inputs 1 number of outputs 1 (but may be left unconnected)
channel count mode "max"
channel count 2
channel interpretation "speakers" inheritance this interface inherits from the following parent interfaces: <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: abs...
AudioBufferSourceNode.detune - Web APIs
example const audioctx = new audiocontext(); const
channelcount = 2; const framecount = audioctx.samplerate * 2.0; // 2 seconds const myarraybuffer = audioctx.createbuffer(
channelcount, framecount, audioctx.samplerate); for (let
channel = 0;
channel <
channelcount;
channel++) { const nowbuffering = myarraybuffer.get
channeldata(
channel); for (let i = 0; i < framecount; i++) { nowbuffering[i] = math.random() * 2 - 1; } } const source = audioct...
AudioParamDescriptor - Web APIs
// white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { static get parameterdescriptors () { return [{ name: 'customgain', defaultvalue: 1, minvalue: 0, maxvalue: 1, automationrate: 'a-rate' }] } process (inputs, outputs, parameters) { const output = outputs[0] output.foreach(
channel => { for (let i = 0; i <
channel.length; i++) {
channel[i] = (math.random() * 2 - 1) * (parameters['customgain'].length > 1 ?
AudioTrackList - Web APIs
var audiotracks = document.queryselector("video").audiotracks; monitoring track count changes in this example, we have an app that displays information about the number of
channels available.
AudioWorkletNode.parameters - Web APIs
// white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { static get parameterdescriptors () { return [{ name: 'customgain', defaultvalue: 1, minvalue: 0, maxvalue: 1, automationrate: 'a-rate' }] } process (inputs, outputs, parameters) { const output = outputs[0] output.foreach(
channel => { for (let i = 0; i <
channel.length; i++) {
channel[i] = (math.random() * 2 - 1) * (parameters['customgain'].length > 1 ?
AudioWorkletNode - Web APIs
// white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { process (inputs, outputs, parameters) { const output = outputs[0] output.foreach(
channel => { for (let i = 0; i <
channel.length; i++) {
channel[i] = math.random() * 2 - 1 } }) return true } } registerprocessor('white-noise-processor', whitenoiseprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode passing it the name of the processor, and connect the node to an audio graph.
AudioWorkletProcessor.parameterDescriptors (static getter) - Web APIs
// white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { static get parameterdescriptors () { return [{ name: 'customgain', defaultvalue: 1, minvalue: 0, maxvalue: 1, automationrate: 'a-rate' }] } process (inputs, outputs, parameters) { const output = outputs[0] output.foreach(
channel => { for (let i = 0; i <
channel.length; i++) {
channel[i] = (math.random() * 2 - 1) * (parameters['customgain'].length > 1 ?
AudioWorkletProcessor - Web APIs
// white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { process (inputs, outputs, parameters) { const output = outputs[0] output.foreach(
channel => { for (let i = 0; i <
channel.length; i++) {
channel[i] = math.random() * 2 - 1 } }) return true } } registerprocessor('white-noise-processor', whitenoiseprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode, passing it the name of the processor, then connect the node to an audio graph.
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.
BiquadFilterNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "max"
channel count 2 (not used in the default count mode)
channel interpretation "speakers" constructor biquadfilternode() creates a new instance of a biquadfilternode object.
CanvasRenderingContext2D.strokeStyle - Web APIs
(the red
channel has a fixed value.) <canvas id="canvas" width="150" height="150"></canvas> var ctx = document.getelementbyid('canvas').getcontext('2d'); for (let i = 0; i < 6; i++) { for (let j = 0; j < 6; j++) { ctx.strokestyle = `rgb( 0, ${math.floor(255 - 42.5 * i)}, ${math.floor(255 - 42.5 * j)})`; ctx.beginpath(); ctx.arc(12.5 + j * 25, 12.5 + i * 25, 10, 0, math.p...
Using images - Web APIs
because 24-bit png images include a full 8-bit alpha
channel, unlike gif and 8-bit png images, it can be placed onto any background without worrying about a matte color.
ConstantSourceNode() - Web APIs
let audiocontext = new audiocontext(); let myconstantsource = new constantsourcenode(audiocontext, { offset: 0.5 }); note: the new constantsourcenode created by the constructor has a
channelcount of 2.
ConvolverNode.buffer - Web APIs
the buffer property of the convolvernode interface represents a mono, stereo, or 4-
channel audiobuffer containing the (possibly multi
channel) impulse response used by the convolvernode to create the reverb effect.
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.
DynamicsCompressorNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "clamped-max"
channel count 2
channel interpretation "speakers" constructor dynamicscompressornode() creates a new instance of an dynamicscompressornode object.
Event - Web APIs
t domtransactionevent dragevent editingbeforeinputevent errorevent fetchevent focusevent gamepadevent hashchangeevent idbversionchangeevent inputevent keyboardevent mediastreamevent messageevent mouseevent mutationevent offlineaudiocompletionevent overconstrainederror pagetransitionevent paymentrequestupdateevent pointerevent popstateevent progressevent relatedevent rtcdata
channelevent rtcidentityerrorevent rtcidentityevent rtcpeerconnectioniceevent sensorevent storageevent svgevent svgzoomevent timeevent touchevent trackevent transitionevent uievent userproximityevent webglcontextevent wheelevent constructor event() creates an event object, returning it to the caller.
ExtendableMessageEvent.data - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by sending the data received via pushmessagedata to the main context via a
channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.lastEventId - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by sending the data received via pushmessagedata to the main context via a
channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.origin - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by sending the data received via pushmessagedata to the main context via a
channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent.source - Web APIs
examples when the following code is used inside a service worker to respond to a push messages by sending the data received via pushmessagedata to the main context via a
channel message, the event object of onmessage will be a extendablemessageevent.
ExtendableMessageEvent - Web APIs
extendablemessageevent.ports read only returns the array containing the messageport objects representing the ports of the associated message
channel.
HTMLAudioElement - Web APIs
mozsetup() sets up the audio stream to allow writing, given the number of audio
channels (1 or 2) and the sample rate in khz.
HTMLCanvasElement.getContext() - Web APIs
contextattributes you can use several context attributes when creating your rendering context, for example: const gl = canvas.getcontext('webgl', { antialias: false, depth: false }); 2d context attributes: alpha: boolean that indicates if the canvas contains an alpha
channel.
The HTML DOM API - Web APIs
broadcast
channel dedicatedworkerglobalscope message
channel messageevent messageport sharedworker sharedworkerglobalscope worker workerglobalscope workerlocation workernavigator websocket interfaces these interfaces, defined by the html specification, are used by the websockets_api.
IIRFilterNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "max"
channel count same as on the input
channel interpretation "speakers" typically, it's best to use the biquadfilternode interface to implement higher-order filters.
MediaCapabilities.decodingInfo() - Web APIs
example //create media configuration to be tested const mediaconfig = { type : 'file', // or 'media-source' audio : { contenttype : "audio/ogg", // valid content type
channels : 2, // audio
channels used by the track bitrate : 132700, // number of bits used to encode 1s of audio samplerate : 5200 // number of audio samples making up that 1s.
MediaCapabilitiesInfo - Web APIs
example // mediaconfiguration to be tested const mediaconfig = { type : 'file', audio : { contenttype : "audio/ogg",
channels : 2, bitrate : 132700, samplerate : 5200 }, }; // check support and performance navigator.mediacapabilities.decodinginfo(mediaconfig).then(result => { // result contains the media capabilities information console.log('this configuration is ' + (result.supported ?
MediaRecorder() - Web APIs
if bits per second values are not specified for video and/or audio, the default adopted for video is 2.5mbps, while the audio default is adaptive, depending upon the sample rate and the number of
channels.
MediaStreamTrackAudioSourceNode - Web APIs
number of inputs 0 number of outputs 1
channel count defined by the first audio mediastreamtrack passed to the audiocontext.createmediastreamtracksource() method that created it.
MediaTrackSettings - Web APIs
channelcount a long integer value indicating the current value of the
channelcount property, specifying the number of audio
channels present on the track (therefore indicating how many audio samples exist in each audio frame).
Using the Media Capabilities API - Web APIs
const videoconfiguration = { type: "file", video: { contenttype: "video/webm;codecs=vp8", width: 800, height: 600, bitrate: 10000, framerate: 15 } }; had we been querying the decodability of an audio file, we would create an audio configuration including the number of
channels and sample rate, leaving out the properties that apply only to video—namely, the dimensions and the frame rate: const audioconfiguration = { type: "file", audio: { contenttype: "audio/ogg",
channels: 2, bitrate: 132700, samplerate: 5200 } }; had we been testing encoding capabilities, we would have created a mediaencodingconfiguration, which requires the type ...
Media Capabilities API - Web APIs
if ('mediacapabilities' in navigator) { const audiofileconfiguration = { type : 'file', audio : { contenttype: "audio/mp3",
channels: 2, bitrate: 132700, samplerate: 5200 } }; navigator.mediacapabilities.decodinginfo(audiofileconfiguration).then(result => { console.log('this configuration is ' + (result.supported ?
MessagePort.close() - Web APIs
channel.port1.addeventlistener('message', handlemessage, false); function handlemessage(e) { para.innerhtml = e.data; textinput.value = ''; }
channel.port1.start(); you could stop messages being sent at any time using
channel.port1.close(); specifications specification status comment html living standardthe definition of 'close()' in that specification.
Navigator.mediaCapabilities - Web APIs
examples navigator.mediacapabilities.decodinginfo({ type : 'file', audio : { contenttype : "audio/mp3",
channels : 2, bitrate : 132700, samplerate : 5200 } }).then(function(result) { console.log('this configuration is ' + (result.supported ?
OffscreenCanvas.getContext() - Web APIs
contextattributes you can use several context attributes when creating your rendering context, for example: offscreen.getcontext("webgl", { antialias: false, depth: false }); 2d context attributes: alpha: boolean that indicates if the canvas contains an alpha
channel.
OscillatorNode - Web APIs
its basic property defaults (see audionode for definitions) are: number of inputs 0 number of outputs 1
channel count mode max
channel count 2 (not used in the default count mode)
channel interpretation speakers constructor oscillatornode() creates a new instance of an oscillatornode object, optionally providing an object specifying default values for the node's properties.
RTCPeerConnection.close() - Web APIs
example var pc = new rtcpeerconnection(); var dc = pc.createdata
channel("my
channel"); dc.onmessage = function (event) { console.log("received: " + event.data); pc.close(); // we decided to close after the first received message }; dc.onopen = function () { console.log("data
channel open"); }; dc.onclose = function () { console.log("data
channel close"); }; specifications specification status comment webrtc 1.0: real-time commun...
RTCPeerConnection.restartIce() - Web APIs
restartice() causes the negotiationneeded event to be fired on the rtcpeerconnection to inform the application that it should perform negotiation using its signaling
channel.
RTCRtpCodecCapability - Web APIs
properties
channels optional an unsigned integer value indicating the maximum number of
channels supported by the codec; for example, a codec that supports only mono sound would have a value of 1; stereo codecs would have a 2, etc.
RTCRtpTransceiver - Web APIs
each sdp media section describes one bidirectional srtp ("secure real time protocol") stream (excepting the media section for rtcdata
channel, if present).
RTCSessionDescription - Web APIs
example signaling
channel.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); }, logerro...
RTCStats.id - Web APIs
using the id, you can correlate two or more rtcstats-based objects in order to monitor statistics over time for a given webrtc object, such as an rtp stream, an rtcpeerconnection, or an rtcdata
channel.
RTCStatsReport - Web APIs
data-
channel an rtcdata
channelstats object which contains statistics about each rtcdata
channel on the connection.
RTCStatsType - Web APIs
data-
channel an rtcdata
channelstats object which contains statistics about each rtcdata
channel on the connection.
ScriptProcessorNode: audioprocess event - Web APIs
scriptprocessornode.onaudioprocess examples scriptnode.addeventlistener('audioprocess', function(audioprocessingevent) { // the input buffer is a song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output
channels (in this case there is only one) for (var
channel = 0;
channel < outputbuffer.numberof
channels;
channel++) { var inputdata = inputbuffer.get
channeldata(
channel); var outputdata = outputbuffer.get
channeldata(
channel); // loop through the 4096 samples for (var sample = 0; sample < inputbuffer.length; sample++) { // make output equal to the same as the input outputdat...
Service Worker API - Web APIs
extendablemessageevent the event object of a message event fired on a service worker (when a
channel message is received on the serviceworkerglobalscope from another context) — extends the lifetime of such events.
StereoPannerNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "clamped-max"
channel count 2
channel interpretation "speakers" constructor stereopannernode() creates a new instance of a stereopannernode object.
TextTrackList - Web APIs
var texttracks = document.queryselector("video").texttracks; monitoring track count changes in this example, we have an app that displays information about the number of
channels available.
Supporting both TouchEvent and MouseEvent - Web APIs
(s) touchend mousemove mousedown mouseup click if the touchstart, touchmove or touchend event is canceled during an interaction, no mouse or click events will be fired, and the resulting sequence of events would just be: touchstart zero or more touchmove events, depending on movement of the finger(s) touchend community touch events community group mail list w3c #touchevents irc
channel related topics and resources touch events overview using touch events touch and mouse (together again for the first time) ...
Using Touch Events - Web APIs
lauke) community touch events community group mail list w3c #touchevents irc
channel related topics and resources pointer events standard ...
USBDevice.clearHalt() - Web APIs
while (true) { let result = await data.transferin(1, 6); if (result.data && result.data.bytelength === 6) { console.log('
channel 1: ' + result.data.getuint16(0)); console.log('
channel 2: ' + result.data.getuint16(2)); console.log('
channel 5: ' + result.data.getuint16(4)); } if (result.status === 'stall') { console.warn('endpoint stalled.
VideoTrackList - Web APIs
var videotracks = document.queryselector("video").videotracks; monitoring track count changes in this example, we have an app that displays information about the number of
channels available.
WaveShaperNode - Web APIs
number of inputs 1 number of outputs 1
channel count mode "max"
channel count 2 (not used in the default count mode)
channel interpretation "speakers" constructor waveshapernode() creates a new instance of an waveshapernode object.
WebGLRenderingContext.pixelStorei() - Web APIs
glboolean false true, false webgl gl.unpack_premultiply_alpha_webgl multiplies the alpha
channel into the other color
channels glboolean false true, false webgl gl.unpack_colorspace_conversion_webgl default color space conversion or no color space conversion.
High-level guides - Web APIs
webrtc (web real-time communications) is a broad, multi-component system for setting up and operating complex audio, video, and data
channels across networks among two or more peers on the web.
Lighting a WebXR setting - Web APIs
the lighting estimation api specification mandates that all user agents perform temporal and spatial filtering to fuzz the data in a manner that reduces its usefulness for the purpose of locating the user or performing side-
channel attacks.
Web Workers API - Web APIs
in addition, workers may use xmlhttprequest for network i/o, with the exception that the responsexml and
channel attributes on xmlhttprequest always return null.
Worker - Web APIs
workers may use xmlhttprequest for network communication, but its responsexml and
channel attributes are always null.
Accessibility and Spacial Patterns - Accessibility
the phenomenon seems to be especially problematic for symbol/background combinations that differ only in the blue
channel." distance between stripes photosensitive seizures may be caused by static images as well as animation.
Subgrid - CSS: Cascading Style Sheets
see also on the mozilla developer youtube
channel, see the videos laying out forms using subgrid and don't wait to use subgrid for better card layouts hello subgrid!
drop-shadow() - CSS: Cascading Style Sheets
the box-shadow property creates a rectangular shadow behind an element's entire box, while the drop-shadow() filter function creates a shadow that conforms to the shape (alpha
channel) of the image itself.
opacity - CSS: Cascading Style Sheets
syntax values <alpha-value> a <number> in the range 0.0 to 1.0, inclusive, or a <percentage> in the range 0% to 100%, inclusive, representing the opacity of the
channel (that is, the value of its alpha
channel).
Event reference
messageerror messageevent messageport, web workers, broadcast
channel, window a message error is raised when a message is received by an object.
Guide to Web APIs - Developer guides
web apis from a to z aambient light eventsbbackground tasksbattery api beaconbluetooth apibroadcast
channel apiccss counter stylescss font loading api cssomcanvas api
channel messaging apiconsole apicredential management apiddomeencoding apiencrypted media extensionsffetch apifile system api frame timing apifullscreen apiggamepad api geolocation apihhtml drag and drop apihigh resolution timehistory apiiimage capture apiindexeddbintersection observer apillong tasks api mmedia capabilities api media ...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
st id="fruitsxx"> <option>cherry</option> <option>banana</option> <option>mango</option> <option>orange</option> <option>blueberry</option> </datalist> <datalist id="urlsxx"> <option>https://developer.mozilla.org</option> <option>https://caniuse.com/</option> <option>https://mozilla.com</option> <option>https://mdn.github.io</option> <option>https://www.youtube.com/user/firefox
channel</option> </datalist> <p><label for="textx">text</label> <input type="text" list="fruitsxx" id="textx"/></p> <p><label for="colorx">color</label> <input type="color" list="colorsxx" id="colorx"/></p> <p><label for="rangex">range</label> <input type="range" min="0" max="64" list="numbersxx" id="rangex"/></p> <p><label for="numberx">number</label> <input type="number" min="0" max="64" list="numbers...
MIME types (IANA media types) - HTTP
the audio codec and video codec guides list the various codecs that web browsers often support, providing compatibility details along with technical information such as how many audio
channels they support, what sort of compression is used, and what bit rates and so forth they're useful at.
CORS errors - HTTP
-control-allow-origin’ missing reason: cors header ‘access-control-allow-origin’ does not match ‘xyz’ reason: credential is not supported if the cors header ‘access-control-allow-origin’ is ‘*’ reason: did not find method in cors header ‘access-control-allow-methods’ reason: expected ‘true’ in cors header ‘access-control-allow-credentials’ reason: cors preflight
channel did not succeed reason: invalid token ‘xyz’ in cors header ‘access-control-allow-methods’ reason: invalid token ‘xyz’ in cors header ‘access-control-allow-headers’ reason: missing token ‘xyz’ in cors header ‘access-control-allow-headers’ from cors preflight
channel reason: multiple cors header ‘access-control-allow-origin’ not allowed ...
Configuring servers for Ogg media - HTTP
resentation-time: 0.000 basetime: 0.000 theora: serialno 0170995062 1790 packets in 1068 pages, 1.7 packets/page, 1.049% ogg overhead video-framerate: 29.983 fps video-width: 640 video-height: 360 vorbis: serialno 0708996688 4531 packets in 167 pages, 27.1 packets/page, 1.408% ogg overhead audio-samplerate: 44100 hz audio-
channels: 2 note that you can't simply serve up the reported content-duration line reported by oggz-info, because it's reported in hh:mm:ss format.
An overview of HTTP - HTTP
the web server on the opposite side of the communication
channel, is the server, which serves the document as requested by the client.
baseFrequency - SVG: Scalable Vector Graphics
example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'basefrequency' in that specification.
numOctaves - SVG: Scalable Vector Graphics
example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefrequency="0.05" numoctaves="3" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'numoctaves' in that specification.
operator - SVG: Scalable Vector Graphics
arithmetic this value indicates that the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute are combined using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 where: i1 and i2 indicate the corresponding pixel
channel values of the input image, which map to in and in2 respectively, and k1,k2,k3,and k4 indicate the values of the attributes with the same name.
result - SVG: Scalable Vector Graphics
<femorphology>, <feoffset>, <fespecularlighting>, <fetile>, and <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> usage notes value <filter-primitive-reference> default value none animatable yes <filter-primitive-reference> this value is a <custom-ident> and defines the name for the filter primitive.
seed - SVG: Scalable Vector Graphics
usage notes value <number> default value 0 animatable yes example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefrequency="0.05" seed="1000" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'seed' in that specification.
SVG Attribute reference - SVG: Scalable Vector Graphics
length to transform transform-origin type u u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v v-alphabetic v-hanging v-ideographic v-mathematical values vector-effect version vert-adv-y vert-origin-x vert-origin-y viewbox viewtarget visibility w width widths word-spacing writing-mode x x x-height x1 x2 x
channelselector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y y1 y2 y
channelselector z z zoomandpan svg attributes by category generic attributes core attributes id, lang, tabindex, xml:base, xml:lang, xml:space style attributes class, style conditional processing attributes externalresourcesrequired, ...
<feColorMatrix> - SVG: Scalable Vector Graphics
| r' | | r1 r2 r3 r4 r5 | | r | | g' | | g1 g2 g3 g4 g5 | | g | | b' | = | b1 b2 b3 b4 b5 | * | b | | a' | | a1 a2 a3 a4 a5 | | a | | 1 | | 0 0 0 0 1 | | 1 | in simplified terms, below is how each color
channel in the new pixel is calculated.
<feComposite> - SVG: Scalable Vector Graphics
if the arithmetic operation is chosen, each result pixel is computed using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 where: i1 and i2 indicate the corresponding pixel
channel values of the input image, which map to in and in2 respectively k1, k2, k3 and k4 indicate the values of the attributes with the same name usage context categoriesfilter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes » presentation attributes » filter primitive attributes » class st...
<feConvolveMatrix> - SVG: Scalable Vector Graphics
to illustrate, suppose you have a input image which is 5 pixels by 5 pixels, whose color values for one of the color
channels are as follows: 0 20 40 235 235 100 120 140 235 235 200 220 240 235 235 225 225 255 255 255 225 225 255 255 255 and you define a 3-by-3 convolution kernel as follows: 1 2 3 4 5 6 7 8 9 let's focus on the color value at the second row and second column of the image (source pixel value is 120).
<feFlood> - SVG: Scalable Vector Graphics
working draft removed <icccolor> value from flood-color property and defined that the alpha
channel of it gets multiplied with the computed value of the flood-opacity property.
<feTurbulence> - SVG: Scalable Vector Graphics
example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" x
channelselector="r" y
channelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of '<feturbulence>' in that specification.
Filter effects - SVG: Scalable Vector Graphics
th fill="#d90000" d="m60,56 c-30,0 -30,-40 0,-40 h80 c30,0 30,40 0,40z" /> <g fill="#ffffff" stroke="black" font-size="45" font-family="verdana" > <text x="52" y="52">svg</text> </g> </g> </svg> step 1 <fegaussianblur in="sourcealpha" stddeviation="4" result="blur"/> <fegaussianblur> takes in "sourcealpha", which is the alpha
channel of the source graphic, applies a blur of 4, and stores the result in a temporary buffer named "blur".
Secure contexts - Web security
resources that are not local, to be considered secure, must meet the following criteria: must be served over https:// or wss:// urls the security properties of the network
channel used to deliver the resource must not be considered deprecated feature detection pages can use feature detection to check whether they are in a secure context or not by using the issecurecontext boolean, which is exposed on the global scope.