Search completed in 1.20 seconds.
ReadableStream.ReadableStream() - Web APIs
the readable
stream() constructor creates and returns a readable
stream object from the given handlers.
... syntax var readable
stream = new readable
stream(underlyingsource[, queuingstrategy]); parameters underlyingsource an object containing methods and properties that define how the constructed
stream instance will behave.
...the contents of this method are defined by the developer, and should aim to get access to the
stream source, and do anything else required to set up the
stream fuctionality.
...And 23 more matches
WritableStream.WritableStream() - Web APIs
the writable
stream() constructor creates a new writable
stream object instance.
... syntax var writable
stream = new writable
stream(underlyingsink[, queuingstrategy]); parameters underlyingsink an object containing methods and properties that define how the constructed
stream instance will behave.
...the controller parameter passed to this method is a writable
streamdefaultcontroller.
...And 21 more matches
Media Capture and Streams API (Media Stream) - Web APIs
the media capture and
streams api, often called the media
streams api or simply media
stream api, is an api related to webrtc which provides support for
streaming audio and video data.
... it provides the interfaces and methods for working with the
streams and their constituent tracks, the constraints associated with data formats, the success and error callbacks when using the data asynchronously, and the events that are fired during the process.
... concepts and usage the api is based on the manipulation of a media
stream object representing a flux of audio- or video-related data.
...And 11 more matches
WritableStreamDefaultWriter.WritableStreamDefaultWriter() - Web APIs
the writable
streamdefaultwriter() constructor creates a new writable
streamdefaultwriter object instance.
... note: you generally wouldn't use this constructor manually; instead, you'd use the writable
stream.getwriter() method.
... syntax var writable
streamdefaultwriter = new writable
streamdefaultwriter(
stream); parameters
stream the writable
stream to be written to.
...And 11 more matches
ReadableStreamDefaultReader.ReadableStreamDefaultReader() - Web APIs
the readable
streamdefaultreader() constructor creates and returns a readable
streamdefaultreader object instance.
... note: you generally wouldn't use this constructor manually; instead, you'd use the readable
stream.getreader() method.
... syntax var readable
streamdefaultreader = new readable
streamdefaultreader(
stream); parameters
stream the readable
stream to be read.
...And 8 more matches
MediaStreamAudioSourceNode.mediaStream - Web APIs
the media
streamaudiosourcenode interface's read-only media
stream property indicates the media
stream that contains the audio track from which the node is receiving audio.
... this
stream was specified when the node was first created, either using the media
streamaudiosourcenode() constructor or the audiocontext.createmedia
streamsource() method.
... syntax audiosource
stream = media
streamaudiosourcenode.media
stream; value a media
stream representing the
stream which contains the media
streamtrack serving as the source of audio for the node.
...And 4 more matches
ReadableStreamBYOBReader.ReadableStreamBYOBReader() - Web APIs
the readable
streambyobreader() constructor creates and returns a readable
streambyobreader object instance.
... note: you generally wouldn't use this constructor manually; instead, you'd use the readable
stream.getreader() method.
... syntax var readable
streambyobreader = new readable
streambyobreader(
stream); parameters
stream the readable
stream to be read.
...And 3 more matches
MediaStreamAudioDestinationNode.MediaStreamAudioDestinationNode() - Web APIs
the media
streamaudiodestinationnode() constructor of the web audio api creates a new media
streamaudiodestinationnode object instance.
... syntax var myaudiodest = new media
streamaudiodestinationnode(context, options); parameters inherits parameters from the audionodeoptions dictionary.
... options optional an audionodeoptions dictionary object defining the properties you want the media
streamaudiodestinationnode to have.
...And 2 more matches
MediaStreamAudioDestinationNode.stream - Web APIs
the
stream property of the audiocontext interface represents a media
stream containing a single audiomedia
streamtrack with the same number of channels as the node itself.
... you can use this property to get a
stream out of the audio graph and feed it into another construct, such as a media recorder.
... syntax var audioctx = new audiocontext(); var destination = audioctx.createmedia
streamdestination(); var my
stream = destination.
stream; value a media
stream.
... example specifications specification status comment web audio apithe definition of '
stream' in that specification.
MediaStreamTrackAudioSourceOptions.mediaStreamTrack - Web APIs
the media
streamtrackaudiosourceoptions dictionary's media
streamtrack property must contain a reference to the media
streamtrack from which the media
streamtrackaudiosourcenode being created using the media
streamtrackaudiosourcenode() constructor.
... syntax media
streamtrackaudiosourceoptions = { media
streamtrack: audiosourcetrack; } media
streamtrackaudiosourceoptions.media
streamtrack = audiosourcetrack; value a media
streamtrack from which the audio output of the new media
streamtrackaudiosourcenode will be taken.
... example this example uses getusermedia() to obtain access to the user's camera, then creates a new media
streamaudiosourcenode from the first audio track provided by the device.
... let audioctx = new (window.audiocontext || window.webkitaudiocontext)(); if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( { audio: true, video: false }).then(function(
stream) { let options = { media
streamtrack:
stream.getaudiotracks()[0]; } let source = new media
streamtrackaudiosourcenode(audioctx, options); source.connect(audioctx.destination); }).catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('new getusermedia not supported on your browser!'); } specifications specification status comment web audio apithe definition of 'media
streamtrackaudiosourceoptions.media
stream' in that specification.
MediaStreamAudioSourceOptions.mediaStream - Web APIs
the media
streamaudiosourceoptions dictionary's media
stream property must specify the media
stream from which to retrieve audio data when instantiating a media
streamaudiosourcenode using the media
streamaudiosourcenode() constructor.
... syntax media
streamaudiosourceoptions = { media
stream: audiosource
stream; } media
streamaudiosourceoptions.media
stream = audiosource
stream; value a media
stream representing the
stream from which to use a media
streamtrack as the source of audio for the node.
... example specifications specification status comment web audio apithe definition of 'media
streamaudiosourceoptions.media
stream' in that specification.
MediaStreamEvent.stream - Web APIs
the read-only property media
streamevent.
stream returns the media
stream associated with the event.
... syntax var
stream = event.
stream; example pc.onadd
stream = function( ev ) { alert("a
stream (id: '" + ev.
stream.id + "') has been added to this connection."); }; ...
Streams - Plugins
« previousnext » this chapter describes using plug-in api functions to receive and send
streams.
...
streams are objects that represent urls and the data they contain, or data sent by a plug-in without an associated url.
... although a single
stream is associated with one specific instance of a plug-in, a plug-in can have more than one
stream object per instance.
...And 99 more matches
Using readable streams - Web APIs
as a javascript developer, programmatically reading and manipulating
streams of data received over the network, chunk by chunk, is very useful!
... but how do you use the
streams api’s readable
stream functionality?
... note: this article assumes that you understand the use cases of readable
streams, and are aware of the high-level concepts.
...And 66 more matches
XPCOM Stream Guide
what are
streams?
... in mozilla code, a
stream is an object which represents access to a sequence of characters.
... it is not that sequence of characters, though: the characters may not all be available when you read from the
stream.
...And 65 more matches
Streams API concepts - Web APIs
the
streams api adds a very useful set of tools to the web platform, providing objects allowing javascript to programmatically access
streams of data received over the network and process them as desired by the developer.
... some of the concepts and terminology associated with
streams might be new to you — this article explains all you need to know.
... readable
streams a readable
stream is a data source represented in javascript by a readable
stream object that flows from an underlying source — this is a resource somewhere on the network or elsewhere on your domain that you want to get data from.
...And 41 more matches
Live streaming web audio and video - Developer guides
live
streaming technology is often employed to relay live events such as sports, concerts and more generally tv and radio programmes that are output live.
... often shortened to just
streaming, live
streaming is the process of transmitting media 'live' to computers and devices.
... the key consideration when
streaming media to a browser is the fact that rather than playing a finite file we are relaying a file that is being created on the fly and has no pre-determined start or end.
...And 38 more matches
Streams API - Web APIs
the
streams api allows javascript to programmatically access
streams of data received over the network and process them as desired by the developer.
... concepts and usage
streaming involves breaking a resource that you want to receive over a network down into small chunks, then processing it bit by bit.
... with
streams being available to javascript, this all changes — you can now start processing raw data with javascript bit by bit as soon as it is available on the client-side, without needing to generate a buffer, string, or blob.
...And 36 more matches
nsIOutputStream
xpcom/io/nsioutput
stream.idlscriptable an interface describing a writable
stream of data.
... inherits from: nsisupports last changed in gecko 1.0 an output
stream may be "blocking" or "non-blocking" (see the isnonblocking() method).
... a blocking output
stream may suspend the calling thread in order to satisfy a call to close(), flush(), write(), writefrom(), or writesegments().
...And 35 more matches
nsIInputStream
xpcom/io/nsiinput
stream.idlscriptable this interface represents a readable
stream of data.
... inherits from: nsisupports last changed in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) an input
stream may be "blocking" or "non-blocking" (see the isnonblocking() method).
... a blocking input
stream may suspend the calling thread in order to satisfy a call to close(), available(), read(), or readsegments().
...And 34 more matches
Using writable streams - Web APIs
as a javascript developer, programmatically writing data to a
stream is very useful!
... this article explains the
streams api’s writable
stream functionality.
... note: this article assumes that you understand the use cases of writable
streams, and are aware of the high-level concepts.
...And 34 more matches
NPP_NewStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary notifies a plug-in instance of a new data
stream.
... syntax #include <npapi.h> nperror npp_new
stream(npp instance, npmimetype type, np
stream*
stream, npbool seekable, uint16* stype); parameters the function has the following parameters: instance pointer to current plug-in instance.
... type pointer to mime type of the
stream.
...And 32 more matches
nsIBinaryOutputStream
xpcom/io/nsibinaryoutput
stream.idlscriptable this interface allows writing of primitive data types (integers, floating-point values, booleans, and so on.) to a
stream in a binary, untagged, fixed-endianness format.
... inherits from: nsioutput
stream last changed in gecko 1.7 method overview void setoutput
stream(in nsioutput
stream aoutput
stream); void write8(in pruint8 abyte); void write16(in pruint16 a16); void write32(in pruint32 a32); void write64(in pruint64 a64); void writeboolean(in prbool aboolean); void writebytearray([array, size_is(alength)] in pruint8 abytes, in pruint32 alength); void writebytes(alength)] in string astring, in pruint32 alength); void writedouble(in double...
... adouble); void writefloat(in float afloat); void writestringz(in string astring); void writeutf8z(in wstring astring); void writewstringz(in wstring astring); methods setoutput
stream() sets the
stream to which output is directed.
...And 28 more matches
nsIScriptableInputStream
xpcom/io/nsiscriptableinput
stream.idlscriptable this interface provides scriptable access to a nsiinput
stream instance.
... inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview unsigned long available(); void close(); void init(in nsiinput
stream ainput
stream); string read(in unsigned long acount); acstring readbytes(in unsigned long acount); methods available() return the number of bytes currently available in the
stream.
... note: this method should not be used to determine the total size of a
stream, even if the
stream corresponds to a local file.
...And 25 more matches
nsIBinaryInputStream
xpcom/io/nsibinaryinput
stream.idlscriptable this interface allows consumption of primitive data types from a "binary
stream" containing untagged, big-endian binary data, that is as produced by an implementation of nsibinaryoutput
stream.
... inherits from: nsiinput
stream last changed in gecko 1.7 method overview pruint8 read8(); pruint16 read16(); pruint32 read32(); pruint64 read64(); unsigned long readarraybuffer(in pruint32 alength, in jsval aarraybuffer); prbool readboolean(); void readbytearray(in pruint32 alength, [array, size_is(alength), retval] out pruint8 abytes); void readbytes(in pruint32 alength, [size_is(alength), retval] out string astring); acstring readcstring(); double readdouble(); float readfloat(); as...
...tring readstring(); void setinput
stream(in nsiinput
stream ainput
stream); methods read8() reads from the
stream.
...And 24 more matches
MediaStream - Web APIs
the media
stream interface represents a
stream of media content.
... a
stream consists of several tracks such as video or audio tracks.
... each track is specified as an instance of media
streamtrack.you can obtain a media
stream object either by using the constructor or by calling mediadevices.getusermedia().
...And 23 more matches
Setting up adaptive streaming media sources - Developer guides
let's say you want to set up an adaptive
streaming media source on a server, to be consumed inside an html5 media element.
...this article explains how, looking at two of the most common formats: mpeg-dash and hls (http live
streaming.) choosing formats in terms of adaptive
streaming formats, there are many to choose from; we decided to choose the following two as between them we can support most modern browsers.
... mpeg-dash hls (http live
streaming) in order to adaptively
stream media we need to split the media up into chunks.
...And 22 more matches
WritableStream - Web APIs
the writable
stream interface of the the
streams api provides a standard abstraction for writing
streaming data to a destination, known as a sink.
... constructor writable
stream() creates a new writable
stream object.
... properties writable
stream.locked read only a boolean indicating whether the writable
stream is locked to a writer.
...And 19 more matches
io/text-streams - Archive of obsolete content
experimental provides
streams for reading and writing text.
... fileio.open(filename, "r"); if (!textreader.closed) { text = textreader.read(); textreader.close(); } } return text; } function writetexttofile(text, filename) { var fileio = require("sdk/io/file"); var textwriter = fileio.open(filename, "w"); if (!textwriter.closed) { textwriter.write(text); textwriter.close(); } } globals constructors textreader(input
stream, charset) creates a buffered input
stream that reads text from a backing
stream using a given text encoding.
... parameters input
stream :
stream the backing
stream, an nsiinput
stream.
...And 18 more matches
nsIStreamConverter
netwerk/
streamconv/public/nsi
streamconverter.idlscriptable provides an interface to implement when you have code that converts data from one type to another.
... inherits from: nsi
streamlistener last changed in gecko 1.7 suppose you had code that converted plain text into html.
...
stream converter users there are currently two ways to use a
stream converter: synchronous:
stream to
stream.
...And 18 more matches
nsIAsyncInputStream
xpcom/io/nsiasyncinput
stream.idlscriptable please add a summary to this article.
... inherits from: nsiinput
stream last changed in gecko 1.7 if an input
stream is non-blocking, it may return ns_base_
stream_would_block when read.
... the caller must then wait for the
stream to have some data to read.
...And 17 more matches
nsIAsyncOutputStream
xpcom/io/nsiasyncoutput
stream.idlscriptable please add a summary to this article.
... inherits from: nsioutput
stream last changed in gecko 1.7 if an output
stream is non-blocking, it may return ns_base_
stream_would_block when written to.
... the caller must then wait for the
stream to become writable.
...And 17 more matches
MediaStreamTrack - Web APIs
the media
streamtrack interface represents a single media track within a
stream; typically, these are audio or video tracks, but other track types may exist as well.
... properties in addition to the properties listed below, media
streamtrack has constrainable properties which can be set using applyconstraints() and accessed using getconstraints() and getsettings().
... media
streamtrack.contenthint a string that may be used by the web application to provide a hint as to what type of content the track contains to guide how it should be treated by api consumers.
...And 17 more matches
WritableStreamDefaultWriter - Web APIs
the writable
streamdefaultwriter interface of the the
streams api is the object returned by writable
stream.getwriter() and once created locks the writer to the writable
stream ensuring that no other
streams can write to the underlying sink.
... constructor writable
streamdefaultwriter() creates a new writable
streamdefaultwriter object instance.
... properties writable
streamdefaultwriter.closedread only allows you to write code that responds to an end to the
streaming process.
...And 17 more matches
RTCRtpStreamStats - Web APIs
the rtcrtp
streamstats dictionary is returned by the rtcpeerconnection.getstats(), rtcrtpsender.getstats(), and rtcrtpreceiver.getstats() methods to provide detailed statistics about webrtc connectivity.
... rtcrtp
streamstats is the base class for all rtp-related statistics reports.
... note: this interface was called rtcrtp
streamstats until a specification update in the spring of 2017.
...And 16 more matches
MediaStreamAudioSourceNode - Web APIs
the media
streamaudiosourcenode interface is a type of audionode which operates as an audio source whose media is received from a media
stream obtained using the webrtc or media capture and
streams apis.
... a media
streamaudiosourcenode has no inputs and exactly one output, and is created using the audiocontext.createmedia
streamsource() method.
... the media
streamaudiosourcenode takes the audio from the first media
streamtrack whose kind attribute's value is audio.
...And 15 more matches
ReadableStream - Web APIs
the readable
stream interface of the
streams api represents a readable
stream of byte data.
... the fetch api offers a concrete instance of a readable
stream through the body property of a response object.
... constructor readable
stream() creates and returns a readable
stream object from the given handlers.
...And 15 more matches
io/byte-streams - Archive of obsolete content
experimental provides
streams for reading and writing bytes.
...pen(filename, "rb"); if (!bytereader.closed) { data = bytereader.read(); bytereader.close(); } } return data; } function writebinarydatatofile(data, filename) { var fileio = require("sdk/io/file"); var bytewriter = fileio.open(filename, "wb"); if (!bytewriter.closed) { bytewriter.write(data); bytewriter.close(); } } globals constructors bytereader(input
stream) creates a binary input
stream that reads bytes from a backing
stream.
... parameters input
stream :
stream the backing
stream, an nsiinput
stream.
...And 14 more matches
NPStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary represents a
stream of data either produced by the browser and consumed by the plug-in, or produced by the plug-in and consumed by the browser.
... syntax typedef struct _np
stream { void* pdata; /* plug-in private data */ void* ndata; /* netscape private data */ const char* url; uint32 end; uint32 lastmodified; void* notifydata; const char *headers; } np
stream; fields the data structure has the following fields: plug-in-private value that the plug-in can use to store a pointer to private data associated with the instance; not modified by the browser.
... url the url that the data in the
stream is read from or written to.
...And 14 more matches
RTCOutboundRtpStreamStats - Web APIs
the rtcoutboundrtp
streamstats dictionary is the rtcstats-based object which provides metrics and statistics related to an outbound rtp
stream being sent by an rtcrtpsender.
... properties the rtcoutboundrtp
streamstats dictionary includes the following properties in addition to those it inherits from rtcsentrtp
streamstats, rtcrtp
streamstats, and rtcstats.
...this is an indicator of how often the
stream has lagged, requiring frames to be skipped in order to catch up.
...And 14 more matches
ReadableStreamDefaultReader.read() - Web APIs
the read() method of the readable
streamdefaultreader interface returns a promise providing access to the next chunk in the
stream's internal queue.
... syntax var promise = readable
streamdefaultreader.read(); parameters none.
... return value a promise, which fulfills/rejects with a result depending on the state of the
stream.
...And 13 more matches
LocalMediaStream - Web APIs
the localmedia
stream interface was part of the media capture and
streams api, representing a
stream of data being generated locally (such as by getusermedia().
... however, getusermedia() now returns a media
stream instead, and this interface has been removed from the specification.
... warning: this interface is no longer available in any main
stream browser.
...And 12 more matches
ReadableStream.pipeThrough() - Web APIs
the pipethrough() method of the readable
stream interface provides a chainable way of piping the current
stream through a transform
stream or any other writable/readable pair.
... piping a
stream will generally lock it for the duration of the pipe, preventing other readers from locking it.
... syntax var transformed
stream = readable
stream.pipethrough(transform
stream[, options]); parameters transform
stream a transform
stream (or an object with the structure {writable, readable}) consisting of a readable
stream and a writable
stream working together to transform some data from one form to another.
...And 12 more matches
MediaStream Image Capture API - Web APIs
the media
stream image capture api is an api for capturing images or videos from a photographic device.
... media
stream image capture concepts and usage the process of retrieving an image or video
stream happens as described below.
...this method returns a promise that resolves with a media
stream object.
...And 11 more matches
ReadableStreamDefaultController - Web APIs
the readable
streamdefaultcontroller interface of the
streams api represents a controller allowing control of a readable
stream's state and internal queue.
... default controllers are for
streams that are not byte
streams.
...readable
streamdefaultcontroller instances are created automatically during readable
stream construction.
...And 11 more matches
ReadableStreamDefaultReader.cancel() - Web APIs
the cancel() method of the readable
streamdefaultreader interface cancels the
stream, signaling a loss of interest in the
stream by a consumer.
... cancel is used when you've completely finished with the
stream and don't need any more data from it, even if there are chunks enqueued waiting to be read.
... that data is lost after cancel is called, and the
stream is not readable any more.
...And 11 more matches
WritableStream.getWriter() - Web APIs
the getwriter() method of the writable
stream interface returns a new instance of writable
streamdefaultwriter and locks the
stream to that instance.
... while the
stream is locked, no other writer can be acquired until this one is released.
... syntax var writer = writable
stream.getwriter(); parameters none.
...And 11 more matches
nsIMIMEInputStream
netwerk/base/public/nsimimeinput
stream.idlscriptable the mime
stream separates headers and a data
stream.
... inherits from: nsiinput
stream last changed in gecko 1.3 implemented by: @mozilla.org/network/mime-input-
stream;1.
... to create an instance, use: var mimeinput
stream = components.classes["@mozilla.org/network/mime-input-
stream;1"] .createinstance(components.interfaces.nsimimeinput
stream); method overview void addheader(in string name, in string value); void setdata(in nsiinput
stream stream); attributes attribute type description addcontentlength boolean when true a "content-length" header is automatically added to the
stream.
...And 10 more matches
nsISeekableStream
xpcom/io/nsiseekable
stream.idlscriptable provides seeking support in data
streams.
... inherits from: nsisupports last changed in gecko 1.7 method overview void seek(in long whence, in long long offset); void seteof(); long long tell(); constants constant value description ns_seek_set 0 specifies that the offset is relative to the start of the
stream.
... ns_seek_cur 1 specifies that the offset is relative to the current position in the
stream.
...And 10 more matches
ReadableStream.getReader() - Web APIs
the getreader() method of the readable
stream interface creates a reader and locks the
stream to it.
... while the
stream is locked, no other reader can be acquired until this one is released.
... syntax var reader = readable
stream.getreader({mode}); parameters {mode} optional an object containing a property mode, which takes as its value a domstring specifying the type of reader to create.
...And 10 more matches
WritableStreamDefaultWriter.close() - Web APIs
the close() method of the writable
streamdefaultwriter interface closes the associated writable
stream.
...during this time any further attempts to write will fail (without erroring the
stream).
... syntax var promise = writable
streamdefaultwriter.close(); parameters none.
...And 10 more matches
WritableStreamDefaultWriter.write() - Web APIs
the write() property of the writable
streamdefaultwriter interface writes a passed chunk of data to a writable
stream and its underlying sink, then returns a promise that resolves to indicate the success or failure of the write operation.
... syntax var promise = writable
streamdefaultwriter.write(chunk); parameters chunk a block of binary data to pass to the writable
stream.
... return value a promise, which fulfills with the undefined upon a successful write, or rejects if the write fails or
stream becomes errored before the writing process is initiated.
...And 10 more matches
The Publicity Stream API
the publicity
stream the publicity
stream is a mozilla-hosted activity
stream generated by a user's application usage.
... the publicity
stream is provided as a central place for applications to publicize application usage for the purpose of notifying a user's friends of the applications which their friends are using.
...publicity
stream api (navigator.apps.publicity.*) the publicity api is exposed as properties on the navigator.apps.publicity object.
...And 9 more matches
MediaStreamTrackAudioSourceNode - Web APIs
the media
streamtrackaudiosourcenode interface is a type of audionode which represents a source of audio data taken from a specific media
streamtrack obtained through the webrtc or media capture and
streams apis.
... a media
streamtrackaudiosourcenode has no inputs and exactly one output, and is created using the audiocontext.createmedia
streamtracksource() method.
... this interface is similar to media
streamaudiosourcenode, except it lets you specifically state the track to use, rather than assuming the first audio track on a
stream.
...And 9 more matches
MediaStream Recording API - Web APIs
the media
stream recording api, sometimes simply referred to as the media recording api or the mediarecorder api, is closely affiliated with the media capture and
streams api and the webrtc api.
... the media
stream recording api makes it possible to capture the data generated by a media
stream or htmlmediaelement object for analysis, processing, or saving to disk.
... basic concepts the media
stream recording api is comprised of a single major interface, mediarecorder, which does all the work of taking the data from a media
stream and delivering it to you for processing.
...And 9 more matches
RTCInboundRtpStreamStats - Web APIs
the webrtc api's rtcinboundrtp
streamstats dictionary, based upon rtcreceivedrtp
streamstats and rtcstats, contains statistics related to the receiving end of an rtp
stream on the local end of the rtcpeerconnection.
... properties the rtcinboundrtp
streamstats dictionary is based on the rtcreceivedrtp
streamstats dictionary, whose properties are also available.
...this is an indicator of how often the
stream has lagged, requiring frames to be skipped in order to catch up.
...And 9 more matches
ReadableStream.tee() - Web APIs
the tee() method of the readable
stream interface tees the current readable
stream, returning a two-element array containing the two resulting branches as new readable
stream instances.
... this is useful for allowing two readers to read a
stream simultaneously, perhaps at different speeds.
... you might do this for example in a serviceworker if you want to fetch a response from the server and
stream it to the browser, but also
stream it to the serviceworker cache.
...And 9 more matches
TransformStream - Web APIs
the transform
stream interface of the
streams api represents a set of transformable data.
... constructor transform
stream() creates and returns a transform
stream object from the given handlers.
... properties transform
stream.readable read only the readable end of a transform
stream.
...And 9 more matches
NPN NewStream - Archive of obsolete content
summary requests the creation of a new data
stream produced by the plug-in and consumed by the browser.
... syntax #include <npapi.h> nperror npn_new
stream(npp instance, npmimetype type, const char* target, np
stream**
stream); parameters the function has the following parameters: instance pointer to current plug-in instance.
... type mime type of the
stream.
...And 8 more matches
DisplayMediaStreamConstraints.video - Web APIs
the displaymedia
streamconstraints dictionary's video property is used to configure the video track in the
stream returned by getdisplaymedia().
... more precise control over the format of the returned video track may be exercised by instead providing a mediatrackconstraints object, which is used to process the video data after obtaining it from the device but prior to adding it to the
stream.
... syntax displaymedia
streamconstraints.video = allowvideoflag; displaymedia
streamconstraints.video = mediatrackconstraints; displaymedia
streamconstraints = { video: allowvideoflag | mediatrackconstraints; } value the value may be either a boolean or a mediatrackconstraints object.
...And 8 more matches
RTCRtpSender.setStreams() - Web APIs
the rtcrtpsender method set
streams() associates the sender's track with the specified media
stream or array of media
stream objects.
... syntax rtcrtpsender.set
streams(media
stream); rtcrtpsender.set
streams([media
stream...]); parameters media
stream or [media
stream...] optional an media
stream object—or an array of multiple media
stream objects—identifying the
streams to which the rtcrtpsender's track belongs.
... if this parameter isn't specified, no new
streams will be associated with the track.
...And 8 more matches
ReadableStream.pipeTo() - Web APIs
the pipeto() method of the readable
stream interface pipes the current readable
stream to a given writable
stream and returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
... piping a
stream will generally lock it for the duration of the pipe, preventing other readers from locking it.
... syntax var promise = readable
stream.pipeto(destination[, options]); parameters destination a writable
stream that acts as the final destination for the readable
stream.
...And 8 more matches
ReadableStreamDefaultReader - Web APIs
the readable
streamdefaultreader interface of the
streams api represents a default reader that can be used to read
stream data supplied from a network (e.g.
... constructor readable
streamdefaultreader() creates and returns a readable
streamdefaultreader object instance.
... properties readable
streamdefaultreader.closed read only allows you to write code that responds to an end to the
streaming process.
...And 8 more matches
NPN_DestroyStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary closes and deletes a
stream.
... syntax #include <npapi.h> nperror npn_destroy
stream(npp instance, np
stream*
stream, nperror reason); parameters the function has the following parameters: instance pointer to current plug-in instance.
...
stream pointer to current
stream, initiated by either the browser or the plug-in.
...And 7 more matches
NPP_DestroyStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary tells the plug-in that a
stream is about to be closed or destroyed.
... syntax #include <npapi.h> nperror npp_destroy
stream(npp instance, np
stream*
stream, npreason reason); parameters the function has the following parameters: instance pointer to current plug-in instance.
...
stream pointer to current
stream.
...And 7 more matches
nsIConverterInputStream
xpcom/io/nsiconverterinput
stream.idlscriptable a unichar input
stream that wraps an input
stream.
... this allows reading unicode strings from a
stream, automatically converting the bytes from a selected character encoding.
... 1.0 66 introduced gecko 1.8 inherits from: nsiunicharinput
stream last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/intl/converter-input-
stream;1.
...And 7 more matches
AudioContext.createMediaStreamSource() - Web APIs
the createmedia
streamsource() method of the audiocontext interface is used to create a new media
streamaudiosourcenode object, given a media
stream (say, from a mediadevices.getusermedia instance), the audio from which can then be played and manipulated.
... for more details about media
stream audio source nodes, check out the media
streamaudiosourcenode reference page.
... syntax audiosourcenode = audiocontext.createmedia
streamsource(
stream); parameters
stream a media
stream to serve as an audio source to be fed into an audio processing graph for use and manipulation.
...And 7 more matches
Using the MediaStream Recording API - Web APIs
the media
stream recording api makes it easy to record audio and/or video
streams.
...ackground-image: linear-gradient(to top right, rgba(0,0,0,0), rgba(0,0,0,0.5)); } last, we write a rule to say that when the checkbox is checked (when we click/focus the label), the adjacent <aside> element will have its horizontal translation value changed and transition smoothly into view: input[type=checkbox]:checked ~ aside { transform: translatex(0); } basic app setup to grab the media
stream we want to capture, we use getusermedia().
... we then use the mediarecorder api to record the
stream, and output each recorded snippet into the source of a generated <audio> element so it can be played back.
...And 7 more matches
ReadableStream.cancel() - Web APIs
the cancel() method of the readable
stream interface cancels the associated
stream.
... cancel is used when you've completely finished with the
stream and don't need any more data from it, even if there are chunks enqueued waiting to be read.
... that data is lost after cancel is called, and the
stream is not readable any more.
...And 7 more matches
ReadableStreamDefaultController.close() - Web APIs
the close() method of the readable
streamdefaultcontroller interface closes the associated
stream.
... readers will still be able to read any previously-enqueued chunks from the
stream, but once those are read, the
stream will become closed.
... if you want to completely get rid of the
stream and discard any enqueued chunks, you'd use readable
stream.cancel() or readable
streamdefaultreader.cancel().
...And 7 more matches
nsIAsyncStreamCopier
netwerk/base/public/nsiasync
streamcopier.idlscriptable this interface is used to copy the contents of one
stream to another.
... inherits from: nsirequest last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview void asynccopy(in nsirequestobserver aobserver, in nsisupports aobservercontext); void init(in nsiinput
stream asource, in nsioutput
stream asink, in nsieventtarget atarget, in boolean asourcebuffered, in boolean asinkbuffered, in unsigned long achunksize, in boolean aclosesource, in boolean aclosesink); methods asynccopy() starts the copy operation.
... init() initializes the
stream copier.
...And 6 more matches
AudioContext.createMediaStreamDestination() - Web APIs
the createmedia
streamdestination() method of the audiocontext interface is used to create a new media
streamaudiodestinationnode object associated with a webrtc media
stream representing an audio
stream, which may be stored in a local file or sent to another computer.
... the media
stream is created when the node is created and is accessible via the media
streamaudiodestinationnode's
stream attribute.
... this
stream can be used in a similar way as a media
stream obtained via navigator.getusermedia — it can, for example, be sent to a remote peer using the rtcpeerconnection add
stream() method.
...And 6 more matches
Blob.stream() - Web APIs
the blob interface's
stream() method returns a readable
stream which upon reading returns the data contained within the blob.
... syntax var
stream = blob.
stream(); parameters none.
... returns a readable
stream which, upon reading, returns the contents of the blob.
...And 6 more matches
DisplayMediaStreamConstraints.audio - Web APIs
the displaymedia
streamconstraints dictionary's audio property is used to specify whether or not to request that the media
stream containing screen display contents also include an audio track.
... this value may simply be a boolean, where true indicates that an audio track should be included an false (the default) indicates that no audio should be included in the
stream.
... more precise control over the audio data may be exercised by instead providing a mediatrackconstraints object, which is used to process the audio prior to adding it to the
stream.
...And 6 more matches
MediaStreamAudioSourceNode() - Web APIs
the web audio api's media
streamaudiosourcenode() constructor creates and returns a new media
streamaudiosourcenode object which uses the first audio track of a given media
stream as its source.
... note: another way to create a media
streamaudiosourcenode is to call theaudiocontext.createmedia
streamsource() method, specifying the
stream from which you want to obtain audio.
... syntax audiosourcenode = new media
streamaudiosourcenode(context, options); parameters context an audiocontext representing the audio context you want the node to be associated with.
...And 6 more matches
MediaStreamEvent - Web APIs
the media
streamevent interface represents events that occurs in relation to a media
stream.
... two events of this type can be thrown: add
stream and remove
stream.
... properties a media
streamevent being an event, this event also implements these properties.
...And 6 more matches
ReadableByteStreamController - Web APIs
the readablebyte
streamcontroller interface of the
streams api represents a controller allowing control of a readable
stream's state and internal queue.
... byte
stream controllers are for byte
streams.
...readablebyte
streamcontroller instances are created automatically during readable
stream construction.
...And 6 more matches
ReadableStreamBYOBReader - Web APIs
the readable
streambyobreader interface of the
streams api represents a byob ("bring your own buffer") reader that can be used to read
stream data supplied by the developer (e.g.
... a custom readable
stream() constructor).
... constructor readable
streambyobreader() creates and returns a readable
streambyobreader object instance.
...And 6 more matches
CanvasCaptureMediaStreamTrack - Web APIs
the canvascapturemedia
streamtrack interface represents the video track contained in a media
stream being generated from a <canvas> following a call to htmlcanvaselement.capture
stream().
... part of the media capture and
streams api.
... properties this interface inherits the properties of its parent, media
streamtrack.
...And 5 more matches
MediaStream() - Web APIs
the media
stream() constructor returns a newly-created media
stream, which serves as a collection of media tracks, each represented by a media
streamtrack object.
... if any parameters are given, the specified tracks are added to the new
stream.
... otherwise, the
stream has no tracks.
...And 5 more matches
MediaStream.onaddtrack - Web APIs
the media
stream.onaddtrack property is an eventhandler which specifies a function to be called when the addtrack event occurs on a media
stream instance.
... this happens when a new track of any kind is added to the media
stream.
... this event is fired when the browser adds a track to the
stream (such as when a rtcpeerconnection is renegotiated or a
stream being captured using htmlmediaelement.capture
stream() gets a new set of tracks because the media element being captured loaded a new source.
...And 5 more matches
MediaStream.onremovetrack - Web APIs
the media
stream.onremovetrack property is an eventhandler which specifies a function to be called when the removetrack event occurs on a media
stream instance.
... this happens when a track of any kind is removed from the media
stream.
... this event is fired when the browser removes a track from the
stream (such as when a rtcpeerconnection is renegotiated or a
stream being captured using htmlmediaelement.capture
stream() gets a new set of tracks because the media element being captured loaded a new source.
...And 5 more matches
MediaStreamTrackAudioSourceNode() - Web APIs
the web audio api's media
streamtrackaudiosourcenode() constructor creates and returns a new media
streamtrackaudiosourcenode object whose audio is taken from the media
streamtrack specified in the given options object.
... another way to create a media
streamtrackaudiosourcenode is to call theaudiocontext.createmedia
streamtracksource() method, specifying the media
streamtrack from which you want to obtain audio.
... syntax audiotracknode = new media
streamtrackaudiosourcenode(context, options); parameters context an audiocontext representing the audio context you want the node to be associated with.
...And 5 more matches
RTCPeerConnection.addStream() - Web APIs
the obsolete rtcpeerconnection method add
stream() adds a media
stream as a local source of audio or video.
...if the signalingstate is set to stable, the event negotiationneeded is sent on the rtcpeerconnection to indicate that ice negotiation must be repeated to consider the new
stream.
... syntax rtcpeerconnection.add
stream(media
stream); parameters media
stream a media
stream object indicating the
stream to add to the webrtc peer connection.
...And 5 more matches
ReadableStreamDefaultController.enqueue() - Web APIs
the enqueue() method of the readable
streamdefaultcontroller interface enqueues a given chunk in the associated
stream.
... syntax readable
streamdefaultcontroller.enqueue(chunk); parameters chunk the chunk to enqueue.
... exceptions typeerror the source object is not a readable
streamdefaultcontroller.
...And 5 more matches
WebAssembly.compileStreaming() - JavaScript
the webassembly.compile
streaming() function compiles a webassembly.module directly from a
streamed underlying source.
... this function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the webassembly.instantiate
streaming() function should be used).
... syntax promise<webassembly.module> webassembly.compile
streaming(source); parameters source a response object or a promise that will fulfill with one, representing the underlying source of a .wasm module you want to
stream and compile.
...And 5 more matches
AudioContext.createMediaStreamTrackSource() - Web APIs
the createmedia
streamtracksource() method of the audiocontext interface creates and returns a media
streamtrackaudiosourcenode which represents an audio source whose data comes from the specified media
streamtrack.
... this differs from createmedia
streamsource(), which creates a media
streamaudiosourcenode whose audio comes from the audio track in a specified media
stream whose id is first, lexicographically (alphabetically).
... syntax var audioctx = new audiocontext(); var track = audioctx.createmedia
streamtracksource(track); parameters track the media
streamtrack to use as the source of all audio data for the new node.
...And 4 more matches
DisplayMediaStreamConstraints - Web APIs
the displaymedia
streamconstraints dictionary is used to specify whether or not to include video and/or audio tracks in the media
stream to be returned by getdisplaymedia(), as well as what type of processing must be applied to the tracks.
... processing information is specified using mediatrackconstraints objects providing options which are applied to the track after the media data is received but before it is made available on the media
stream.
... properties audio a boolean or mediatrackconstraints value; if a boolean, this value simply indicates whether or not to include an audio track in the media
stream returned by getdisplaymedia().
...And 4 more matches
HTMLMediaElement.captureStream() - Web APIs
the capture
stream() property of the htmlmediaelement interface returns a media
stream object which is
streaming a real-time capture of the content being rendered in the media element.
... syntax var media
stream = mediaelement.capture
stream() parameters none.
... return value a media
stream object which can be used as a source for audio and/or video data by other media processing code, or as a source for webrtc.
...And 4 more matches
MediaStream.getAudioTracks() - Web APIs
the getaudiotracks() method of the media
stream interface returns a sequence that represents all the media
streamtrack objects in this
stream's track set where media
streamtrack.kind is audio.
... syntax var media
streamtracks = media
stream.getaudiotracks() parameters none.
... return value an array of media
streamtrack objects, one for each audio track contained in the
stream.
...And 4 more matches
MediaStreamConstraints - Web APIs
the media
streamconstraints dictionary is used when calling getusermedia() to specify what kinds of tracks should be included in the returned media
stream, and, optionally, to establish constraints for those tracks' settings.
... track constraints audio either a boolean (which indicates whether or not an audio track is requested) or a mediatrackconstraints object providing the constraints which must be met by the audio track included in the returned media
stream.
... video either a boolean (which indicates whether or not a video track is requested) or a mediatrackconstraints object providing the constraints which must be met by the video track included in the returned media
stream.
...And 4 more matches
MediaStreamTrack.stop() - Web APIs
the media
streamtrack.stop() method stops the track.
... syntax track.stop() description calling stop() tells the user agent that the track's source—whatever that source may be, including files, network
streams, or a local camera or microphone—is no longer needed by the media
streamtrack.
... examples stopping a video
stream in this example, we see a function which stops a
streamed video by calling stop() on every track on a given <video>.
...And 4 more matches
RTCPeerConnection.getStreamById() - Web APIs
the rtcpeerconnection.get
streambyid() method returns the media
stream with the given id that is associated with local or remote end of the connection.
... if no
stream matches, it returns null.
... this property has been replaced with the rtcpeerconnection.getlocal
streams and rtcpeerconnection.getremote
streams properties.
...And 4 more matches
RTCPeerConnection.onaddstream - Web APIs
the rtcpeerconnection.onadd
stream event handler is a property containing the code to execute when the add
stream event, of type media
streamevent, is received by this rtcpeerconnection.
... such an event is sent when a media
stream is added to this connection by the remote peer.
... syntax rtcpeerconnection.onadd
stream = eventhandler; value a function which handles add
stream events.
...And 4 more matches
RTCPeerConnection.onremovestream - Web APIs
the remove
stream event has been removed from the webrtc specification in favor of the existing removetrack event on the remote media
stream and the corresponding media
stream.onremovetrack event handler property of the remote media
stream.
... the rtcpeerconnection api is now track-based, so having zero tracks in the remote
stream is equivalent to the remote
stream being removed and the old remove
stream event.
... the rtcpeerconnection.onremove
stream event handler is a property containing the code to execute when the remove
stream event, of type media
streamevent, is received by this rtcpeerconnection.
...And 4 more matches
RTCRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcrtp
streamstats dictionary is a value generated by adding the quantization parameter (qp) values for every frame sent or received to date on the video track corresponding to this rtcrtp
streamstats object.
... syntax var qpsum = rtcrtp
streamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization parameter (qp) value for every frame sent or received so far on the track described by the rtcrtp
streamstats object.
... since the value of qp is typically larger to indicate higher compression factors, the larger this sum is, the more heavily compressed the
stream generally has been.
...And 4 more matches
ReadableStreamBYOBReader.read() - Web APIs
the read() method of the readable
streambyobreader interface returns a promise providing access to the next chunk in the byte
stream's internal queue.
... syntax var promise = readable
streambyobreader.read(view); parameters view the view to be read into.
... return value a promise, which fulfills/rejects with a result depending on the state of the
stream.
...And 4 more matches
ReadableStreamDefaultReader.releaseLock() - Web APIs
the releaselock() method of the readable
streamdefaultreader interface releases the reader's lock on the
stream.
... if the associated
stream is errored when the lock is released, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed.
... a reader’s lock cannot be released while it still has a pending read request, i.e., if a promise returned by the reader’s readable
streamdefaultreader.read() method has not finished.
...And 4 more matches
WritableStreamDefaultWriter.abort() - Web APIs
the abort() method of the writable
streamdefaultwriter interface aborts the
stream, signaling that the producer can no longer successfully write to the
stream and it is to be immediately moved to an error state, with any queued writes discarded.
... if the writer is active, the abort() method behaves the same as that for the associated
stream (writable
stream.abort()).
... syntax var promise = writable
streamdefaultwriter.abort(reason); parameters reason optional a domstring representing a human-readable reason for the abort.
...And 4 more matches
WebAssembly.instantiateStreaming() - JavaScript
the webassembly.instantiate
streaming() function compiles and instantiates a webassembly module directly from a
streamed underlying source.
... syntax promise<resultobject> webassembly.instantiate
streaming(source, importobject); parameters source a response object or a promise that will fulfill with one, representing the underlying source of a .wasm module you want to
stream, compile, and instantiate.
... examples instantiating
streaming the following example (see our instantiate-
streaming.html demo on github, and view it live also) directly
streams a .wasm module from an underlying source then compiles and instantiates it, the promise fulfilling with a resultobject.
...And 4 more matches
Guide to streaming audio and video - Web media technologies
in this guide, we'll examine the techniques used to
stream audio and/or video media on the web, and how you can optimize your code, your media, your server, and the options you use while performing the
streaming to bring out the best quality and performance possible.
... <<<...xxxxxx...>>> protocols in addition to the configuration of the server and the
streaming code, there are sometimes special protocols which can be used to optimize performance.
... https live
streaming https live
streaming (hls) is a protocol developed by apple and supported by safari on all of their platforms.
...And 4 more matches
NPP_StreamAsFile - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary provides a local file name for the data from a
stream.
... syntax #include <npapi.h> void npp_
streamasfile(npp instance, np
stream*
stream, const char* fname); parameters the function has the following parameters: instance pointer to current plug-in instance.
...
stream pointer to current
stream.
...And 3 more matches
nsIConverterOutputStream
xpcom/io/nsiconverteroutput
stream.idlscriptable this interface allows writing strings to a
stream, doing automatic character encoding conversion.
... 1.0 66 introduced gecko 1.8 inherits from: nsiunicharoutput
stream last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/intl/converter-output-
stream;1.
... to create an instance, use: var converteroutput
stream = components.classes["@mozilla.org/intl/converter-output-
stream;1"] .createinstance(components.interfaces.nsiconverteroutput
stream); method overview void init(in nsioutput
stream aout
stream, in string acharset, in unsigned long abuffersize, in prunichar areplacementcharacter); methods init() initialize this
stream.
...And 3 more matches
MediaStream.getVideoTracks() - Web APIs
the getvideotracks() method of the media
stream interface returns a sequence of media
streamtrack objects representing the video tracks in this
stream.
... syntax var media
streamtracks[] = media
stream.getvideotracks(); parameters none.
... return value an array of media
streamtrack objects, one for each video track contained in the media
stream.
...And 3 more matches
MediaStreamAudioDestinationNode - Web APIs
the media
streamaudiodestinationnode interface represents an audio destination consisting of a webrtc media
stream with a single audiomedia
streamtrack, which can be used in a similar way to a media
stream obtained from navigator.getusermedia.
... it is an audionode that acts as an audio destination, created using the audiocontext.createmedia
streamdestination method.
... number of inputs 1 number of outputs 0 channel count 2 channel count mode "explicit" channel count interpretation "speakers" constructor media
streamaudiodestinationnode.media
streamaudiodestinationnode() creates a new media
streamaudiodestinationnode object instance.
...And 3 more matches
MediaStreamConstraints.audio - Web APIs
the media
streamconstraints dictionary's audio property is used to indicate what kind of audio track, if any, should be included in the media
stream returned by a call to getusermedia().
... syntax var audioconstraints = true | false | mediatrackconstraints; value the value of the audio property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not an audio track should be included in the returned
stream; if it's true, an audio track is included; if no audio source is available or if permission is not given to use the audio source, the call to getusermedia() will fail.
...dding-bottom: 4px; color: white; background-color: darkgreen; } javascript content let audioelement = document.getelementbyid("audio"); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ audio: true }).then(
stream => audioelement.srcobject =
stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which uses getusermedia() to obtain an audio-only
stream with no specific constraints, then attaches the resulting
stream to an <audio> element once the
stream is returned.
...And 3 more matches
MediaStreamConstraints.video - Web APIs
the media
streamconstraints dictionary's video property is used to indicate what kind of video track, if any, should be included in the media
stream returned by a call to getusermedia().
... syntax var videoconstraints = true | false | mediatrackconstraints; value the value of the video property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not a video track should be included in the returned
stream; if it's true, a video track is included; if no video source is available or if permission is not given to use the video source, the call to getusermedia() will fail.
...ing-bottom: 4px; color: white; background-color: darkgreen; } javascript content let videoelement = document.getelementbyid("video"); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ video: true }).then(
stream => videoelement.srcobject =
stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which uses getusermedia() to obtain a video-only
stream with no specific constraints, then attaches the resulting
stream to a <video> element once the
stream is returned.
...And 3 more matches
MediaStreamTrackEvent() - Web APIs
the media
streamtrackevent() constructor returns a newly created media
streamtrackevent object, which represents an event announcing that a media
streamtrack has been added to or removed from a media
stream.
... syntax var trackevent = new media
streamtrackevent(type, {track: amedia
streamtrack}); parameters the media
streamtrackevent() constructor also inherits arguments from event().
... type a domstring representing the name of the type of the media
streamtrackevent.
...And 3 more matches
MediaStreamTrackEvent - Web APIs
the media
streamtrackevent interface represents events which indicate that a media
stream has had tracks added to or removed from the
stream through calls to media
stream api methods.
... these events are sent to the
stream when these changes occur.
...eight="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xlink:href="/docs/web/api/media
streamtrackevent" target="_top"><rect x="116" y="1" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">media
streamtrackevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the events base...
...And 3 more matches
RTCInboundRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcinboundrtp
streamstats dictionary is a value generated by adding the quantization parameter (qp) values for every frame sent or received to date on the video track corresponding to this rtcinboundrtp
streamstats object.
... syntax var qpsum = rtcinboundrtp
streamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization parameter (qp) value for every frame sent or received so far on the track described by the rtcinboundrtp
streamstats object.
... since the value of qp is typically larger to indicate higher compression factors, the larger this sum is, the more heavily compressed the
stream generally has been.
...And 3 more matches
RTCOutboundRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcoutboundrtp
streamstats dictionary states the number of times the remote peer's rtcrtpreceiver sent a picture loss indication (pli) packet to the rtcrtpsender for which this object provides statistics.
... syntax var plicount = rtcoutboundrtp
streamstats.plicount; value an integer value indicating the number of times a pli packet was sent to this sender by the remote peer's rtcrtpreceiver.
... note: this property is only used for video
streams.
...And 3 more matches
RTCOutboundRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcoutboundrtp
streamstats dictionary is a value generated by adding the quantization parameter (qp) values for every frame this sender has produced to date on the video track corresponding to this rtcoutboundrtp
streamstats object.
... syntax var qpsum = rtcoutboundrtp
streamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization parameter (qp) value for every frame sent so far on the track described by the rtcoutboundrtp
streamstats object.
... since the value of qp is typically larger to indicate higher compression factors, the larger this sum is, the more heavily compressed the
stream generally has been.
...And 3 more matches
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
the rtcremoteoutboundrtp
streamstats dictionary's localid property is a string which can be used to identify the rtcinboundrtp
streamstats object whose remoteid matches this value.
... syntax let localid = rtcremoteoutboundrtp
streamstats.localid; value a domstring which can be compared to the value of an rtcinboundrtp
streamstats object's remoteid property to see if the two represent statistics for each of the two sides of the same set of data received by the local peer.
... usage notes you can think of the local and remote views of the same rtp
stream as pairs, each of which has a reference back to the other one.
...And 3 more matches
RTCRemoteOutboundRtpStreamStats - Web APIs
the webrtc statistics model's rtcremoteoutboundrtp
streamstats dictionary extends the underlying rtcsentrtp
streamstats dictionary with properties measuring metrics specific to outgoing rtp
streams.
... properties in addition to the properties defined by rtcsentrtp
streamstats and its underlying rtcrtp
streamstats and rtcstats dictionaries, rtcremoteoutboundrtp
streamstats defines the following properties.
... localid a domstring which is used to find the local rtcinboundrtp
streamstats object which shares the same synchronization source (ssrc).
...And 3 more matches
RTCRtpStreamStats.firCount - Web APIs
the fircount property of the rtcrtp
streamstats dictionary indicates the number of full intra request (fir) packets have been sent by the receiver to the sender.
... this is a measure of how often the
stream falls behind and has to skip frames in order to catch up.
... syntax var fircount = rtcrtp
streamstats.fircount; value an integer value indicating how many fir packets have been received by the sender during the current connection.
...And 3 more matches
RTCRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcrtp
streamstats dictionary states the number of times the
stream's receiving end sent a picture loss indication (pli) packet to the sender.
... syntax var plicount = rtcrtp
streamstats.plicount; value an integer value indicating the number of times a pli packet was sent by the
stream's receiver to the sender.
... a pli message is used by video decoders (running on the receiving end of the
stream) to notify the encoder (the sender) that an undefined amount of coded video data, which may span frame boundaries, has been lost.
...And 3 more matches
ReadableStreamBYOBReader.releaseLock() - Web APIs
the releaselock() method of the readable
streambyobreader interface releases the reader's lock on the
stream.
... if the associated
stream is errored when the lock is released, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed.
... a reader’s lock cannot be released while it still has a pending read request, i.e., if a promise returned by the reader’s readable
streambyobreader.read() method has not finished.
...And 3 more matches
ReadableStreamBYOBRequest - Web APIs
the readable
streambyobrequest interface of the
streams api represents a pull request into a readablebyte
streamcontroller view.
... a view, as mentioned below, refers to a typed array representing the destination region to which the associated readablebyte
streamcontroller controller can write generated data.
...readable
streambyobrequest instance is created automatically by readablebyte
streamcontroller as needed.
...And 3 more matches
ReadableStreamDefaultController.error() - Web APIs
the error() method of the readable
streamdefaultcontroller interface causes any future interactions with the associated
stream to error.
... note: the error() method can be called more than once, and can be called when the
stream is not readable.
... syntax readable
streamdefaultcontroller.error(e); parameters e the error you want future interactions to fail with.
...And 3 more matches
WritableStreamDefaultController.error() - Web APIs
the error() method of the writable
streamdefaultcontroller interface causes any future interactions with the associated
stream to error.
...however, it can be useful for suddenly shutting down a
stream in response to an event outside the normal lifecycle of interactions with the underlying sink.
... syntax writable
streamdefaultcontroller.error(e); parameters e a domstring representing the error you want future interactions to fail with.
...And 3 more matches
WritableStreamDefaultController - Web APIs
the writable
streamdefaultcontroller interface of the the
streams api represents a controller allowing control of a writable
stream's state.
... when constructing a writable
stream, the underlying sink is given a corresponding writable
streamdefaultcontroller instance to manipulate.
...writable
streamdefaultcontroller instances are created automatically during writable
stream construction.
...And 3 more matches
WritableStreamDefaultWriter.desiredSize - Web APIs
the desiredsize read-only property of the writable
streamdefaultwriter interface returns the desired size required to fill the
stream's internal queue.
... syntax var desiredsize = writable
streamdefaultwriter.desiredsize; value an integer.
... the value will be null if the
stream cannot be successfully written to (due to either being errored, or having an abort queued up), and zero if the
stream is closed.
...And 3 more matches
WritableStreamDefaultWriter.ready - Web APIs
the ready read-only property of the writable
streamdefaultwriter interface returns a promise that resolves when the desired size of the
stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
... syntax var promise = writable
streamdefaultwriter.ready; value a promise.
...the first uses ready to ensure that the writable
stream is done writing and thus able to receive data before sending a binary chunk.
...And 3 more matches
WritableStreamDefaultWriter.releaseLock() - Web APIs
the releaselock() method of the writable
streamdefaultwriter interface releases the writer's lock on the corresponding
stream.
...if the associated
stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed.
... syntax writable
streamdefaultwritere.releaselock() parameters none.
...And 3 more matches
DASH Adaptive Streaming for HTML 5 Video - HTML: Hypertext Markup Language
dynamic adaptive
streaming over http (dash) is an adaptive
streaming protocol.
... this means that it allows for a video
stream to switch between bit rates on the basis of network performance, in order to keep a video playing.
... for example: the file in.video can be any container with at least one audio and one video
stream that can be decoded by ffmpeg, create the audio using: ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 my_audio.webm create each video variant.
...And 3 more matches
nsIFileInputStream
netwerk/base/nsifile
streams.idlscriptable an input
stream that allows you to read from a file.
... inherits from: nsiinput
stream last changed in gecko 1.7 method overview void init(in nsifile file, in long ioflags, in long perm, in long behaviorflags); constants constant value description delete_on_close 1<<1 if this is set, the file will be deleted by the time the
stream is closed.
... it may be removed before the
stream is closed if it is possible to delete it and still read from it.
...And 2 more matches
nsIFileStreams
the nsifile
streams interface is an input
stream that allows you to read from a file.
... netwerk/base/public/nsifile
streams.idlscriptable please add a summary to this article.
... last changed in gecko 1.9 (firefox 3) inherits from: nsisupports method overview void init(in nsifile file, in long ioflags, in long perm, in long behaviorflags); constants constants value description delete_on_close 1<<1 if this is set, the file will be deleted by the time the
stream is closed.
...And 2 more matches
nsIStreamListener
netwerk/base/public/nsi
streamlistener.idlscriptable this interface is used to listen to data being received on a
stream.
...method overview void ondataavailable(in nsirequest arequest, in nsisupports acontext, in nsiinput
stream ainput
stream, in unsigned long aoffset, in unsigned long acount); methods ondataavailable() this method is called when the next chunk of data for the ongoing request may be read without blocking the calling thread.
... the data can be read from the nsiinput
stream object passed as the argument to this method.
...And 2 more matches
HTMLCanvasElement.captureStream() - Web APIs
the htmlcanvaselement capture
stream() method returns a media
stream which includes a canvascapturemedia
streamtrack containing a real-time video capture of the canvas's contents.
... syntax media
stream = canvas.capture
stream(framerate); parameters framerate optional a double-precision floating-point value that indicates the rate of capture of each frame.
... return value a reference to a media
stream object, which has a single canvascapturemedia
streamtrack in it.
...And 2 more matches
MediaSource.endOfStream() - Web APIs
the endof
stream() method of the mediasource interface signals the end of the
stream.
... syntax mediasource.endof
stream(endof
streamerror); parameters endof
streamerror optional a domstring representing an error to throw when the end of the
stream is reached.
...this can be used create a custom error handler related to media
streams.
...And 2 more matches
MediaStream.addTrack() - Web APIs
the media
stream.addtrack() method adds a new track to the
stream.
... the track is specified as a parameter of type media
streamtrack.
... if the specified track is already in the
stream's track set, this method has no effect.
...And 2 more matches
MediaStream.clone() - Web APIs
the clone() method of the media
stream interface creates a duplicate of the media
stream.
... this new media
stream object has a new unique id and contains clones of every media
streamtrack contained by the media
stream on which clone() was called.
... syntax var
stream = media
stream.clone(); parameters none.
...And 2 more matches
MediaStreamTrack.applyConstraints() - Web APIs
the applyconstraints() method of the media
streamtrack interface applies a set of constraints to the track; these constraints let the web site or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancelation, and so forth.
...if the constraints cannot be applied, the promise is rejected with a media
streamerror whose name is overconstrainederror, to indicate that the constraints could not be met.
... const constraints = { width: {min: 640, ideal: 1280}, height: {min: 480, ideal: 720}, advanced: [ {width: 1920, height: 1280}, {aspectratio: 1.333} ] }; navigator.mediadevices.getusermedia({ video: true }) .then(media
stream => { const track = media
stream.getvideotracks()[0]; track.applyconstraints(constraints) .then(() => { // do something with the track such as using the image capture api.
...And 2 more matches
RTCInboundRtpStreamStats.firCount - Web APIs
the fircount property of the rtcinboundrtp
streamstats dictionary indicates the number of full intra request (fir) packets have been sent by the receiver to the sender.
... the receiver sends a fir packet when the
stream falls behind and needs to skip frames in order to catch up.
... syntax var fircount = rtcinboundrtp
streamstats.fircount; value an integer value indicating how many fir packets have been received by the sender during the current connection.
...And 2 more matches
RTCInboundRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcinboundrtp
streamstats dictionary states the number of times the rtcrtpreceiver described by these statistics sent a picture loss indication (pli) packet to the sender.
... syntax var plicount = rtcinboundrtp
streamstats.plicount; value an integer value indicating the number of times a pli packet was sent by the rtcrtpreceiver to the sender.
...this information is only available for video
streams.
...And 2 more matches
RTCPeerConnection: addstream event - Web APIs
the obsolete add
stream event is sent to an rtcpeerconnection when new media, in the form of a media
stream object, has been added to it.
... bubbles no cancelable no interface media
streamevent event handler property rtcpeerconnection.onadd
stream you can, similarly, watch for
streams to be removed from the connection by monitoring the remove
stream event.
...if it does, a track event listener is set up; otherwise, an add
stream event listener is set up.
...And 2 more matches
RTCPeerConnection: removestream event - Web APIs
the obsolete remove
stream event was sent to an rtcpeerconnection to inform it that a media
stream had been removed from the connection.
... you can use the rtcpeerconnection interface's onremove
stream property to set a handler for this event.
... this is the counterpart to the add
stream event, which is also obsolete.
...And 2 more matches
ReadableByteStreamController.close() - Web APIs
the close() method of the readablebyte
streamcontroller interface closes the associated
stream.
... note: readers will still be able to read any previously-enqueued chunks from the
stream, but once those are read, the
stream will become closed.
... syntax readablebyte
streamcontroller.close(); parameters none.
...And 2 more matches
ReadableStreamBYOBReader.cancel() - Web APIs
the cancel() method of the readable
streambyobreader interface cancels the
stream, signaling a loss of interest in the
stream by a consumer.
... note: if the reader is active, the cancel() method behaves the same as that for the associated
stream (readable
stream.cancel()).
... syntax var promise = readable
streambyobreader.cancel(reason); parameters reason a domstring providing a human-readable reason for the cancellation.
...And 2 more matches
WritableStream.abort() - Web APIs
the abort() method of the writable
stream interface aborts the
stream, signaling that the producer can no longer successfully write to the
stream and it is to be immediately moved to an error state, with any queued writes discarded.
... syntax var promise = writable
stream.abort(reason); parameters reason a domstring providing a human-readable reason for the abort.
... exceptions typeerror the
stream you are trying to abort is not a writable
stream, or it is locked.
...And 2 more matches
WritableStreamDefaultWriter.closed - Web APIs
the closed read-only property of the writable
streamdefaultwriter interface returns a promise that fulfills if the
stream becomes closed or the writer's lock is released, or rejects if the
stream errors.
... syntax var closed = writable
streamdefaultwriter.closed; value a promise.
... examples const writable
stream = new writable
stream({ start(controller) { }, write(chunk, controller) { ...
...And 2 more matches
nsScriptableInputStream
« xpcom api reference summary a component implementing nsiscriptableinput
stream.
... class id 7225c040-a9bf-11d3-a197-0050041caf44 contractid @mozilla.org/scriptableinput
stream;1 supported interfaces nsiscriptableinput
stream, nsiinput
stream remarks this component should be accessed via the xpcom component manager.
... example code const nsiscriptableinput
stream = components.interfaces.nsiscriptableinput
stream; function consume
stream(input
stream) { var factory = components.classes["@mozilla.org/scriptableinput
stream;1"]; var sis = factory.createinstance(nsiscriptableinput
stream); sis.init(input
stream); try { while (true) { var chunk = sis.read(512); if (chunk.length == 0) break; // ok, chunk now contains a portion of the
stream's data.
... } } catch (e) { dump("error: failed reading from
stream:\n" + e + "\n"); } } see also nsiscriptableinput
stream ...
nsIFileOutputStream
netwerk/base/public/nsifile
streams.idlscriptable this interface is an output
stream that lets you
stream to a file.
... inherits from: nsioutput
stream last changed in gecko 1.7 method overview void init(in nsifile file, in long ioflags, in long perm, in long behaviorflags); constants behavior flag constants constant value description defer_open 1<<0 see the same constant in nsifileinput
stream.
... the deferred open will be performed when one of the following is called: seek() tell() write() flush() defer_open is useful if we use the
stream on a background thread, so that the opening and possible stating of the file happens there as well.
... see also nsifileinput
stream ...
nsIInputStreamCallback
xpcom/io/nsiasyncinput
stream.idlscriptable this is a companion interface for nsiasyncinput
stream.asyncwait().
... inherits from: nsisupports last changed in gecko 1.7 method overview void oninput
streamready(in nsiasyncinput
stream a
stream); methods oninput
streamready() called to indicate that the
stream is either readable or closed.
... void oninput
streamready( in nsiasyncinput
stream a
stream ); parameters a
stream the
stream whose nsiasyncinput
stream.asyncwait() method was called.
... see also nsiasyncinput
stream.asyncwait() ...
CanvasCaptureMediaStreamTrack.canvas - Web APIs
the canvascapturemedia
streamtrack canvas read-only property returns the htmlcanvaselement from which frames are being captured.
... syntax var elt =
stream.canvas; value an htmlcanvaselement indicating the canvas which is the source of the frames being captured.
... example // find the canvas element to capture var canvaselt = document.getelementsbytagname("canvas")[0]; // get the
stream var
stream = canvaselt.capture
stream(25); // 25 fps // do things to the
stream ...
... // obtain the canvas associated with the
stream var canvas =
stream.canvas; specifications specification status comment media capture from dom elementsthe definition of 'canvascapturemedia
streamtrack.canvas' in that specification.
CanvasCaptureMediaStreamTrack.requestFrame() - Web APIs
the canvascapturemedia
streamtrack method requestframe() requests that a frame be captured from the canvas and sent to the
stream.
... to prevent automatic capture of frames, so that frames are only captured when requestframe() is called, specify a value of 0 for the capture
stream() method when creating the
stream.
... syntax
stream.requestframe(); return value undefined usage notes there is currently an issue flagged in the specification pointing out that at this time, no exceptions are being thrown if the canvas isn't origin-clean.
... example // find the canvas element to capture var canvaselt = document.getelementsbytagname("canvas")[0]; // get the
stream var
stream = canvaselt.capture
stream(25); // 25 fps // send the current state of the canvas as a frame to the
stream stream.getvideotracks()[0].requestframe(); specifications specification status comment media capture from dom elementsthe definition of 'canvascapturemedia
stream.requestframe()' in that specification.
HTMLCanvasElement.mozFetchAsStream() - Web APIs
the htmlcanvaselement.mozfetchas
stream() internal method used to create a new input
stream that, when ready, would provide the contents of the canvas as image data.
... syntax void canvas.mozfetchas
stream(callback, type); parameters callback an nsiinput
streamcallback.
... examples save to disk with mozfetchas
stream (chrome context only) this technique also converts it to ico, however it will not work in windows xp as winxp cannot convert from png to ico.
...moveto(d / 2, 0); ctx.lineto(d, d); ctx.lineto(0, d); ctx.closepath(); ctx.fillstyle = 'yellow'; ctx.fill(); var netutilcallback = function() { return function(result) { if (!components.issuccesscode(result)) { alert('failed to create icon'); } else { alert('succesfully made'); } }; } var mfascallback = function(iconname) { return function(in
stream) { var file = fileutils.getfile('desk', [iconname + '.ico']); var out
stream = fileutils.openfileoutput
stream(file); cu.import('resource://gre/modules/netutil.jsm'); netutil.asynccopy(in
stream, out
stream, netutilcallback()); } } canvas.mozfetchas
stream(mfascallback('myicon'), 'image/vnd.microsoft.icon'); specifications not part of any specification.
MediaRecorder.stream - Web APIs
the mediarecorder.
stream read-only property returns the
stream that was passed into the mediarecorder() constructor when the mediarecorder was created.
... syntax var
stream = mediarecorder.
stream values the media
stream passed into the mediarecorder() constructor when the mediarecorder was originally created.
... example if (navigator.getusermedia) { console.log('getusermedia supported.'); navigator.getusermedia ( // constraints - only audio needed for this app { audio: true }, // success callback function(
stream) { var mediarecorder = new mediarecorder(
stream); var my
stream = mediarecorder.
stream; console.log(my
stream); ...
... specifications specification status comment media
stream recordingthe definition of 'mediarecorder.
stream' in that specification.
MediaStream.ended - Web APIs
the ended read-only property of the media
stream interface returns a boolean value which is true if the
stream has been completely read, or false if the end of the
stream has not been reached.
... this property has been removed from the specification; you should instead rely on the ended event or check the value of media
streamtrack.readystate to see if its value is "ended" for the track or tracks you want to ensure have finished playing.
... syntax var hasended = media
stream.ended; value a boolean value that returns true if the end of the
stream has been reached.
...this property was part of earlier drafts of the media capture and
streams specification.
MediaStream.getTrackById() - Web APIs
the media
stream.gettrackbyid() method returns a media
streamtrack object representing the track with the specified id string.
... syntax var track = media
stream.gettrackbyid(id); parameters id a domstring which identifies the track to be returned.
... return value if a track is found for which media
streamtrack.id matches the specified id string, that media
streamtrack object is returned.
...
stream.gettrackbyid("primary-audio-track").applyconstraints({ volume: 0.5 });
stream.gettrackbyid("commentary-track").enabled = true; specifications specification status comment media capture and
streamsthe definition of 'gettrackbyid()' in that specification.
MediaStream.getTracks() - Web APIs
the gettracks() method of the media
stream interface returns a sequence that represents all the media
streamtrack objects in this
stream's track set, regardless of media
streamtrack.kind.
... syntax var media
streamtracks = media
stream.gettracks() parameters none.
... return value an array of media
streamtrack objects.
... example navigator.mediadevices.getusermedia({audio: false, video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream; // stop the
stream after 5 seconds settimeout(() => { const tracks = media
stream.gettracks() tracks[0].stop() }, 5000) }) specifications specification status comment media capture and
streamsthe definition of 'gettracks()' in that specification.
MediaStreamAudioSourceOptions - Web APIs
the media
streamaudiosourceoptions dictionary provides configuration options used when creating a media
streamaudiosourcenode using its constructor.
... it is not needed when using the audiocontext.createmedia
streamsource() method.
... properties media
stream a required property which specifies the media
stream from which to obtain audio for the node.
... specifications specification status comment web audio apithe definition of 'media
streamaudiosourceoptions' in that specification.
MediaStreamEvent() - Web APIs
the media
streamevent() constructor creates a new media
streamevent.
... syntax var event = new media
streamevent(type, media
streameventinit); values type is a domstring containing the name of the event, like add
stream or remove
stream.
... media
streameventinit is a media
streameventinit dictionary, having the following fields: "
stream" of type media
stream representing the
stream being concerned by the event.
... example // s is a media
stream var event = new media
streamevent("add
stream", {"
stream": s}); ...
MediaStreamTrack.clone() - Web APIs
the clone() method of the media
streamtrack interface creates a duplicate of the media
streamtrack.
... this new media
streamtrack object is identical except for its unique id.
... syntax const newtrack = track.clone() return value a new media
streamtrack instance which is identical to the one clone() was called, except for its new unique id.
... specifications specification status comment media capture and
streamsthe definition of 'clone()' in that specification.
MediaStreamTrack: mute event - Web APIs
the mute event is sent to a media
streamtrack when the track's source is temporarily unable to provide media data.
... note: the condition that most people think of as "muted" (that is, a user-toggled state of silencing a track) is actually managed using the media
streamtrack.enabled property, for which there are no events.
... bubbles no cancelable no interface event event handler property onmute examples in this example, event handlers are established for the mute and unmute events in order to detect when the media is not flowing from the source for the media
streamtrack referenced by musictrack.
...the following example shows this: musictrack.onmute = event => { document.getelementbyid("timeline-widget").style.backgroundcolor = "#aaa"; } musictrack.mute = event = > { document.getelementbyid("timeline-widget").style.backgroundcolor = "#fff"; } specifications specification status comment media capture and
streamsthe definition of 'mute' in that specification.
MediaStreamTrack.onended - Web APIs
the media
streamtrack.onended event handler is used to specify a function which serves as an eventhandler to be called when the ended event occurs on the track.
... this event occurs when the track will no longer provide data to the
stream for any reason, including the end of the media input being reached, the user revoking needed permissions, the source device being removed, or the remote peer ending a connection.
... syntax media
streamtrack.onended = function; value a function to serve as an eventhandler for the ended event.
... track.onended = function(event) { let statuselem = document.getelementbyid("status-icon"); statuselem.src = "/images/stopped-icon.png"; } specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.onended' in that specification.
MediaStreamTrack: unmute event - Web APIs
the unmute event is sent to a media
streamtrack when the track's source is once again able to provide media data after a period of not being able to do so.
... bubbles no cancelable no interface event event handler property onunmute note: the condition that most people think of as "muted" (that is, a user-controllable way to silence a track) is actually managed using the media
streamtrack.enabled property, for which there are no events.
... examples in this example, event handlers are established for the mute and unmute events in order to detect when the media is not flowing from the source for the media
streamtrack stored in the variable musictrack.
...the following example shows this: musictrack.onmute = event => { document.getelementbyid("timeline-widget").style.backgroundcolor = "#aaa"; } musictrack.mute = event = > { document.getelementbyid("timeline-widget").style.backgroundcolor = "#fff"; } specifications specification status comment media capture and
streamsthe definition of 'unmute' in that specification.
MediaStreamTrackAudioSourceOptions - Web APIs
the media
streamtrackaudiosourceoptions dictionary is used when specifying options to the media
streamtrackaudiosourcenode() constructor.
... it isn't needed when using the audiocontext.createmedia
streamtracksource() method.
... properties media
streamtrack the media
streamtrack from which to take audio data for this node's output.
... specifications specification status comment web audio apithe definition of 'media
streamtrackaudiosourceoptions' in that specification.
RTCDataChannel.stream - Web APIs
the deprecated (and never part of the official specification) read-only rtcdatachannel property
stream returns an id number (between 0 and 65,535) which uniquely identifies the rtcdatachannel.
...if you have code that uses
stream, you will need to update, since browsers have begun to remove support for
stream.
... syntax var
stream = adatachannel.
stream; value an unsigned short value (that is, an integer between 0 and 65,535) which uniquely identifies the data channel.
... example var datachannel = pc.createdatachannel("samplechannel"); console.log("data channel
stream id: " + datachannel.
stream); ...
RTCInboundRtpStreamStats.averageRtcpInterval - Web APIs
the averagertcpinterval property of the rtcinboundrtp
streamstats dictionary is a floating-point value indicating the average rtcp transmission interval, in seconds.
... syntax var averagertcpinterval = rtcinboundrtp
streamstats.averagertcpinterval; value a floating-point value indicating the average interval, in seconds, between transmissions of rtcp packets.
...since this value is also used to determine the number of seconds after a
stream starts to flow before the first rtcp packet should be sent, the result is that if many users try to start using the service at the same time, the server won't be flooded with rtcp packets coming in all at once.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.averagertcpinterval' in that specification.
RTCInboundRtpStreamStats.bytesReceived - Web APIs
the rtcinboundrtp
streamstats dictionary's bytesreceived property is an integer value which indicates the total number of bytes received so far from this synchronization source (ssrc).
... syntax var bytesreceived = rtcinboundrtp
streamstats.bytesreceived; value an unsigned integer value indicating the total number of bytes received so far on this rtp
stream, not including header and padding bytes.
... this value can be used to calculate an approximation of the average media data rate: avgdatarate = rtcinboundrtp
streamstats.bytesreceived / elapsedtime; this value gets reset to zero if the sender's ssrc identifier changes for any reason.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.bytesreceived' in that specification.
RTCInboundRtpStreamStats.packetsDuplicated - Web APIs
the packetsduplicated property of the rtcinboundrtp
streamstats dictionary indicates the total number of packets discarded because they were duplicates of previously-received packets.
... syntax var packetsduplicated = rtcinboundrtp
streamstats.packetsduplicated; value an integer value which specifies how many duplcate packets have been received by the local end of this rtp
stream so far.
... you can get a more accurate tally of how many packets have been lost on the
stream by adding packetsduplicated to packetslost.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.packetsduplicated' in that specification.
RTCInboundRtpStreamStats.sliCount - Web APIs
the slicount property of the rtcinboundrtp
streamstats dictionary indicates how many slice loss indication (sli) packets the rtcrtpreceiver for which this object provdes statistics sent to the remote rtcrtpsender.
... in general, what's usually of interest is that the higher this number is, the more the
stream data is becoming corrupted between the sender and the receiver, requiring resends or dropping frames.
... syntax var slicount = rtcinboundrtp
streamstats.slicount; value an unsigned integer indicating the number of sli packets this receiver sent to the remote sender due to lost runs of macroblocks.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.slicount' in that specification.
RTCOutboundRtpStreamStats.averageRtcpInterval - Web APIs
the averagertcpinterval property of the rtcoutboundrtp
streamstats dictionary is a floating-point value indicating the average time that should pass between transmissions of rtcp packets on this
stream.
... syntax var averagertcpinterval = rtcoutboundrtp
streamstats.averagertcpinterval; value a floating-point value indicating the average interval, in seconds, between transmissions of rtcp packets.
...since this value is also used to determine the number of seconds after a
stream starts to flow before the first rtcp packet should be sent, the result is that if many users try to start using the service at the same time, the server won't be flooded with rtcp packets coming in all at once.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.averagertcpinterval' in that specification.
RTCOutboundRtpStreamStats.firCount - Web APIs
the fircount property of the rtcoutboundrtp
streamstats dictionary indicates the number of full intra request (fir) that the remote rtcrtpreceiver has sent to this rtcrtpsender.
... syntax var fircount = rtcoutboundrtp
streamstats.fircount; value an integer value indicating how many fir packets have been received by the sender during the current connection.
... the receiver sends a fir packet to the sender any time it falls bahind or loses packets and cannot decode the incoming
stream any longer because of the lost data.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.fircount' in that specification.
RTCOutboundRtpStreamStats.framesEncoded - Web APIs
the framesencoded property of the rtcoutboundrtp
streamstats dictionary indicates the total number of frames that have been encoded by this rtcrtpsender for this media source.
... syntax var framesencoded = rtcoutboundrtp
streamstats.framesencoded; value an integer value indicating the total number of video frames that this sender has encoded so far for this
stream.
... note: this property is only valid for video
streams.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.framesencoded' in that specification.
RTCOutboundRtpStreamStats.sliCount - Web APIs
the slicount property of the rtcoutboundrtp
streamstats dictionary indicates how many slice loss indication (sli) packets the rtcrtpsender received from the remote rtcrtpreceiver for the rtp
stream described by this object.
... an sli packet is used by a decoder to let the encoder (the sender) know that it's detected corruption of one or more consecutive macroblocks, in scan order, in the received media.in general, what's usually of interest is that the higher this number is, the more the
stream data is becoming corrupted between the sender and the receiver, causing the receiver to request retransmits or to drop frames entirely.
... syntax var slicount = rtcoutboundrtp
streamstats.slicount; value an unsigned integer indicating the number of sli packets the sender received from the receiver due to lost runs of macroblocks.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.slicount' in that specification.
RTCRtpStreamStats.kind - Web APIs
the kind property of the rtcrtp
streamstats dictionary is a string indicating whether the described rtp
stream contains audio or video media.
... syntax mediakind = rtcrtp
streamstats.kind; value a domstring whose value is "audio" if the track whose statistics are given by the rtcrtp
streamstats object contains audio, or "video" if the track contains video media.
... this string will always be the same as the one provided by the associated media
streamtrack object's kind property.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcrtp
streamstats.kind' in that specification.
RTCRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcrtp
streamstats dictionary is a numeric value indicating the number of times the receiver sent a nack packet to the sender.
... syntax var nackcount = rtcrtp
streamstats.nackcount; value an integer value indicating how many times the receiver sent a nack packet to the sender after detecting that one or more packets were lost during transport.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats: nackcount' in that specification.
... identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats: nackcount' in that specification.
RTCRtpStreamStats.sliCount - Web APIs
the slicount property of the rtcrtp
streamstats dictionary indicates how many slice loss indication (sli) packets were received by the sender.
... syntax var slicount = rtcrtp
streamstats.slicount; value an unsigned long integer indicating the number of sli packets the sender received from the receiver due to lost runs of macroblocks.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats: slicount' in that specification.
... identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats: slicount' in that specification.
RTCTrackEventInit.streams - Web APIs
the rtctrackeventinit dictionary's optional
streams property provides an array containing a media
stream object for each of the
streams associated with the event's track.
... syntax var trackeventinit = { receiver: rtpreceiver, track: media
streamtrack,
streams: [video
stream], transceiver: rtptransceiver }; var
streamlist = trackeventinit.
streams; value an array of media
stream objects, one for each
stream which make up the track.
... if
streams is not specified, its default value is an empty array.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtctrackeventinit.
streams' in that specification.
ReadableByteStreamController.enqueue() - Web APIs
the enqueue() method of the readablebyte
streamcontroller interface enqueues a given chunk in the associated
stream.
... syntax readablebyte
streamcontroller.enqueue(chunk); parameters chunk the chunk to enqueue.
... exceptions typeerror the source object is not a readablebyte
streamcontroller, or the
stream cannot be read for some other reason, or the chunk is not an object, or the chunk's internal array buffer is non-existant or detached.
... specifications specification status comment
streamsthe definition of 'enqueue()' in that specification.
ReadableByteStreamController.error() - Web APIs
the error() method of the readablebyte
streamcontroller interface causes any future interactions with the associated
stream to error.
... syntax readablebyte
streamcontroller.error(e); parameters e the error you want future interactions to fail with.
... exceptions typeerror the source object is not a readablebyte
streamcontroller, or the
stream is not readable for some other reason.
... specifications specification status comment
streamsthe definition of 'error()' in that specification.
ReadableStream.locked - Web APIs
the locked read-only property of the readable
stream interface returns whether or not the readable
stream is locked to a reader.
... syntax var locked = readable
stream.locked; value a boolean indicating whether or not the readable
stream is locked.
... examples const
stream = new readable
stream({ ...
... }); const reader =
stream.getreader();
stream.locked // should return true, as the
stream has been locked to a reader specifications specification status comment
streamsthe definition of 'locked' in that specification.
ReadableStreamDefaultController.desiredSize - Web APIs
the desiredsize read-only property of the readable
streamdefaultcontroller interface returns the desired size required to fill the
stream's internal queue.
... syntax var desiredsize = readable
streamdefaultcontroller.desiredsize; value an integer.
... examples the a readable
stream with an underlying push source and backpressure support example in the spec provides a good example of using desiredsize to manually detect when the
stream is full and apply backpressure, and also of using readable
streamdefaultcontroller.error() to manually trigger a
stream error if another part of the system it relies on fails.
... specifications specification status comment
streamsthe definition of 'desiredsize' in that specification.
ReadableStreamDefaultReader.closed - Web APIs
the closed read-only property of the readable
streamdefaultreader interface returns a promise that fulfills if the
stream becomes closed or the reader's lock is released, or rejects if the
stream errors.
... syntax var closed = readable
streamdefaultreader.closed; value a promise.
... examples in this snippet, a previously-created reader is queried to see if the
stream has been closed.
... reader.closed.then(() => { console.log('reader closed'); }) specifications specification status comment
streamsthe definition of 'closed' in that specification.
WritableStream.locked - Web APIs
the locked read-only property of the writable
stream interface returns a boolean indicating whether the writable
stream is locked to a writer.
... syntax var locked = writable
stream.locked; value a boolean indicating whether or not the writable
stream is locked.
... examples const writable
stream = new writable
stream({ write(chunk) { ...
... const writer = writable
stream.getwriter(); writable
stream.locked // should return true, as the
stream has been locked to a writer specifications specification status comment
streamsthe definition of 'locked' in that specification.
RTSP: Real-time streaming protocol - MDN Web Docs Glossary: Definitions of Web-related terms
real-time
streaming protocol (rtsp) is a network protocol that controls how the
streaming of a media should occur between a server and a client.
... basically, rtsp is the protocol that describes what happens when you click "pause"/"play" when
streaming a video.
... if your computer were a remote control and the
streaming server a television, rtsp would describe how the instruction of the remote control affects the tv.
nsIOutputStreamCallback
xpcom/io/nsiasyncoutput
stream.idlscriptable this is a companion interface for nsiasyncoutput
stream.asyncwait.
... inherits from: nsisupports last changed in gecko 1.7 method overview void onoutput
streamready(in nsiasyncoutput
stream a
stream); methods onoutput
streamready() called to indicate that the
stream is either writable or closed.
... void onoutput
streamready( in nsiasyncoutput
stream a
stream ); parameters a
stream the
stream whose nsiasyncoutput
stream.asyncwait() method was called.
MediaStream.id - Web APIs
the media
stream.id() read-only property is a domstring containing 36 characters denoting a unique identifier (guid) for the object.
... syntax var id = media
stream.id; example var p = navigator.mediadevices.getusermedia({ audio: true, video: true }); p.then(function(
stream) { console.log(
stream.id); }) specifications specification status comment media capture and
streamsthe definition of 'media
stream.id' in that specification.
...— 6.0legend full support full support no support no support see also media
stream, the interface this property belongs to.
MediaStreamTrack.enabled - Web APIs
the enabled property on the media
streamtrack interface is a boolean value which is true if the track is allowed to render the source
stream or false if it is not.
... usage notes if the media
streamtrack represents the video input from a camera, disabling the track by setting enabled to false also updates device activity indicators to show that the camera is not currently recording or
streaming.
... specifications specification status comment media capture and
streamsthe definition of 'enabled' in that specification.
MediaStreamTrack: ended event - Web APIs
the ended event of the media
streamtrack interface is fired when playback or
streaming has stopped because the end of the media was reached or because no further data is available.
... bubbles no cancelable no interface event event handler property media
streamtrack.onended usage notes ended events fire when the media
stream track's source permanently stops sending data on the
stream.
... track.addeventlistener('ended', () => { let statuselem = document.getelementbyid("status-icon"); statuselem.src = "/images/stopped-icon.png"; }) you can also set up the event handler using the media
streamtrack.onended property: track.onended = function() { let statuselem = document.getelementbyid("status-icon"); statuselem.src = "/images/stopped-icon.png"; } specifications specification status comment media capture and
streamsthe definition of 'ended' in that specification.
MediaStreamTrack.muted - Web APIs
the muted read-only property of the media
streamtrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output.
... example this example counts the number of tracks in an array of media
streamtrack objects which are currently muted.
... let mutedcount = 0; tracklist.foreach((track) => { if (track.muted) { mutedcount += 1; } }); specifications specification status comment media capture and
streamsthe definition of 'muted' in that specification.
MediaStreamTrack.onunmute - Web APIs
media
streamtrack's onunmute event handler is called when the unmute event is received.
... syntax track.onunmute = unmutehandler; value unmutehandler is a function which is called when the media
streamtrack receives the unmute event.
... mytrack.onunmute = function(evt) { playstateicon.innerhtml = "🔈"; }; specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.onunmute' in that specification.
MediaStreamTrack.readyState - Web APIs
the media
streamtrack.readystate read-only property returns an enumerated value giving the status of the track.
...in that case, the output of data can be switched on or off using the media
streamtrack.enabled property.
... specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.readystate' in that specification.
RTCInboundRtpStreamStats.fecPacketsDiscarded - Web APIs
the fecpacketsdiscarded property of the rtcinboundrtp
streamstats dictionary is a numeric value indicating the number of rtp forward error correction (fec) packets that have been discarded.
... syntax var fecpacketsdiscarded = rtcinboundrtp
streamstats.fecpacketsdiscarded; value an unsigned integer value indicating how many fec packets have been received whose error correction payload has been discarded.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.fecpacketsdiscarded' in that specification.
RTCInboundRtpStreamStats.fecPacketsReceived - Web APIs
the fecpacketsreceived property of the rtcinboundrtp
streamstats dictionary indicates how many forward error correction (fec) packets have been received by this rtp receiver from the remote peer.
... syntax var fecpacketsreceived = rtcinboundrtp
streamstats.fecpacketsreceived; value an unsigned integer value which indicates the total number of fec packets which have been recieved from the remote peer during this rtp session.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.fecpacketsreceived' in that specification.
RTCInboundRtpStreamStats.framesDecoded - Web APIs
the framesdecoded property of the rtcinboundrtp
streamstats dictionary indicates the total number of frames which have been decoded successfully for this media source.
... syntax var framesdecoded = rtcinboundrtp
streamstats.framesdecoded; value an integer value indicating the total number of video frames which have been decoded for this
stream so far.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.framesdecoded' in that specification.
RTCInboundRtpStreamStats.lastPacketReceivedTimestamp - Web APIs
the lastpacketreceivedtimestamp property of the rtcinboundrtp
streamstats dictionary indicates the time at which the most recently received packet arrived from this source.
... syntax var lastpackettimestamp = rtcinboundrtp
streamstats.lastpacketreceivedtimestamp; value a domhighrestimestamp which specifies the time at which the most recently received packet arrived on this rtp
stream.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.lastpacketreceivedtimestamp' in that specification.
RTCInboundRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcinboundrtp
streamstats dictionary is a numeric value indicating the number of times the receiver sent a nack packet to the sender.
... syntax var nackcount = rtcinboundrtp
streamstats.nackcount; value an integer value indicating how many times the receiver sent a nack packet to the sender after detecting that one or more packets were lost during transport.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.nackcount' in that specification.
RTCInboundRtpStreamStats.packetsFailedDecryption - Web APIs
the packetsfaileddecryption property of the rtcinboundrtp
streamstats dictionary indicates the total number of rtp packets which failed to be decrypted successfully after being received by the local end of the connection during this session.
... syntax var packetsfaileddecryption = rtcinboundrtp
streamstats.packetsfaileddecryption; value an integer value which indicates how many packets the local end of the rtp connection could not be successfully decrypted.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.packetsfaileddecryption' in that specification.
RTCInboundRtpStreamStats.perDscpPacketsReceived - Web APIs
the perdscppacketsreceived property of the rtcinboundrtp
streamstats dictionary is a record comprised of key/value pairs in which each key is a string representation of a differentiated services code point and the value is the number of packets received for that dcsp.
... syntax var perdscppacketsreceived = rtcinboundrtp
streamstats.perdscppacketsreceived; value a record comprised of string/value pairs.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.perdscppacketsreceived' in that specification.
RTCInboundRtpStreamStats.receiverId - Web APIs
the receiverid property of the rtcinboundrtp
streamstats dictionary specifies the id of the rtcaudioreceiverstats or rtcvideoreceiverstats object representing the rtcrtpreceiver receiving the
stream.
... syntax var receiverstatsid = rtcinboundrtp
streamstats.receiverid; value a domstring which contains the id of the rtcaudioreceiverstats or rtcvideoreceiverstats object which provides information about the rtcrtpreceiver which is receiving the
streamed media.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.receiverid' in that specification.
RTCInboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcinboundrtp
streamstats dictionary specifies the id of the rtcremoteoutboundrtp
streamstats object representing the remote peer's rtcrtpsender which is sending the media to the local peer.
... syntax var remotestatsid = rtcinboundrtp
streamstats.remoteid; value a domstring containing the id of the rtcremoteoutboundrtp
streamstats object that represents the remote peer's rtcrtpsender for the synchronization source represented by this stats object.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.remoteid' in that specification.
RTCInboundRtpStreamStats.trackId - Web APIs
the trackid property of the rtcinboundrtp
streamstats dictionary indicates the id of the rtcreceiveraudiotrackattachmentstats or rtcreceivervideotrackattachmentstats object representing the media
streamtrack which is receiving the incoming media.
... syntax var trackstatsid = rtcinboundrtp
streamstats.trackid; value a domstring containing the id of the rtcreceiveraudiotrackattachmentstats or rtcreceivervideotrackattachmentstats object representing the track which is receiving the media from this rtp session.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtp
streamstats.trackid' in that specification.
RTCOutboundRtpStreamStats.lastPacketSentTimestamp - Web APIs
the lastpacketsenttimestamp property of the rtcoutboundrtp
streamstats dictionary indicates the time at which the rtcrtpsender described by this rtcoutboundrtp
streamstats object last transmitted a packet to the remote receiver.
... syntax var lastpackettimestamp = rtcoutboundrtp
streamstats.lastpacketsenttimestamp; value a domhighrestimestamp which specifies the time at which the most recently received packet arrived on this rtp
stream.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.lastpacketsenttimestamp' in that specification.
RTCOutboundRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcoutboundrtp
streamstats dictionary is a numeric value indicating the number of times the rtcrtpsender described by this object received a nack packet from the remote receiver.
... syntax var nackcount = rtcoutboundrtp
streamstats.nackcount; value an integer value indicating how many times the sender received a nack packet from the receiver, indicating the loss of one or more packets.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.nackcount' in that specification.
RTCOutboundRtpStreamStats.perDscpPacketsSent - Web APIs
the perdscppacketssent property of the rtcoutboundrtp
streamstats dictionary is a record comprised of key/value pairs in which each key is a string representation of a differentiated services code point and the value is the number of packets sent for that dcsp.
... syntax var perdscppacketssent = rtcoutboundrtp
streamstats.perdscppacketssent; value a record comprised of string/value pairs.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.perdscppacketssent' in that specification.
RTCOutboundRtpStreamStats.qualityLimitationReason - Web APIs
the qualitylimitationreason property of the rtcoutboundrtp
streamstats dictionary is a string indicating the reason why the media quality in the
stream is currently being reduced by the codec during encoding, or none if no quality reduction is being performed.
... syntax var qualitylimitationreason = rtcoutboundrtp
streamstats.qualitylimitationreason; value a map whose keys are domstrings whose values come from the rtcqualitylimitationreason enumerated type, and whose values are the duration of the media, in seconds, whose quality was reduced for that reason.
... examples specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.qualitylimitationreason' in that specification.
RTCOutboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcoutboundrtp
streamstats dictionary specifies the id of the rtcremoteinboundrtp
streamstats object representing the remote peer's rtcrtpreceiver which is sending the media to the local peer for this ssrc.
... syntax var remotestatsid = rtcoutboundrtp
streamstats.remoteid; value a domstring containing the id of the rtcremoteinboundrtp
streamstats object that represents the remote peer's rtcrtpreceiver for the synchronization source represented by this stats object.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.remoteid' in that specification.
RTCOutboundRtpStreamStats.trackId - Web APIs
the trackid property of the rtcoutboundrtp
streamstats dictionary indicates the id of the rtcsenderaudiotrackattachmentstats or rtcsendervideotrackattachmentstats object representing the media
streamtrack which is being sent on this
stream.
... syntax var trackstatsid = rtcoutboundrtp
streamstats.trackid; value a domstring containing the id of the rtcsenderaudiotrackattachmentstats or rtcsendervideotrackattachmentstats object representing the track which is the source of the media being sent on this
stream.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcoutboundrtp
streamstats.trackid' in that specification.
RTCPeerConnection.removeStream() - Web APIs
the rtcpeerconnection.remove
stream() method removes a media
stream as a local source of audio or video.
... syntax rtcpeerconnection.remove
stream(media
stream); parameters media
stream a media
stream specifying the
stream to remove from the connection.
... example var pc, video
stream; navigator.getusermedia({video: true}, function(
stream) { pc = new rtcpeerconnection(); video
stream =
stream; pc.add
stream(
stream); } document.getelementbyid("closebutton").addeventlistener("click", function(event) { pc.remove
stream(video
stream); pc.close(); }, false); ...
RTCRemoteOutboundRtpStreamStats.remoteTimestamp - Web APIs
the rtcremoteoutboundrtp
streamstats property remotetimestamp indicates the timestamp on the remote peer at which these statistics were sent.
... syntax let remotetimestamp = rtcremoteoutboundrtp
streamstats.remotetimestamp; value a domhighrestimestamp value indicating the timestamp on the remote peer at which it sent these statistics.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcremoteoutboundrtp
streamstats.remotetimestamp' in that specification.
RTCRtpStreamStats.codecId - Web APIs
the rtcrtp
streamstats dictionary's codecid property is a string which uniquely identifies the object that was inspected to produce the data in the rtccodecstats for the rtp
stream.
... syntax var codecid = rtcrtp
streamstats.codecid; value a domstring which uniquely identifies the object from which the contents of the
stream's rtccodecstats are derived.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcrtp
streamstats.codecid' in that specification.
RTCRtpStreamStats.ssrc - Web APIs
the rtcrtp
streamstats dictionary's ssrc property provides the synchronization source (ssrc), an integer which uniquely identifies the source of the rtp packets whose statistics are covered by the rtcstatsreport that includes this rtcrtp
streamstats dictionary.
... syntax var ssrc = rtcrtp
streamstats.ssrc; value the synchronization source (ssrc) is a 32-bit integer uniquely identifying the source of the rtp packets whose statistics are covered by the rtcstatsreport object of which this rtcrtp
streamstats object is a component.
...do not rely upon these values meaning anything other than "these objects are associated with the same source." specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcrtp
streamstats.ssrc' in that specification.
RTCRtpStreamStats.trackId - Web APIs
the rtcrtp
streamstats dictionary's trackid property is a string which uniquely identifies the rtcmedia
streamtrackstats object which contains the track statistics for the media
streamtrack for which statistics are provided in this object.
... syntax var trackid = rtcrtp
streamstats.trackid; value a domstring which uniquely identifies the rtcmedia
streamtrackstats object that provides statistics for the track for which statistics are being collected by this rtcstatsreport.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcrtp
streamstats.trackid' in that specification.
RTCRtpStreamStats.transportId - Web APIs
the rtcrtp
streamstats dictionary's transportid property is a string which uniquely identifies the object from which the statistics contained in the rtctransportstats properties in the rtcstatsreport.
... syntax var transportid = rtcrtp
streamstats.transportid; value a domstring uniquely identifying the source of the statistics contained the rtctransportstats properties in the rtcstatsreport.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcrtp
streamstats.transportid' in that specification.
RTCTrackEvent.streams - Web APIs
the webrtc api interface rtctrackevent's read-only
streams property specifies an array of media
stream objects, one for each of the
streams that comprise the track being added to the rtcpeerconnection.
... syntax var
streams = trackevent.
streams; value an array of media
stream objects, one for each
stream that make up the new track.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtctrackevent.
streams' in that specification.
ReadableByteStreamController.byobRequest - Web APIs
the byobrequest read-only property of the readablebyte
streamcontroller interface returns the current byob pull request, or undefined if there are no pending requests.
... syntax var request = readablebyte
streamcontroller.byobrequest; value a readable
streambyobrequest object instance, or undefined.
... specifications specification status comment
streamsthe definition of 'byobrequest' in that specification.
ReadableByteStreamController.desiredSize - Web APIs
the desiredsize read-only property of the readablebyte
streamcontroller interface returns the desired size required to fill the
stream's internal queue.
... syntax var desiredsize = readablebyte
streamcontroller.desiredsize; value an integer.
... specifications specification status comment
streamsthe definition of 'desiredsize' in that specification.
ReadableStreamBYOBReader.closed - Web APIs
the closed read-only property of the readable
streambyobreader interface returns a promise that fulfills if the
stream becomes closed or the reader's lock is released, or rejects if the
stream errors.
... syntax var closed = readable
streambyobreader.closed; value a promise.
... specifications specification status comment
streamsthe definition of 'closed' in that specification.
ReadableStreamBYOBRequest.respond() - Web APIs
the error() method of the readable
streambyobrequest interface xxx syntax readable
streambyobrequestinstance.respond(byteswritten); parameters byteswritten xxx return value void.
... exceptions typeerror the source object is not a readable
streambyobrequest, or there is no associated controller, or the associated internal array buffer is detached.
... specifications specification status comment
streamsthe definition of 'respond()' in that specification.
ReadableStreamBYOBRequest.respondWithNewView() - Web APIs
the respondwithnewview() method of the readable
streambyobrequest interface xxx syntax readable
streambyobrequestinstance.respondwithnewview(view); parameters view xxx return value void.
... exceptions typeerror the source object is not a readable
streambyobrequest, or there is no associated controller, or the associated internal array buffer is non-existant or detached.
... specifications specification status comment
streamsthe definition of 'respondwithnewview()' in that specification.
ReadableStreamBYOBRequest.view - Web APIs
the view getter property of the readable
streambyobrequest interface returns the current view.
... syntax var view = readable
streambyobrequestinstance.view; value a typed array representing the destination region to which the controller can write generated data.
... specifications specification status comment
streamsthe definition of 'view' in that specification.
nsIDiskCacheStreamInternal
netwerk/cache/nsidiskcache
streaminternal.idlscriptable please add a summary to this article.
... 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 void closeinternal(); methods closeinternal() we use this method internally to close nsdiskcacheoutput
stream under the cache service lock.
MediaStream: addtrack event - Web APIs
the addtrack event is fired when a new media
streamtrack object has been added to a media
stream.
... bubbles no cancelable no interface media
streamtrackevent event handler property onaddtrack examples using addeventlistener(): let
stream = new media
stream();
stream.addeventlistener('addtrack', (event) => { console.log(`new ${event.track.kind} track added`); }); using the onaddtrack event handler property: let
stream = new media
stream();
stream.onaddtrack = (event) => { console.log(`new ${event.track.kind} track added`); }; specifications specification status media capture and
streamsthe definition of 'addtrack' in that specification.
MediaStream: removetrack event - Web APIs
the removetrack event is fired when a new media
streamtrack object has been removed from a media
stream.
... bubbles no cancelable no interface media
streamtrackevent event handler property onremovetrack examples using addeventlistener(): let
stream = new media
stream();
stream.addeventlistener('removetrack', (event) => { console.log(`${event.track.kind} track removed`); }); using the onremovetrack event handler property: let
stream = new media
stream();
stream.onremovetrack = (event) => { console.log(`${event.track.kind} track removed`); }; specifications specification status media capture and
streamsthe definition of 'removetrack' in that specification.
MediaStreamTrack.getCapabilities() - Web APIs
the getcapabilities() method of the media
streamtrack interface returns a mediatrackcapabilities object which specifies the values or range of values which each constrainable property, based upon the platform and user agent.
... specifications specification status comment media capture and
streamsthe definition of 'getcapabilities()' in that specification.
MediaStreamTrack.getConstraints() - Web APIs
the getconstraints() method of the media
streamtrack interface returns a mediatrackconstraints object containing the set of constraints most recently established for the track using a prior call to applyconstraints().
... function switchcameras(track, camera) { const constraints = track.getconstraints(); constraints.facingmode = camera; track.applyconstraints(constraints); } specifications specification status comment media capture and
streamsthe definition of 'getconstraints()' in that specification.
MediaStreamTrack.getSettings() - Web APIs
the getsettings() method of the media
streamtrack interface returns a mediatracksettings object containing the current values of each of the constrainable properties for the current media
streamtrack.
... specifications specification status comment media capture and
streamsthe definition of 'getsettings()' in that specification.
MediaStreamTrack.id - Web APIs
the media
streamtrack.id read-only property returns a domstring containing a unique identifier (guid) for the track, which is generated by the user agent.
... syntax const id = track.id specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.id' in that specification.
MediaStreamTrack.kind - Web APIs
the media
streamtrack.kind read-only property returns a domstring set to "audio" if the track is an audio track and to "video", if it is a video track.
... specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.kind' in that specification.
MediaStreamTrack.label - Web APIs
the media
streamtrack.label read-only property returns a domstring containing a user agent-assigned label that identifies the track source, as in "internal microphone".
... syntax const label = track.label specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.label' in that specification.
MediaStreamTrack.onmute - Web APIs
media
streamtrack's onmute event handler is called when the mute event is received.
... mytrack.onmute = function(evt) { playstateicon.innerhtml = "f507;"; }; specifications specification status comment media capture and
streamsthe definition of 'media
streamtrack.onmute' in that specification.
MediaStreamTrack.onoverconstrained - Web APIs
the media
streamtrack.onoverconstrained event handler is a property called when the overconstrained event is received.
...an event handler always has one single parameter, containing the event, here of type media
streamerrorevent.
RTCRemoteOutboundRtpStreamStats.reportsSent - Web APIs
the rtcremoteoutboundrtp
streamstats dictionary's reportssent property provides the number of sender reports (srs) the remote peer has transmitted to the local peer.
... syntax let reportcount = rtcremoteoutboundrtp
streamstats.reportssent; value an integer value which indicates the total number of rtcp sender reports so far sent by the remote peer to the local peer.
SourceBuffer.appendStream() - Web APIs
the append
stream() method of the sourcebuffer interface appends media segment data from a readable
stream object to the sourcebuffer.
... syntax sourcebuffer.append
stream(
stream, maxsize); parameters
stream the readable
stream that is the source of the media segment data you want to append to the sourcebuffer.
TrackDefault.byteStreamTrackID - Web APIs
the byte
streamtrackid read-only property of the trackdefault interface returns the id of the specific track that the sourcebuffer should apply to.
... syntax var myid = trackdefault.byte
streamtrackid; value a domstring.
MediaStreamTrack.remote - Web APIs
the media
streamtrack.remote read-only property allows javascript to know whether a webrtc media
streamtrack is from a remote source or a local one.
Index - Web APIs
this is able to abort fetch requests, consumption of any response body, and
streams.
...it is an audionode that passes the audio
stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
... 128 audiocontext.createmedia
streamdestination() api, audiocontext, method, reference, référence(2), web audio api, createmedia
streamdestination the media
stream is created when the node is created and is accessible via the media
streamaudiodestinationnode's
stream attribute.
...And 403 more matches
Index
119 xpcom
stream guide guide, needscontent, xpcom in mozilla code, a
stream is an object which represents access to a sequence of characters.
... it is not that sequence of characters, though: the characters may not all be available when you read from the
stream.
... 157 nsscriptableinput
stream components, components:frozen, xpcom, xpcom api reference a component implementing nsiscriptableinput
stream.
...And 37 more matches
Reading from Files - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...reading data from a file involves getting a reference to a file and then creating an input
stream to read from it.
... an input
stream provides a means of reading bytes, strings or other values from the file.
...And 33 more matches
Using the Screen Capture API - Web APIs
in this article, we will examine how to use the screen capture api and its getdisplaymedia() method to capture part or all of a screen for
streaming, recording, or sharing during a webrtc conference session.
... capturing screen contents capturing screen contents as a live media
stream is initiated by calling navigator.mediadevices.getdisplaymedia(), which returns a promise that resolves to a
stream containing the live screen contents.
... starting screen capture: async/await style async function startcapture(displaymediaoptions) { let capture
stream = null; try { capture
stream = await navigator.mediadevices.getdisplaymedia(displaymediaoptions); } catch(err) { console.error("error: " + err); } return capture
stream; } you can write this code either using an asynchronous function and the await operator, as shown above, or using the promise directly, as seen below.
...And 29 more matches
NetUtil.jsm
method overview nsiasync
streamcopier asynccopy(nsiinput
stream asource, nsioutput
stream asink, [optional] acallback) void asyncfetch(asource, acallback) nsichannel newchannel(awhattoload, [optional] aorigincharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorigincharset, [optional] nsiuri abaseuri) string readinput
streamtostring(ainput
stream, acount, aoptions) attributes attribu...
... methods asynccopy() the asynccopy() method performs a simple asynchronous copy of data from a source input
stream to a destination output
stream.
... both
streams are automatically closed when the copy operation is completed.
...And 28 more matches
RTCPeerConnection.addTrack() - Web APIs
syntax rtpsender = rtcpeerconnection.addtrack(track,
stream...); parameters track a media
streamtrack object representing the media track to add to the peer connection.
...
stream...
... optional one or more local media
stream objects to which the track should be added.
...And 26 more matches
Index - Archive of obsolete content
87 io/byte-
streams provides
streams for reading and writing bytes.
... 89 io/text-
streams provides
streams for reading and writing text.
... 185 file i/o add-ons, code snippets, extensions, files,
streams, tutorial no summary!
...And 25 more matches
nsIScriptableIO
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...nsiscriptableio provides a convenient api for creating files and
streams, as well as for reading and writing data to them.
...for more details about how to use this object, see the file and
stream guide.
...And 25 more matches
Writing to Files - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
... to write to a file, an output
stream is used.
... an output
stream is an object which can be used to write bytes, strings and other values to a file.
...And 23 more matches
File I/O - Archive of obsolete content
// file is the given directory (nsifile) var entries = file.directoryentries; var array = []; while(entries.hasmoreelements()) { var entry = entries.getnext(); entry.queryinterface(components.interfaces.nsifile); array.push(entry); } reading from a file read into a
stream or a string this will allow you to read a file without locking up the ui thread while reading.
...so therefore for the first parameter, file, you can pass an nsifile object or a string (such as a jar path) see: netutil.asyncfetch: components.utils.import("resource://gre/modules/netutil.jsm"); netutil.asyncfetch(file, function(input
stream, status) { if (!components.issuccesscode(status)) { // handle error!
... return; } // the file data is contained within input
stream.
...And 22 more matches
HTML parser threading
(for historical reasons, it also contains unrelated fragment parsing code that should be refactored into a separate class in due course.) nshtml5
streamparser contains the code for dealing with data from the network.
... nshtml5parser owns nshtml5
streamparser.
...parsers created using document.open()) don't have an nshtml5
streamparser instance.
...And 22 more matches
nsITransport
netwerk/base/public/nsitransport.idlscriptable this interface provides a common way of accessing i/o
streams connected to some resource.
... inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this interface provides methods to open blocking or non-blocking, buffered or unbuffered
streams to the resource.
... the name "transport" is meant to connote the inherent data transfer implied by this interface (that is, data is being transfered in some fashion via the
streams exposed by this interface).
...And 21 more matches
Signaling and video calling - Web APIs
each peer sends candidates in the order they're discovered, and keeps sending candidates until it runs out of suggestions, even if media has already started
streaming.
...if they later agree on a better (usually higher-performance) candidate, the
stream may change formats as needed.
...that would be weird."); return; } targetusername = clickedusername; createpeerconnection(); navigator.mediadevices.getusermedia(mediaconstraints) .then(function(local
stream) { document.getelementbyid("local_video").srcobject = local
stream; local
stream.gettracks().foreach(track => mypeerconnection.addtrack(track, local
stream)); }) .catch(handlegetusermediaerror); } } this begins with a basic sanity check: is the user already connected?
...And 21 more matches
Capabilities, constraints, and settings - Web APIs
overview the process works like this (using media
streamtrack as an example): if needed, call mediadevices.getsupportedconstraints() to get the list of supported constraints, which tells you what constrainable properties the browser knows about.
... in the media
stream api, both media
stream and media
streamtrack have constrainable properties.
...however, if you use simple values for properties when calling media
streamtrack.applyconstraints(), the request will always succeed, because these values will be considered a request, not a requirement.
...And 20 more matches
Using DTMF with WebRTC - Web APIs
note that this example is "cheating" by generating both peers in one code
stream, rather than having each be a truly separate entity.</p> <audio id="audio" autoplay controls></audio><br/> <button name="dial" id="dial">dial</button> <div class="log"></div> javascript let's take a look at the javascript code next.
...this will be obtained while setting up the connection, in the got
stream() function shown in adding the audio to the connection.
... hasaddtrack because some browsers have not yet implemented rtcpeerconnection.addtrack(), therefore requiring the use of the obsolete add
stream() method, we use this boolean to determine whether or not the user agent supports addtrack(); if it doesn't, we'll fall back to add
stream().
...And 20 more matches
Audio and Video Delivery - Developer guides
we can deliver audio and video on the web in a number of ways, ranging from 'static' media files to adaptive live
streams.
... the audio and video elements whether we are dealing with pre-recorded audio files or live
streams, the mechanism for making them available through the browser's <audio> and <video> elements remains pretty much the same.
... getusermedia /
stream api it's also possible to retrieve a live
stream from a webcam and/or microphone using getusermedia and the
stream api.
...And 19 more matches
FileUtils.jsm
; the file constructor if you have a path to a file (or directory) you want to obtain an nsifile for, you can do so using the file constructor, like this: var f = new fileutils.file(mypath); method overview nsifile getfile(string key, array patharray, bool followlinks); nsifile getdir(string key, array patharray, bool shouldcreate, bool followlinks); nsifileoutput
stream openfileoutput
stream(nsifile file, int modeflags); nsifileoutput
stream openatomicfileoutput
stream(nsifile file, int modeflags); nsifileoutput
stream opensafefileoutput
stream(nsifile file, int modeflags); void closeatomicfileoutput
stream(nsifileoutput
stream stream); void closesafefileoutput
stream(nsifileoutput
stream stream); constants constant ...
...instead use the file constructor, so simply: var dir = new fileutils.file('c:\\blah\\blah'); if (dir.exists()) { //yes directory exists } openfileoutput
stream() opens a file output
stream for writing.
... the
stream is opened with the defer_open nsifileoutput
stream.behavior flag constant this means the file is not actually opened until the first time it's accessed.
...And 17 more matches
nsICacheEntryDescriptor
inherits from: nsicacheentryinfo last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void close(); void doom(); void doomandfailpendingrequests(in nsresult status); string getmetadataelement(in string key); void markvalid(); nsiinput
stream openinput
stream(in unsigned long offset); nsioutput
stream openoutput
stream(in unsigned long offset); void setdatasize(in unsigned long size); void setexpirationtime(in pruint32 expirationtime); void setmetadataelement(in string key, in string value); void visitmetadata(in nsicachemetadatavisitor visitor); attributes attribute type description accessgranted nscacheaccessmode get t...
...this will fail if the cache entry is
stream based.
...openinput
stream() this method opens blocking input
stream to cache data.
...And 16 more matches
nsIMsgMessageService
objects that implements nsimsgmessageservice give the user top level routines related to messages like copying, displaying, attachment's manipulation, printing,
streaming the message content to eml format string, etc.
... inherits from: nsisupports method overview void copymessage(in string asrcuri, in nsi
streamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); [noscript] void copymessages(in nsmsgkeyarrayptr keys, in nsimsgfolder srcfolder, in nsi
streamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); void displaymessage(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in string acharsetoverride, out nsiuri aurl); void openattachment(in string acontenttype, in string afilename, in string aurl, in string amessageuri, in nsisupports adisplayconsumer, in nsims...
...i(in string amessageuri, out nsiuri aurl, in nsimsgwindow amsgwindow); void displaymessageforprinting(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, out nsiuri aurl); void search(in nsimsgsearchsession asearchsession, in nsimsgwindow amsgwindow, in nsimsgfolder amsgfolder, in string asearchuri); nsiuri
streammessage(in string amessageuri, in nsisupports aconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in boolean aconvertdata, in string aadditionalheader); nsiuri
streamheaders(in string amessageuri, in nsi
streamlistener aconsumer, in nsiurllistener aurllistener [optional] in boolean alocalonly); boolean ismsginmemcache(in nsiuri aurl, in nsimsgfolder afolder, out...
...And 16 more matches
Necko walkthrough
nsdocshell as an example client of the nsihttpchannel api nsdocshell::loaduri(string) create nsiuri from string nsdocshell::loaduri(nsiuri) creates 2 nsiinput
stream for read response from; passes them with uri to ...
... nsdocshell::internalload nsdocshell::douriload opens the nsichannel for the uri (ns_newchannel) if "http:", it will be an nsihttpchannel nsdocshell::dochannelload nsuriloader::openuri passes an nsi
streamlistener pointer, 'loader' to nsuriloader::openchannel - it creates an nsdocumentopeninfo object, which implements nsi
streamlistener, i.e.
... receive response get a callback to each of these: nsi
streamlistener::onstartrequest (header info) nsi
streamlistener::ondataavailable (data in single or multiple chunks) nsi
streamlistener::onstoprequest (no more data from http) this all happens on the main thread, in a non-blocking fashion: make your request on the main thread, then carry on and get the async response later, also on the main thread.
...And 14 more matches
RTCPeerConnection - Web APIs
see signaling in lifetime of a webrtc session for more details about the signaling process.event handlersalso inherits event handlers from: eventtargetonadd
stream the rtcpeerconnection.onadd
stream event handler is a property containing the code to execute when the add
stream event, of type media
streamevent, is received by this rtcpeerconnection.
... such an event is sent when a media
stream is added to this connection by the remote peer.
...such an event is sent when an identity assertion, received from a peer, has been successfully validated.onremove
stream the rtcpeerconnection.onremove
stream event handler is a property containing the code to execute when the remove
stream event, of type media
streamevent, is received by this rtcpeerconnection.
...And 14 more matches
Taking still photos with WebRTC - Web APIs
the html markup our html interface has two main operational sections: the
stream and capture panel and the presentation panel.
... the first panel on the left contains two components: a <video> element, which will receive the
stream from webrtc, and a <button> the user clicks to capture a video frame.
... <div class="camera"> <video id="video">video
stream not available.</video> <button id="startbutton">take photo</button> </div> this is straightforward, and we'll see how it ties together when we get into the javascript code.
...And 14 more matches
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
we start with the request to load a particular link in a particular window, and proceed up to the point at which the data
stream is dispatched to the proper handler.
... the final goal is to find the correct
stream listener to pump the data into when necko calls ondataavailable (e.g., we may find the html parser as the
stream listener to give the data to).
...there is basically one of these per load (though see the section on
stream converters).
...And 12 more matches
Reading textual data - Archive of obsolete content
this article describes how to read textual data from
streams, files and sockets.
... xxx: document nsiunichar
streamlistener (gecko 1.8) xxx: also document nsi
streamlistener here?
... converting read data if you read data from nsiscriptableinput
stream as described on the file i/o code snippets page, you can convert it to utf-8 // s
stream is nsiscriptableinput
stream var str = s
stream.read(4096); var utf8converter = components.classes["@mozilla.org/intl/utf8converterservice;1"].
...And 12 more matches
nsIZipReader
rn); nsiutf8stringenumerator findentries(in string apattern); obsolete since gecko 10 nsiprincipal getcertificateprincipal(in autf8string aentryname); nsiprincipal getcertificateprincipal(in string aentryname); obsolete since gecko 10 nsizipentry getentry(in autf8string zipentry); nsizipentry getentry(in string zipentry); obsolete since gecko 10 nsiinput
stream getinput
stream(in autf8string zipentry); nsiinput
stream getinput
stream(in string zipentry); obsolete since gecko 10 nsiinput
stream getinput
streamwithspec(in autf8string ajarspec, in autf8string zipentry); nsiinput
stream getinput
streamwithspec(in autf8string ajarspec, in string zipentry); obsolete since gecko 10 boolean hasentry(in autf8string zipentry); void...
...subsequent attempts to extract() files or read from its input
stream will result in an error.
...if aentryname is an entry in the jar, getinput
stream() must be called after parsemanifest.
...And 12 more matches
NPN_Write - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary pushes data into a
stream produced by the plug-in and consumed by the browser.
... syntax #include <npapi.h> int32 npn_write(npp instance, np
stream*
stream, int32 len, void* buf); parameters the function has the following parameters: instance pointer to the current plug-in instance.
...
stream pointer to the
stream into which to push the data.
...And 11 more matches
WebRTC API - Web APIs
webrtc (web real-time communication) is a technology which enables web applications and sites to capture and optionally
stream audio and/or video media, as well as to exchange arbitrary data between browsers without requiring an intermediary.
... webrtc concepts and usage webrtc serves multiple purposes; together with the media capture and
streams api, they provide powerful multimedia capabilities to the web, including support for audio and video conferencing, file exchange, screen sharing, identity management, and interfacing with legacy telephone systems including support for sending dtmf (touch-tone dialing) signals.
...once a connection has been established and opened using rtcpeerconnection, media
streams (media
streams) and/or data channels (rtcdatachannels) can be added to the connection.
...And 11 more matches
WebRTC Statistics API - Web APIs
this way, we look only at the video-related statistics for the local rtcrtpreceiver responsible for receiving the
streamed media.
... rtccertificatestats rtcstats codec statistics about a specific codec being used by
streams being sent or received by this connection.
... rtccodecstats rtcstats csrc statistics for a single contributing source (csrc) that contributed to one of the connection's inbound rtp
streams.
...And 11 more matches
MediaDevices.getUserMedia() - Web APIs
the mediadevices.getusermedia() method prompts the user for permission to use a media input which produces a media
stream with tracks containing the requested types of media.
... that
stream can include, for example, a video track (produced by either a hardware or virtual video source such as a camera, video recording device, screen sharing service, and so forth), an audio track (similarly, produced by a physical or virtual audio source like a microphone, a/d converter, or the like), and possibly other track types.
... it returns a promise that resolves to a media
stream object.
...And 10 more matches
Recording a media element - Web APIs
while the article using the media
stream recording api demonstrates using the mediarecorder interface to capture a media
stream generated by a hardware device, as returned by navigator.mediadevices.getusermedia(), you can also use an html media element (namely <audio> or <video>) as the source of the media
stream to be recorded.
...note that the autoplay attribute is used so that as soon as the
stream starts to arrive from the camera, it immediately gets displayed, and the muted attribute is specified to ensure that the sound from the user's microphone isn't output to their speakers, causing an ugly feedback loop.
... starting media recording the startrecording() function handles starting the recording process: function startrecording(
stream, lengthinms) { let recorder = new mediarecorder(
stream); let data = []; recorder.ondataavailable = event => data.push(event.data); recorder.start(); log(recorder.state + " for " + (lengthinms/1000) + " seconds..."); let stopped = new promise((resolve, reject) => { recorder.onstop = resolve; recorder.onerror = event => reject(event.name); }); let recorded = wait(lengthin...
...And 10 more matches
RTCStatsReport - Web APIs
calling getstats() on an rtcpeerconnection lets you specify whether you wish to obtain statistics for outbound, inbound, or all
streams on the connection.
... the rtcrtpreceiver and rtcrtpsender versions of getstats() specifically only return statistics available to the incoming or outgoing
stream on which you call them.
... codec an rtccodecstats object containing statistics about a codec currently being used by rtp
streams to send or receive data for the rtcpeerconnection.
...And 10 more matches
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
it can be used for any form of continuous or active data transfer, including data
streaming, active badges or status display updates, or control and measurement information transport.
...these correspond to the following three types of transport supported by rtcpeerconnection: rtcrtpsender rtcrtpsenders handle the encoding and transmission of media
streamtrack data to a remote peer.
... rtcrtpreceiver rtcrtpreceivers provide the ability to inspect and obtain information about incoming media
streamtrack data.
...And 10 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
var ioservice = components.classes['@mozilla.org/network/io-service;1'] .getservice(components.interfaces.nsiioservice); var filehandler = ioservice.getprotocolhandler('file') .queryinterface(components.interfaces.nsifileprotocolhandler); var file = filehandler.getfilefromurlspec(url); var path = file.path; alert(path); // "c:\temp\temp.txt" binary file i/o use
streams, as in java, for file i/o in xpcom.
... listing 13: reading the contents of a binary file file.initwithpath('c:\\temp\\temp.txt'); var file
stream = components.classes['@mozilla.org/network/file-input-
stream;1'] .createinstance(components.interfaces.nsifileinput
stream); file
stream.init(file, 1, 0, false); var binary
stream = components.classes['@mozilla.org/binaryinput
stream;1'] .createinstance(components.interfaces.nsibinaryinput
stream); binary
stream.setinput
stream(file
stream); var array = binary
stream.re...
...adbytearray(file
stream.available()); binary
stream.close(); file
stream.close(); alert(array.map( function(aitem) {return aitem.tostring(16); } ).join(' ').touppercase( )); when we initialized nsifileinput
stream, we set the second and third parameters to initialize it in read-only mode.
...And 9 more matches
Introducing the Audio API extension - Archive of obsolete content
reading audio
streams the loadedmetadata event when the metadata of the media element is available, it triggers a loadedmetadata event.
... this event has the following attributes: mozchannels: 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.
...playing, pausing, and seeking the audio also affect the
streaming of this raw audio data.
...And 9 more matches
Plug-in Development Overview - Gecko Plugin API Reference
sending and receiving
streams
streams are objects that represent urls and the data they contain.
... a
stream is associated with a specific instance of a plug-in, but a plug-in can have more than one
stream per instance.
...
streams can be produced by the browser and consumed by a plug-in instance, or produced by an instance and consumed by the browser.
...And 9 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
13 adobe flash adobe, codingscripting, flash, glossary, infrastructure flash is an obsolescent technology developed by adobe for viewing expressive web applications, multimedia content, and
streaming media.
... 82 codec glossary, webmechanics a codec (a blend word derived from "coder-decoder") is a program, algorithm, or device that encodes or decodes a data
stream.
...continuous media can be real-time (interactive), where there is a "tight" timing relationship between source and sink, or
streaming (playback), where the relationship is less strict.
...And 9 more matches
Creating Sandboxed HTTP Connections
channel.asyncopen(listener, null); http notifications the above mentioned listener is a nsi
streamlistener, which gets notified about events such as http redirects and data availability.
...since this is a
stream, it could be called multiple times (depending on the size of the returned data, networking conditions, etc).
... since nsi
streamlistener does not cover cookies, the current channel being used will need to be stored as a global, since another listener will be used for cookie notifications (covered in the next section).
...And 9 more matches
Necko Architecture
mimetype - mime <-> file extension mapping nkabout - about: protocol nkdata - data: protocol nkfile - file: protocol nkftp - ftp: protocol nkkeyword - keyword: protocol nkresrc - resource: protocol cnvts -
stream converters stremcnv -
stream converter service these libraries will change with time and illustrate the modularity of necko.
... receiving data & nsi
streamlistener you can read or write, from or to a channel using either the synchronous api, or the asynchronous api.
... if you want to move data asynchronously you need to be able to receive callbacks using an implementation of nsi
streamlistener.
...And 9 more matches
Plug-in Development Overview - Plugins
sending and receiving
streams
streams are objects that represent urls and the data they contain.
... a
stream is associated with a specific instance of a plug-in, but a plug-in can have more than one
stream per instance.
...
streams can be produced by the browser and consumed by a plug-in instance, or produced by an instance and consumed by the browser.
...And 9 more matches
Writing textual data - Archive of obsolete content
this article describes how to write textual data to
streams, files and sockets in an internationalization-aware way.
... when writing textual data to an output
stream or to a file, you need to pick a character encoding.
... writing to a
stream in gecko 1.8 (seamonkey 1.0, firefox 1.5), you can use nsiconverteroutput
stream: var charset = "utf-8"; // can be any character encoding name that mozilla supports var os = components.classes["@mozilla.org/intl/converter-output-
stream;1"] .createinstance(components.interfaces.nsiconverteroutput
stream); // this assumes that fos is the nsioutput
stream you want to write to os.init(fos, c...
...And 8 more matches
NPP_Write - Archive of obsolete content
(remark: hence the name "npp_write" is misleading - just think of:"data_arrived") syntax #include <npapi.h> int32 npp_write(npp instance, np
stream*
stream, int32 offset, int32 len, void* buf); parameters the function has the following parameters: instance pointer to the current plug-in instance.
...
stream pointer to the current
stream.
... offset offset in bytes of buf from the beginning of the data in the
stream.
...And 8 more matches
NPAPI plugin reference - Archive of obsolete content
npbyterange represents a particular range of bytes from a
stream.
... npn new
stream requests the creation of a new data
stream produced by the plug-in and consumed by the browser.
... npn_destroy
stream closes and deletes a
stream.
...And 8 more matches
RTCStatsType - Web APIs
codec an rtccodecstats object containing statistics about a codec currently being used by rtp
streams to send or receive data for the rtcpeerconnection.
... csrc an rtccontributingsourcestats object which contains statistics related to a contributing source (csrc) that contributed to an inbound rtp
stream.
... inbound-rtp an rtcinboundrtp
streamstats object providing statistics about inbound data being received from remote peers.
...And 8 more matches
NPN_RequestRead - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary requests a range of bytes from a seekable
stream.
...syntax #include <npapi.h> nperror npn_requestread(np
stream*
stream, npbyterange* rangelist); parameters the function has the following parameters:
stream stream of type np_seek from which to read bytes.
... description for a seekable
stream, the browser sends data only in response to requests by the plug-in.
...And 7 more matches
Rhino serialization
rhino serialization apis two new classes, scriptableoutput
stream and scriptableinput
stream, were introduced to handle serialization of rhino classes.
... these classes extend objectoutput
stream and objectinput
stream respectively.
... writing an object to a file can be done in a few lines of java code: fileoutput
stream fos = new fileoutput
stream(filename); scriptableoutput
stream out = new scriptableoutput
stream(fos, scope); out.writeobject(obj); out.close(); here filename is the file to write to, obj is the object or function to write, and scope is the top-level scope containing obj.
...And 7 more matches
nsIDocShell
nstorageforprincipal(in nsiprincipal principal, in domstring documenturi, in boolean create); nsidomstorage getsessionstorageforuri(in nsiuri uri, in domstring documenturi); void historypurged(in long numentries); void internalload(in nsiuri auri, in nsiuri areferrer, in nsisupports aowner, in pruint32 aflags, in wstring awindowtarget, in string atypehint, in nsiinput
stream apostdata
stream, in nsiinput
stream aheaders
stream, in unsigned long aloadflags, in nsishentry ashentry, in boolean firstparty, out nsidocshell adocshell, out nsirequest arequest); native code only!
... boolean isbeingdestroyed(); void load
stream(in nsiinput
stream a
stream, in nsiuri auri, in acstring acontenttype, in acstring acontentcharset, in nsidocshellloadinfo aloadinfo); native code only!
...void internalload( in nsiuri auri, in nsiuri areferrer, in nsisupports aowner, in pruint32 aflags, in wstring awindowtarget, in string atypehint, in nsiinput
stream apostdata
stream, in nsiinput
stream aheaders
stream, in unsigned long aloadflags, in nsishentry ashentry, in boolean firstparty, out nsidocshell adocshell, out nsirequest arequest ); parameters auri the uri to load.
...And 7 more matches
Gecko Plugin API Reference - Plugins
g the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving
streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry initialization and...
... getting information windowed plug-ins mac os windows unix event handling for windowed plug-ins windowless plug-ins specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins
streams receiving a
stream telling the plug-in when a
stream is created telling the plug-in when a
stream is deleted finding out how much data the plug-in can accept writing the
stream to the plug-in sending the
stream in random-access mode sending the
stream in file mode sending a
stream creating a
stream pushing data into the
stream deleting the
stream example of sending a
stream urls ...
... npp_destroy npp_destroy
stream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_new
stream npp_print npp_setvalue npp_setwindow np_shutdown npp_
streamasfile npp_urlnotify npp_write npp_writeready browser side plug-in api this chapter describes methods in the plug-in api that are available from the browser.
...And 7 more matches
HTMLMediaElement.srcObject - Web APIs
the object can be a media
stream, a mediasource, a blob, or a file (which inherits from blob).
... note: as of march 2020, only safari supports setting objects other than media
stream.
... syntax var sourceobject = htmlmediaelement.srcobject; htmlmediaelement.srcobject = sourceobject; value a media
stream, mediasource, blob, or file object (though see the compatibility table for what is actually supported).
...And 7 more matches
Media Source API - Web APIs
the media source api, formally known as media source extensions (mse), provides functionality enabling plugin-free web-based
streaming media.
... using mse, media
streams can be created via javascript, and played using <audio> and <video> elements.
...
streaming media has up until recently been the domain of flash, with technologies like flash media server serving video
streams using the rtmp protocol.
...And 7 more matches
Using server-sent events - Web APIs
you'll need a bit of code on the server to
stream events to the front-end, but the client side code works almost identically to websockets in part of handling incoming events.
...when using http/2, the maximum number of simultaneous http
streams is negotiated between the server and the client (defaults to 100).
... sending events from the server the server-side script that sends events needs to respond using the mime type text/event-
stream.
...And 7 more matches
Web Audio API - Web APIs
these could be either computed mathematically (such as oscillatornode), or they can be recordings from sound/video files (like audiobuffersourcenode and mediaelementaudiosourcenode) and audio
streams (media
streamaudiosourcenode).
... outputs of these nodes could be linked to inputs of others, which mix or modify these
streams of sound samples into different
streams.
... a simple, typical workflow for web audio would look something like this: create audio context inside the context, create sources — such as <audio>, oscillator,
stream create effects nodes, such as reverb, biquad filter, panner, compressor choose final destination of audio, for example your system speakers connect the sources up to the effects, and the effects to the destination.
...And 7 more matches
Web audio codec guide - Web media technologies
for web developers, an even bigger concern is the network bandwidth needed in order to transfer audio, whether for
streaming or to download it for use during gameplay.
... for each factor that affects the encoded audio, there is a simple rule that is nearly always true: because the fidelity of digital audio is determined by the granularity and precision of the samples taken to convert it into a data
stream, the more data used to represent the digital version of the audio, the more closely the sampled sound will match the source material.
...for real-time
streaming of audio, a lossy codec is usually required in order to ensure the flow of data can keep up with the audio playback rate regardless of network performance.
...And 7 more matches
Codecs used by WebRTC - Web media technologies
containerless media webrtc uses bare media
streamtrack objects for each track being shared from one peer to another, without a container or even a media
stream associated with the tracks.
... unless the sdp specifically signals otherwise, the web browser receiving a webrtc video
stream must be able to handle video at at least 20 fps at a minimum resolution of 320 pixels wide by 240 pixels tall.
...avc implementations for webrtc are required to support the special "filler payload" and "full frame freeze" sei messages; these are used to support switching among multiple input
streams seamlessly.
...And 7 more matches
nsIDOMHTMLAudioElement
returns the current offset of the audio
stream, specified as the number of samples that have played since the beginning of the
stream.
...return value an unsigned 64-bit value indicating how many audio samples have been played since the
stream began playing.
... sets up the audio
stream for writing.
...And 6 more matches
nsIJSON
jsobject decodefrom
stream(in nsiinput
stream stream, in long contentlength); astring encode(in jsobject value); obsolete since gecko 7.0 astring encodefromjsval(in jsvaljsval value, in jscontext cx); native code only!
... void encodeto
stream(in nsioutput
stream stream, in string charset, in boolean writebom, in jsobject value); jsval legacydecode(in astring str); deprecated since gecko 2.0 jsval legacydecodefrom
stream(in astring str); deprecated since gecko 2.0 jsval legacydecodetojsval(in astring str, in jscontext cx); native code only!
... decodefrom
stream() decodes a json string read from an input
stream, returning the javascript object it represents.
...And 6 more matches
nsIPipe
xpcom/io/nsipipe.idlscriptable this interface represents an in-process buffer that can be read using nsiinput
stream and written using nsioutput
stream.
... inherits from: nsisupports last changed in gecko 1.6 method overview void init(in boolean nonblockinginput, in boolean nonblockingoutput, in unsigned long segmentsize, in unsigned long segmentcount, in nsimemory segmentallocator); attributes attribute type description input
stream nsiasyncinput
stream the pipe's input end, which also implements nsisearchableinput
stream.
... output
stream nsiasyncoutput
stream the pipe's output end.
...And 6 more matches
nsITraceableChannel
ko 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 nsihttpchannel), since otherwise you may end up with two listeners registered for a channel; qi the channel passed as the "subject" to your observer to nsitraceablechannel, and replace the default nsi
streamlistener (that passes the data to the original requester - e.g.
... to xmlhttprequest or to the browser tab that made the request) with your own implementation (see "implementing nsi
streamlistener" below).
... after that your nsi
streamlistener implementation will get the response data and will be able to pass the data on to the original nsi
streamlistener (possibly modifying it).
...And 6 more matches
nsIUploadChannel
netwerk/base/public/nsiuploadchannel.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 setupload
stream(in nsiinput
stream a
stream, in acstring acontenttype, in long acontentlength); attributes attribute type description upload
stream nsiinput
stream get the
stream (to be) uploaded by this channel.
...And 6 more matches
XPCOM Interface Reference
sibletextnsiaccessibletextchangeeventnsiaccessibletreecachensiaccessiblevaluensiaccessiblewin32objectnsialertsservicensiannotationobservernsiannotationservicensiappshellnsiappshellservicensiappstartupnsiappstartup_mozilla_2_0nsiapplicationcachensiapplicationcachechannelnsiapplicationcachecontainernsiapplicationcachenamespacensiapplicationcacheservicensiapplicationupdateservicensiarraynsiasyncinput
streamnsiasyncoutput
streamnsiasync
streamcopiernsiasyncverifyredirectcallbacknsiauthinformationnsiauthmodulensiauthpromptnsiauthprompt2nsiauthpromptadapterfactorynsiauthpromptcallbacknsiauthpromptprovidernsiauthpromptwrappernsiautocompletecontrollernsiautocompleteinputnsiautocompleteitemnsiautocompletelistenernsiautocompleteobservernsiautocompleteresultnsiautocompletesearchnsibadcertlistener2nsibidikeybo...
...ardnsibinaryinput
streamnsibinaryoutput
streamnsiblocklistpromptnsiblocklistservicensiboxobjectnsibrowserboxobjectnsibrowserhistorynsibrowsersearchservicensicrlinfonsicrlmanagernsicachensicachedeviceinfonsicacheentrydescriptornsicacheentryinfonsicachelistenernsicachemetadatavisitornsicacheservicensicachesessionnsicachevisitornsicachingchannelnsicancelablensicategorymanagernsichannelnsichanneleventsinknsichannelpolicynsicharsetresolvernsichromeframemessagemanagernsichromeregistrynsiclassinfonsiclipboardnsiclipboardcommandsnsiclipboarddragdrophooklistnsiclipboarddragdrophooksnsiclipboardhelpernsiclipboardownernsicollectionnsicommandcontrollernsicommandlinensicommandlinehandlernsicommandlinerunnernsicomponentmanagernsicomponentregistrarnsicompositionstringsynthesizernsiconsolelistenernsiconsolemessag...
...ensiconsoleservicensicontainerboxobjectnsicontentframemessagemanagernsicontentprefnsicontentprefcallback2nsicontentprefobservernsicontentprefservicensicontentprefservice2nsicontentsecuritypolicynsicontentsniffernsicontentviewnsicontentviewmanagernsicontentviewernsicontrollernsicontrollersnsiconverterinput
streamnsiconverteroutput
streamnsicookiensicookie2nsicookieacceptdialognsicookieconsentnsicookiemanagernsicookiemanager2nsicookiepermissionnsicookiepromptservicensicookieservicensicookiestoragensicrashreporternsicryptohmacnsicryptohashnsicurrentcharsetlistenernsicyclecollectorlistenernsidbchangelistenernsidbfolderinfonsidnslistenernsidnsrecordnsidnsrequestnsidnsservicensidomcanvasrenderingcontext2dnsidomchromewindownsidomclientrectnsidomdesktopnotificationnsidomdesktopnotificationcenternsidomelem...
...And 6 more matches
URLs - Plugins
the plug-in uses the npn_geturl function to ask the browser to display data retrieved from a url in a specified target window or frame, or deliver it to the plug-in instance in a new
stream.
... if the browser cannot locate the url and retrieve the data, it does not create a
stream for the instance; in this case, the plug-in receives notification of the result.
... to request a
stream and receive notification of the result in all cases, use npn_geturlnotify.
...And 6 more matches
ByteLengthQueuingStrategy - Web APIs
the bytelengthqueuingstrategy interface of the the
streams api provides a built-in byte length queuing strategy that can be used when constructing
streams.
... examples const queueingstrategy = new bytelengthqueuingstrategy({ highwatermark: 1 }); const readable
stream = new readable
stream({ start(controller) { ...
... }, cancel(err) { console.log("
stream error:", err); } }, queueingstrategy); var size = queueingstrategy.size(chunk); specifications specification status comment
streamsthe definition of 'bytelengthqueuingstrategy' in that specification.
...And 6 more matches
CountQueuingStrategy - Web APIs
the countqueuingstrategy interface of the the
streams api provides a built-in chunk counting queuing strategy that can be used when constructing
streams.
... examples const queueingstrategy = new countqueuingstrategy({ highwatermark: 1 }); const writable
stream = new writable
stream({ // implement the sink write(chunk) { ...
... }, abort(err) { console.log("sink error:", err); } }, queueingstrategy); var size = queueingstrategy.size(); specifications specification status comment
streamsthe definition of 'countqueuingstrategy' in that specification.
...And 6 more matches
ImageCapture - Web APIs
the imagecapture interface of the media
stream image capture api provides methods to enable the capture of images or photos from a camera or other photographic device.
... it provides an interface for capturing images from a photographic device referenced through a valid media
streamtrack.
... constructor imagecapture() creates a new imagecapture object which can be used to capture still frames (photos) from a given media
streamtrack which represents a video
stream.
...And 6 more matches
MediaDevices.getDisplayMedia() - Web APIs
the mediadevices interface's getdisplaymedia() method prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a media
stream.
... the resulting
stream can then be recorded using the media
stream recording api or transmitted as part of a webrtc session.
... syntax var promise = navigator.mediadevices.getdisplaymedia(constraints); parameters constraints optional an optional media
streamconstraints object specifying requirements for the returned media
stream.
...And 6 more matches
Web APIs
nter stylescss font loading api cssomcanvas apichannel 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 capture and
streamsmedia session apimedia source extensions media
stream recordingnnavigation timingnetwork information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access api
streams ttouch eventsuurl apivvibration...
...mathproduct cssmathsum cssmathvalue cssmediarule cssnamespacerule cssnumericvalue cssomstring csspagerule csspositionvalue cssprimitivevalue csspseudoelement cssrule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariablereferencevalue cache cachestorage canvascapturemedia
streamtrack 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 countqueuings...
...ctreadonly domstring domstringlist domstringmap domtimestamp domtokenlist domuserdata datatransfer datatransferitem datatransferitemlist dedicatedworkerglobalscope delaynode deprecationreportbody devicelightevent devicemotionevent devicemotioneventacceleration devicemotioneventrotationrate deviceorientationevent deviceproximityevent directoryentrysync directoryreadersync displaymedia
streamconstraints document documentfragment documentorshadowroot documenttimeline documenttouch documenttype doublerange dragevent dynamicscompressornode e ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_filter_anisotropic ec...
...And 6 more matches
The "codecs" parameter in common media types - Web media technologies
av1 codec parameter string components component details p the one-digit profile number: av1 profile numbers profile number description 0 "main" profile; supports yuv 4:2:0 or monochrome bit
streams with bit depth of 8 or 10 bits per component.
...generally speaking, the higher the level number, the more bandwidth the
stream will use and the higher the maximum video dimensions are supported.
...all cbp
streams are considered to also be bp
streams.
...And 6 more matches
Using the WebAssembly JavaScript API - WebAssembly
create a <script></script> element in your html file, and add the following code to it: var importobject = { imports: { imported_func: arg => console.log(arg) } };
streaming the webassembly module new in firefox 58 is the ability to compile and instantiate webassembly modules directly from underlying sources.
... this is achieved using the webassembly.compile
streaming() and webassembly.instantiate
streaming() methods.
... these methods are easier than their non-
streaming counterparts, because they can turn the byte code directly into module/instance instances, cutting out the need to separately put the response into an arraybuffer.
...And 6 more matches
HTTP Cache
the response payload) to write to the cache entry, it must open the output
stream on it before it calls metadataready.
... when the writer still keeps the cache entry and has open and keeps open the output
stream on it, other consumers may open input
streams on the entry.
... the data will be available as the writer writes data to the cache entry's output
stream immediately, even before the output
stream is closed.
...And 5 more matches
Web Replay
when a call or message is intercepted, the wrapped call/message is first performed normally and then it and its outputs are recorded in a data
stream for the thread performing the call.
... acquisition order of locks is recorded in a data
stream for each lock.
... accesses on atomic variables/fields are recorded in a global data
stream, as if they were all protected by a global lock.
...And 5 more matches
nsIChannel
method overview void asyncopen(in nsi
streamlistener alistener, in nsisupports acontext); nsiinput
stream open(); attributes attribute type description contentcharset acstring the character set of the channel's content if available and if applicable.
...this means that: the
stream listener this channel will be notifying was initially passed to the asyncopen() method of some other channel this channel's uri is a better identifier of the resource being accessed than this channel's originaluri.
...data is fed to the specified
stream listener as it becomes available.
...And 5 more matches
nsICryptoHash
ced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview acstring finish(in prbool aascii); void init(in unsigned long aalgorithm); void initwithstring(in acstring aalgorithm); void update([const, array, size_is(alen)] in octet adata, in unsigned long alen); void updatefrom
stream(in nsiinput
stream a
stream, in unsigned long alen); constants hash algorithms these constants are used by the init() method to indicate which hashing function to use.
... updatefrom
stream() calculates and updates a new hash based on a given data
stream (nsiinput
stream).
... void updatefrom
stream( in nsiinput
stream a
stream, in unsigned long alen ); parameters a
stream an input
stream to read from.
...And 5 more matches
MediaRecorder.start() - Web APIs
the mediarecorder method start(), which is part of the media
stream recording api, begins recording media into one or more blob objects.
...then, each time that amount of media has been recorded, an event will be delivered to let you act upon the recorded media, while a new blob is created to record the next slice of the media assuming the mediarecorder's state is inactive, start() sets the state to recording, then begins capturing media from the input
stream.
... when the source
stream ends, state is set to inactive and data gathering stops.
...And 5 more matches
MediaTrackConstraints - Web APIs
properties of shared screen tracks these constraints apply to mediatrackconstraints objects specified as part of the displaymedia
streamconstraints object's video property when using getdisplaymedia() to obtain a
stream for screen sharing.
... always the mouse is always visible in the video content of the {domxref("media
stream"), unless the mouse has moved outside the area of the content.
...this may be a single one of the following strings, or a list of them to allow multiple source surfaces: application the
stream contains all of the windows of the application chosen by the user rendered into the one video track.
...And 5 more matches
MediaTrackSettings - Web APIs
the mediatracksettings dictionary is used to return the current values configured for each of a media
streamtrack's settings.
...en tracks tracks containing video shared from a user's screen (regardless of whether the screen data comes from the entire screen or a portion of a screen, like a window or tab) are generally treated like video tracks, with the exception that they also support the following added settings: cursor a domstring which indicates whether or not the mouse cursor is being included in the generated
stream and under what conditions.
... possible values are: always the mouse is always visible in the video content of the {domxref("media
stream"), unless the mouse has moved outside the area of the content.
...And 5 more matches
Navigator.getUserMedia() - Web APIs
the deprecated navigator.getusermedia() method prompts the user for permission to use up to one video input device (such as a camera or shared screen) and up to one audio input device (such as a microphone) as the source for a media
stream.
... if permission is granted, a media
stream whose video and/or audio tracks come from those devices is delivered to the specified success callback.
... if permission is denied, no compatible input devices exist, or any other error condition occurs, the error callback is executed with a media
streamerror object describing what went wrong.
...And 5 more matches
Screen Capture API - Web APIs
the screen capture api introduces additions to the existing media capture and
streams api to let the user select a screen or portion of a screen (such as a window) to capture as a media
stream.
... this
stream can then be recorded or shared with others over the network.
...its sole method is mediadevices.getdisplaymedia(), whose job is to ask the user to select a screen or portion of a screen to capture in the form of a media
stream.
...And 5 more matches
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
tld" }] }; const selfvideo = document.queryselector("video.selfview"); const remotevideo = document.queryselector("video.remoteview"); const signaler = new signalingchannel(); 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.
... async function start() { try { const
stream = await navigator.mediadevices.getusermedia(constraints); for (const track of
stream.gettracks()) { pc.addtrack(track,
stream); } selfvideo.srcobject =
stream; } catch(err) { console.error(err); } } this isn't appreciably different from older webrtc connection establishment code.
...then, finally, the media source for the self-view <video> element indicated by the selfvideo constant is set to the camera and microphone
stream, allowing the local user to see what the other peer sees.
...And 5 more matches
Writing a WebSocket server in C# - Web APIs
void main() { tcplistener server = new tcplistener(ipaddress.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.network
stream get
stream() gets the
stream which is the communication channel.
...the value is zero until network
stream.dataavailable is true.
... network
stream methods: write(byte[] buffer, int offset, int size) writes bytes from buffer, offset and size determine length of message.
...And 5 more matches
Progressive web app structure - Progressive web apps (PWAs)
there is also a new approach involving the
streams api, which we'll mention briefly.
... different concept:
streams an entirely different approach to server- or client-side rendering can be achieved with the
streams api.
... with a little help from service workers,
streams can greatly improve the way we parse content.
...And 5 more matches
Structural overview of progressive web apps - Progressive web apps (PWAs)
there is also a new approach involving the
streams api, which we'll mention briefly.
... another approach:
streams an entirely different approach to server- or client-side rendering can be achieved with the
streams api.
... with a little help from service workers,
streams can greatly improve the way we parse content.
...And 5 more matches
io/file - Archive of obsolete content
open(path, mode) returns a
stream providing access to the contents of a file.
... mode : string an optional string, each character of which describes a characteristic of the returned
stream.
... returns
stream : if the file is opened in text read-only mode, a textreader is returned, and if text write-only mode, a textwriter is returned.
...And 4 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
if you want to also make your add-on extractionless then you may need "step 3" if you're loading files with nsifileinput
stream or something similar, or a jar: uri might work.
...the first is to use the nsizipreader interface which permits continuing to use nsiinput
streams, etc.
...g one of your files const myaddonid = ...; // just store a constant with your id components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid(myaddonid,function(addon) { var file = services.io.newuri("resource://myaddon/filename.ext",null,null) .queryinterface(components.interfaces.nsifileurl) .file; var
stream = components.classes["@mozilla.org/network/file-input-
stream;1"] .createinstance(components.interfaces.nsifileinput
stream) .queryinterface(components.interfaces.nsiseekable
stream);
stream.init(file, 0x01, 0444, 0); // read-only, read by owner/group/others, normal behavior /* do stuff */ }); this bit of code is paraphrased and probabl...
...And 4 more matches
The life of an HTML HTTP request - Archive of obsolete content
[note: passes nswebshell.mobserver as nsi
streamobserver and the webshell as nsicontentviewercontainer to the docloader.] (2) the document loader calls ns_openuri with the url to begin transfering the requested file.
...the channel represents the connection to the server, and is the source of the html data
stream.
... (4) the document then creates a nsiparser for parsing the input
stream.
...And 4 more matches
NPN_GetURL - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary asks the browser to create a
stream for the specified url.
... if the target is null, the browser creates a new
stream and delivers the data to the current instance regardless of the mime type of the url.
... description npn_geturl() is used to load a url into the current window or another target or
stream.
...And 4 more matches
imgIDecoder
modules/libpr0n/public/imgidecoder.idlscriptable base class for a decoder that reads an image from an input
stream and sends it to an imgiloader object.
...method overview void close(); void flush(); void init(in imgiload aload); unsigned long writefrom(in nsiinput
stream instr, in unsigned long count); methods close() closes the
stream.
...flush() flushes the
stream.
...And 4 more matches
nsIMsgFolder
bel); nsimsgdatabase getmsgdatabase(in nsimsgwindow msgwindow); void setmsgdatabase(in nsimsgdatabase msgdatabase); nsimsgdatabase getdbfolderinfoanddb(out nsidbfolderinfo folderinfo); nsimsgdbhdr getmessageheader(in nsmsgkey msgkey); boolean shouldstoremsgoffline(in nsmsgkey msgkey); boolean hasmsgoffline(in nsmsgkey msgkey); nsiinput
stream getofflinefile
stream(in nsmsgkey msgkey, out pruint32 offset, out pruint32 size); void downloadmessagesforoffline(in nsisupportsarray messages, in nsimsgwindow window); nsimsgfolder getchildwithuri(in acstring uri, in boolean deep, in boolean caseinsensitive); void downloadallforoffline(in nsiurllistener listener, in nsimsgwindow window); void enablenotificatio...
... void notifyitemadded(in nsisupports item); void notifyitemremoved(in nsisupports item); void notifyfolderevent(in nsiatom event); void listdescendents(in nsisupportsarray descendents); void shutdown(in boolean shutdownchildren); void setinvfeditsearchscope(in boolean asearchthisfolder, in boolean asetonsubfolders); void copydatatooutput
streamforappend(in nsiinput
stream ai
stream, in long alength, in nsioutput
stream output
stream); void copydatadone(); void setjunkscoreformessages(in nsisupportsarray amessages, in acstring ajunkscore); void applyretentionsettings(); boolean fetchmsgpreviewtext([array, size_is (anumkeys)] in nsmsgkey akeystofetch, in unsigned long anumkeys, in boolean alocalonly, in nsi...
...urllistener aurllistener); void addkeywordstomessages(in nsisupportsarray amessages, in acstring akeywords); void removekeywordsfrommessages(in nsisupportsarray amessages, in acstring akeywords); autf8string getmsgtextfrom
stream(in nsimsgdbhdr amsghdr, in nsiinput
stream a
stream, in long abytestoread, in long amaxoutputlen, in boolean acompressquotes); attributes attribute type description supportsoffline boolean readonly offlinestoreoutput
stream nsioutput
stream readonly offlinestoreinput
stream nsiinput
stream readonly retentionsettings nsimsgretentionsettings downloadsettings nsimsgdownloadsettings sortorder long used for order in the folder pane, folder pi...
...And 4 more matches
Body - Web APIs
this provides these objects with an associated body (a
stream), a used flag (initially unset), and a mime type (initially the empty byte sequence).
... properties body.body read only a simple getter used to expose a readable
stream of the body contents.
... methods body.arraybuffer() takes a response
stream and reads it to completion.
...And 4 more matches
MediaDevices - Web APIs
getsupportedconstraints() returns an object conforming to mediatracksupportedconstraints indicating which constrainable properties are supported on the media
streamtrack interface.
... see capabilities and constraints in media capture and
streams api (media
stream) to learn more about constraints and how to use them.
... getdisplaymedia() prompts the user to select a display or portion of a display (such as a window) to capture as a media
stream for sharing or recording purposes.
...And 4 more matches
MediaRecorder - Web APIs
the mediarecorder interface of the media
stream recording api provides functionality to easily record media.
... constructor mediarecorder() creates a new mediarecorder object, given a media
stream to record.
... mediarecorder.state read only returns the current state of the mediarecorder object (inactive, recording, or paused.) mediarecorder.
stream read only returns the
stream that was passed into the constructor when the mediarecorder was created.
...And 4 more matches
active - Web APIs
the active read-only property of the media
stream interface returns a boolean value which is true if the
stream is currently active; otherwise, it returns false.
... a
stream is considered active if at least one of its media
streamtracks is not in the media
streamtrack.ended state.
... once every track has ended, the
stream's active property becomes false.
...And 4 more matches
Transcoding assets for Media Source Extensions - Web APIs
when working with media source extensions, it is likely that you need to condition your assets before you can
stream them.
... (optional) if you decide to use dynamic adaptive
streaming over http (dash) for adaptive bitrate
streaming, you need to transcode your assets into multiple resolutions.
... $ ffmpeg -i trailer_1080p.mov -c:v copy -c:a copy bunny.mp4 $ ls bunny.mp4 trailer_1080p.mov checking fragmentation in order to properly
stream mp4, we need the asset to be an iso bmf format mp4.
...And 4 more matches
RTCStats - Web APIs
for example, statistics about a received rtp
stream are represented by rtcreceivedrtp
streamstats.
... rtcstats is the foundation of all webrtc statistics objects rtcrtp
streamstats adds to rtcstats information that applies to all rtp endpoints (that is, both local and remote endpoints, and regardless of whether the endpoint is a sender or a receiver) rtcreceivedrtp
streamstats further adds statistics measured at the receiving end of an rtp
stream, regardless of whether it's local or remote.
... rtcinboundrtp
streamstats contains statistics that can only be measured on a receiver at the local end of the rtp connection.
...And 4 more matches
RTCTrackEvent - Web APIs
the webrtc api interface rtctrackevent represents the track event, which is sent when a new media
streamtrack is added to an rtcrtpreceiver which is part of the rtcpeerconnection.
...
streams read only optional an array of media
stream objects, each representing one of the media
streams to which the added track belongs.
... by default, the array is empty, indicating a
streamless track.
...And 4 more matches
Sending and Receiving Binary Data - Web APIs
var file
stream = load_binary_resource(url); var abyte = file
stream.charcodeat(x) & 0xff; // throw away high-order byte (f7) the example above fetches the byte at offset x within the loaded binary data.
... the valid range for x is from 0 to file
stream.length-1.
... see downloading binary
streams with xmlhttprequest for a detailed explanation.
...And 4 more matches
WebAssembly - JavaScript
webassembly.instantiate
streaming() compiles and instantiates a webassembly module directly from a
streamed underlying source, returning both a module and its first instance.
... webassembly.compile
streaming() compiles a webassembly.module directly from a
streamed underlying source, leaving instantiation as a separate step.
... examples
stream a .wasm module then compile and instantiate it the following example (see our instantiate-
streaming.html demo on github, and view it live also) directly
streams a .wasm module from an underlying source then compiles and instantiates it, the promise fulfilling with a resultobject.
...And 4 more matches
Media container formats (file types) - Web media technologies
instead, it
streams the encoded audio and video tracks directly from one peer to another using media
streamtrack objects to represent each track.
... codec name (short) full codec name browser compatibility1 3gp third generation partnership firefox for android adts audio data transport
stream firefox2 flac free lossless audio codec chrome 56, edge 16, firefox 51, safari 11 mpeg / mpeg-2 moving picture experts group (1 and 2) — mpeg-4 (mp4) moving picture experts group 4 chrome 3, edge 12, firefox, internet explorer 9, opera 24, safari 3.1 ogg ogg chrome 3, firefox 3.5, edge 173 (desktop only), internet explorer 9, opera ...
... this media container format is derived from the iso base media file format and mpeg-4, but is specifically
streamlined for lower bandwidth scenarios.
...And 4 more matches
Web video codec guide - Web media technologies
codec name (short) full codec name container support av1 aomedia video 1 mp4, webm avc (h.264) advanced video coding 3gp, mp4, webm h.263 h.263 video 3gp hevc (h.265) high efficiency video coding mp4 mp4v-es mpeg-4 video elemental
stream 3gp, mp4 mpeg-1 mpeg-1 part 2 visual mpeg, quicktime mpeg-2 mpeg-2 part 2 visual mp4, mpeg, quicktime theora theora ogg vp8 video processor 8 3gp, ogg, webm vp9 video processor 9 mp4, ogg, webm factors affecting the encoded video as is the case with any encoder, there are two basic groups of factors affecting th...
...commercial use of avc media requires a license, though the mpeg la patent pool does not require license fees for
streaming internet video in avc format as long as the video is free for end users.
... mp4v-es the mpeg-4 video elemental
stream (mp4v-es) format is part of the mpeg-4 part 2 visual standard.
...And 4 more matches
Understanding WebAssembly text format - WebAssembly
next, we’ll load our binary into a typed array called addcode (as described in fetching webassembly bytecode), compile and instantiate it, and execute our add function in javascript (we can now find add() in the exports property of the instance): webassembly.instantiate
streaming(fetch('add.wasm')) .then(obj => { console.log(obj.instance.exports.add(1, 2)); // "3" }); note: you can find this example in github as add.html (see it live also).
... also see webassembly.instantiate
streaming() for more details about the instantiate function.
... this is functionally equivalent to including a separate function statement outside the function, elsewhere in the module in the same manner as we did before, e.g.: (export "getanswerplus1" (func $functionname)) the javascript code to call our above module looks like so: webassembly.instantiate
streaming(fetch('call.wasm')) .then(obj => { console.log(obj.instance.exports.getanswerplus1()); // "43" }); importing functions from javascript we have already seen javascript calling webassembly functions, but what about webassembly calling javascript functions?
...And 4 more matches
Creating Reusable Modules - Archive of obsolete content
we can adapt it like this: var {cc, ci} = require("chrome"); // return the two-digit hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var i
stream = cc["@mozilla.org/network/file-input-
stream;1"] .createinstance(ci.nsifileinput
stream); // open for reading i
stream.init(f, 0x01, 0444, 0); var ch = cc["@mozilla.org/security/hash;1"] .createinstance(ci.nsicryptohash); // we want to use the md5 algorithm ch.init(ch.md5); // this tells updatefrom
stream to read the entire file const pr_uint32_max = 0xffffff...
...ff; ch.updatefrom
stream(i
stream, pr_uint32_max); // pass false here to get binary data back var hash = ch.finish(false); // convert the binary hash data to a hex string.
...n, we ask them to select a file, compute the hash, and log the hash to the console: var {cc, ci} = require("chrome"); // return the two-digit hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var i
stream = cc["@mozilla.org/network/file-input-
stream;1"] .createinstance(ci.nsifileinput
stream); // open for reading i
stream.init(f, 0x01, 0444, 0); var ch = cc["@mozilla.org/security/hash;1"] .createinstance(ci.nsicryptohash); // we want to use the md5 algorithm ch.init(ch.md5); // this tells updatefrom
stream to read the entire file const pr_uint32_max = 0xffffff...
...And 3 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
listing 22: content for _readfile method _readfile: function(afile) { try { var
stream = components.classes["@mozilla.org/network/file-input-
stream;1"].
... createinstance(components.interfaces.nsifileinput
stream);
stream.init(afile, 0x01, 0, 0); var cv
stream = components.classes["@mozilla.org/intl/converter-input-
stream;1"].
... createinstance(components.interfaces.nsiconverterinput
stream); cv
stream.init(
stream, "utf-8", 1024, components.interfaces.nsiconverterinput
stream.default_replacement_character); var content = ""; var data = {}; while (cv
stream.readstring(4096, data)) { content += data.value; } cv
stream.close(); return content.replace(/\r\n?/g, "\n"); } catch (ex) { } return null; }, _writefile method creates a new file for the nslfile object passed as a parameter, and writes the text string, also passed as a parameter.
...And 3 more matches
Index - Archive of obsolete content
424 fileguide see io 425 accessing files file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 426 getting file information file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, co...
...pying and deleting files | uploading and downloading files | working with directories ] 427 io file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 428 moving, copying and deleting files file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 429 reading from files file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | mov...
...ing, copying and deleting files | uploading and downloading files | working with directories ] 430 toc file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 431 uploading and downloading files file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 432 working with directories file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to ...
...And 3 more matches
NPP_WriteReady - Archive of obsolete content
syntax #include <npapi.h> int32 npp_writeready(npp instance, np
stream*
stream); parameters the function has the following parameters: instance pointer to the current plug-in instance.
...
stream pointer to the current
stream.
... returns returns the maximum number of bytes that an instance is prepared to accept from the
stream.
...And 3 more matches
Graceful asynchronous programming with Promises - Learn web development
so instead of waiting for the user, getting the chosen devices enabled, and directly returning the media
stream for the
stream created from the selected sources, getusermedia() returns a promise which is resolved with the media
stream once it's available.
... the code that the video chat application would use might look something like this: function handlecallbutton(evt) { setstatusmessage("calling..."); navigator.mediadevices.getusermedia({video: true, audio: true}) .then(chat
stream => { selfviewelem.srcobject = chat
stream; chat
stream.gettracks().foreach(track => mypeerconnection.addtrack(track, chat
stream)); setstatusmessage("connected"); }).catch(err => { setstatusmessage("failed to connect"); }); } this function starts by using a function called setstatusmessage() to update a status display with the message "calling...", indicating that a call is being attempted.
... it then calls getusermedia(), asking for a
stream that has both video and audio tracks, then once that's been obtained, sets up a video element to show the
stream coming from the camera as a "self view," then takes each of the
stream's tracks and adds them to the webrtc rtcpeerconnection representing a connection to another user.
...And 3 more matches
Error codes returned by Mozilla APIs
stream errors ns_base_
stream_closed (0x80470002) this error occurs when an operation is performed on a
stream that has already been closed.
... ns_base_
stream_oserror (0x80470003) this error occurs when an operating system error occurs.
... currently, this error only occurs when a file
stream is closed.
...And 3 more matches
nsIExternalHelperAppService
to access this service, use: var externalhelperappservice = components.classes["@mozilla.org/uriloader/external-helper-app-service;1"] .getservice(components.interfaces.nsiexternalhelperappservice); method overview boolean applydecodingforextension(in autf8string aextension, in acstring aencodingtype); nsi
streamlistener docontent(in acstring amimecontenttype, in nsirequest arequest, in nsiinterfacerequestor awindowcontext, in boolean aforcesave); methods applydecodingforextension() determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications.
...docontent() binds an external helper application to a
stream listener.
... the caller should pump data into the returned
stream listener.
...And 3 more matches
nsIFeedProcessor
1.0 66 introduced gecko 1.8.1 inherits from: nsi
streamlistener last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) implemented by: @mozilla.org/feed-processor;1.
... to create an instance, use: var feedprocessor = components.classes["@mozilla.org/feed-processor;1"] .createinstance(components.interfaces.nsifeedprocessor); method overview void parseasync(in nsirequestobserver requestobserver, in nsiuri uri); void parsefrom
stream(in nsiinput
stream stream, in nsiuri uri); void parsefromstring(in astring str, in nsiuri uri); attributes attribute type description listener nsifeedresultlistener the feed result listener that will respond to feed events.
...the caller must then call the processor's nsi
streamlistener methods to drive the parsing process.
...And 3 more matches
nsIScriptableUnicodeConverter
w acstring convertfromunicode(in astring asrc); acstring finish(); astring converttounicode(in acstring asrc); astring convertfrombytearray([const,array,size_is(acount)] in octet adata, in unsigned long acount); void converttobytearray(in astring astring,[optional] out unsigned long alen,[array, size_is(alen),retval] out octet adata); nsiinput
stream converttoinput
stream(in astring astring); attributes attribute type description charset string current character set.
... void converttobytearray(in astring astring, out unsigned long alen, optional [array, size_is(alen),retval] out octet adata ); converttoinput
stream() converts a unicode string to an input
stream.
... the bytes in the
stream are encoded according to the charset attribute.
...And 3 more matches
nsIUploadChannel2
1.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 explicitsetupload
stream(in nsiinput
stream a
stream, in acstring acontenttype, in long long acontentlength, in acstring amethod, in boolean a
streamhasheaders); methods explicitsetupload
stream() sets a
stream to be uploaded by this channel with the specified content-type and content-length header values.
... most implementations of this interface require that the
stream: implement threadsafe addref and release implement nsiinput
stream.readsegments() implement nsiseekable
stream.seek().
... void explicitsetupload
stream( in nsiinput
stream a
stream, in acstring acontenttype, in long long acontentlength, in acstring amethod, in boolean a
streamhasheaders ); parameters a
stream the
stream to be uploaded by this channel.
...And 3 more matches
nsIWebNavigation
method overview void goback void goforward void gotoindex( in long index ) void loaduri(in wstring uri , in unsigned long loadflags , in nsiuri referrer , in nsiinput
stream postdata, in nsiinput
stream headers) void reload(in unsigned long reloadflags) void stop(in unsigned long stopflags) constants load flags constant value description load_flags_mask 65535 this flag defines the range of bits that may be specified.
... void loaduri( wstring uri, unsigned long loadflags, nsiuri referrer, nsiinput
stream postdata, nsiinput
stream headers ); parameters uri the uri string to load.
... postdata if the uri corresponds to a http request, then this
stream is appended directly to the http request headers.
...And 3 more matches
Browser Side Plug-in API - Plugins
netscape plug-in method summary « previousnext » npn_destroy
stream closes and deletes a
stream.
... npn_geturl asks the browser to create a
stream for the specified url.
... npn_geturlnotify requests creation of a new
stream with the contents of the specified url; gets notification of the result.
...And 3 more matches
Constants - Plugins
nperr_no_data 12
stream contains no data.
... nperr_
stream_not_seekable 13 seekable
stream expected.
... npres_network_err 1
stream failed due to problems with network, disk i/o, lack of memory, or other problems.
...And 3 more matches
MediaRecorder() - Web APIs
the mediarecorder() constructor creates a new mediarecorder object that will record a specified media
stream.
... syntax var mediarecorder = new mediarecorder(
stream[, options]); parameters
stream the media
stream that will be recorded.
... this source media can come from a
stream created using navigator.mediadevices.getusermedia() or from an <audio>, <video> or <canvas> element.
...And 3 more matches
MediaRecorder.onerror - Web APIs
the mediarecorder interface's onerror event handler is called by the media
stream recording api when an error occurs.
...in addition to other general errors that might occur, the following errors are specifically possible when using the media
stream recording api; to determine which occurred, check the value of mediarecordererrorevent.error.name.
... securityerror the media
stream is configured to disallow recording.
...And 3 more matches
Response - Web APIs
body interface properties response implements body, so it also has the following properties available to it: body.body read only a simple getter exposing a readable
stream of the body contents.
... body interface methods response implements body, so it also has the following methods available to it: body.arraybuffer() takes a response
stream and reads it to completion.
... body.blob() takes a response
stream and reads it to completion.
...And 3 more matches
Writing a WebSocket server in Java - Web APIs
here's an implementation split into parts: import java.io.ioexception; import java.io.input
stream; import java.io.output
stream; import java.net.serversocket; import java.net.socket; import java.security.messagedigest; import java.security.nosuchalgorithmexception; import java.util.base64; import java.util.scanner; import java.util.regex.matcher; import java.util.regex.pattern; public class websocket { public static void main(string[] args) throws ioexception, nosuchalgorithmexception { se...
...rversocket server = new serversocket(80); try { system.out.println("server has started on 127.0.0.1:80.\r\nwaiting for a connection..."); socket client = server.accept(); system.out.println("a client connected."); socket methods: java.net.socket getinput
stream() returns an input
stream for this socket.
... java.net.socket getoutput
stream() returns an output
stream for this socket.
...And 3 more matches
MIME types (IANA media types) - HTTP
generic binary data (or binary data whose true type is unknown) is application/octet-
stream.
...similarly, for binary documents without a specific or known subtype, application/octet-
stream should be used.
... important mime types for web developers application/octet-
stream this is the default for binary files.
...And 3 more matches
Web media technologies
it can be used to simply present video files, or as a destination for
streamed video content.
... media capture and
streams api a reference for the api which makes it possible to
stream, record, and manipulate media both locally and across a network.
... media
stream recording api the media
stream recording api lets you capture media
streams to process or filter the data or record it to disk.
...And 3 more matches
Miscellaneous - Archive of obsolete content
var postdata = history.getentryatindex(history.index-1,false).queryinterface(ci.nsishentry).postdata; if you got here all by yourself, your problem must be at reading the postdata, because it's a nsiinput
stream object, whose available function always returns 0.
...and here's how it's done postdata.queryinterface(ci.nsiseekable
stream).seek(ci.nsiseekable
stream.ns_seek_set, 0); var
stream = cc["@mozilla.org/binaryinput
stream;1"].createinstance(ci.nsibinaryinput
stream);
stream.setinput
stream(postdata); var postbytes =
stream.readbytearray(
stream.available()); var poststr = string.fromcharcode.apply(null, postbytes); //do anything to your poststr alert(poststr); getting a string from the input
stream is made somewhat simpler in firefox 4, by the addition of netutil.readinput
streamtostring() getting postdata of a request before the request is sent the above code will get the postdata for a page that has already loaded.
... 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.nsiuploadchannel); postdata = subject.upload
stream; } here again, postdata is not a string, but an nsiinput
stream, so you can use the last code snippet of the previous section to get the data as a string.
...And 2 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
the benefit of using xpinstall is to provide a
streamlined installation mechanism.
...not all the work needs to be done in javascript -- if you have a native installer (exe) that recognizes netscape gecko browsers, and you merely wish to wrap the exe installer in an xpi package for a
streamlined delivery to the client, you can easily do so.
... using xpinstall to run an exe (native code) installer if you wish to run a native installer (exe) to install plugin software, but wish to make the delivery of this native installer
streamlined and within the browser's process, then you ought to consider wrapping it in an xpi package.
...And 2 more matches
nss tech note1
this was written to be a generic decoder, that includes both der (distinguished encoding rules) and ber (basic encoding rules).† it handles both
streaming and non-
streaming input.
...it can only decode der .† it does not handle
streaming input, and requires that all input be present before beginning to decode.
... the main non-
streaming apis for these two decoders have an identical prototype : secstatus sec_asn1decodeitem(prarenapool *pool, void *dest, const sec_asn1template *t, secitem *item); secstatus sec_quickderdecodeitem(prarenapool* arena, void* dest, const sec_asn1template* templateentry, secitem* src); here is a description of the arguments : secitem* src† is a structure containing a pointer to the binary data to be decoded, as well a...
...And 2 more matches
Multithreading in Necko
when a socket can be read, the socket's listener is notified either synchronously (on the same thread) or asynchronously via a nsi
streamlistenerproxy impl.
...as with the socket transport thread, the nsi
streamlistener passed to a file transport's asyncread method can operate partially on the file transport's thread before proxying data to the main thread.
...it simply promises to read from a nsiinput
stream (or write to a nsioutput
stream) on a background thread.
...And 2 more matches
Animated PNG graphics
structure an apng
stream is a normal png
stream as defined in the png specification, with three additional chunk types describing the animation and providing additional frame data.
... to be recognized as an apng, an 'actl' chunk must appear in the
stream before any 'idat' chunks.
...it must appear before the first 'idat' chunk within a valid png
stream.
...And 2 more matches
nsIRequest
inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) for example nsichannel typically passes itself as the nsirequest argument to the nsi
streamlistener on each onstartrequest, ondataavaliable, and onstoprequest invocation.
...this will close any open input or output
streams and terminate any async requests.
... requests that use nsi
streamlistener must not call ondataavailable anymore after cancel has been called.
...And 2 more matches
nsIZipWriter
method overview void addentrychannel(in autf8string azipentry, in prtime amodtime, in print32 acompression, in nsichannel achannel, 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 addentry
stream(in autf8string azipentry, in prtime amodtime, in print32 acompression, in nsiinput
stream a
stream, in boolean aqueue); void close(); nsizipentry getentry(in autf8string azipentry); boolean hasentry(in autf8string azipentry); void open(in nsifile afile, in print32 aioflags); void processqueue(in nsirequestobserver aobserver, in nsisupports acontext); ...
... addentry
stream() adds data from an input
stream to the zip file.
... void addentry
stream( in autf8string azipentry, in prtime amodtime, in print32 acompression, in nsiinput
stream a
stream, in boolean aqueue ); parameters azipentry the path of the file entry to add to the zip file.
...And 2 more matches
HTMLMediaElement - Web APIs
if the media is of indefinite length (such as
streamed live media, a webrtc call's media, or similar), the value is +infinity.
...related to audio
stream capture.
... htmlmediaelement.srcobject is a media
stream representing the media to play or that has played in the current htmlmediaelement, or null if not assigned.
...And 2 more matches
SourceBuffer - Web APIs
whether an sourcebuffer.appendbuffer(), sourcebuffer.append
stream(), or sourcebuffer.remove() operation is currently in progress.
... event handlers sourcebuffer.onabort fired whenever sourcebuffer.appendbuffer() or sourcebuffer.append
stream() is ended by a call to sourcebuffer.abort().
... sourcebuffer.onerror fired whenever an error occurs during sourcebuffer.appendbuffer() or sourcebuffer.append
stream().
...And 2 more matches
Index - Developer guides
6 audio and video delivery audio, guide, html, html5, media, video whether we are dealing with pre-recorded audio files or live
streams, the mechanism for making them available through the browser's <audio> and <video> elements remains pretty much the same.
... 9 cross-browser audio basics apps, audio, guide, html5, media, events this article provides: a basic guide to creating a cross-browser html5 audio player with all the associated attributes, properties, and events explained a guide to custom controls created using the media api 10 live
streaming web audio and video guide, adaptive
streaming live
streaming technology is often employed to relay live events such as sports, concerts and more generally tv and radio programmes that are output live.
... often shortened to just
streaming, live
streaming is the process of transmitting media 'live' to computers and devices.
...And 2 more matches
Post data to window - Archive of obsolete content
preprocessing post data the apostdata argument of the (global) loaduri(), opendialog(), and (tab)browser.loaduriwithflags() methods expects the post data in the form of an nsiinput
stream (because they eventually call nsiwebnavigation.loaduri()) while post data can be created using nsimimeinput
stream.
...here is an example: var datastring = "name1=data1&name2=data2"; // post method requests must wrap the encoded text in a mime //
stream const cc = components.classes; const ci = components.interfaces; var string
stream = cc["@mozilla.org/io/string-input-
stream;1"].
... createinstance(ci.nsistringinput
stream); if ("data" in string
stream) // gecko 1.9 or newer string
stream.data = datastring; else // 1.8 or older string
stream.setdata(datastring, datastring.length); var postdata = cc["@mozilla.org/network/mime-input-
stream;1"].
... createinstance(ci.nsimimeinput
stream); postdata.addheader("content-type", "application/x-www-form-urlencoded"); postdata.addcontentlength = true; postdata.setdata(string
stream); // postdata is ready to be used as apostdata argument ...
Index of archived content - Archive of obsolete content
content/content content/loader content/mod content/symbiont content/worker core/heritage core/namespace core/promise dev/panel event/core event/target frame/hidden-frame frame/utils fs/path io/byte-
streams io/file io/text-
streams lang/functional lang/type loader/cuddlefish loader/sandbox net/url net/xhr places/bookmarks places/favicon places/history platform/xpcom preferences/event-target preferences/serv...
... multi-process plugin architecture npapi plugin developer guide npapi plugin reference browser-side plug-in api npapi plug-in side api npanycallbackstruct npbyterange npclass npembedprint npevent npfullprint npidentifier npn new
stream npnvariable npn_createobject npn_destroy
stream npn_enumerate npn_evaluate npn_forceredraw npn_getauthenticationinfo npn_getintidentifier npn_getproperty npn_getstringidentifier npn_getstringidentifiers npn_geturl npn_geturlnotify n...
... npn_requestread npn_retainobject npn_setexception npn_setproperty npn_setvalue npn_setvalueforurl npn_status npn_utf8fromidentifier npn_useragent npn_version npn_write npobject npp nppvariable npp_destroy npp_destroy
stream npp_getvalue npp_handleevent npp_new npp_new
stream npp_print npp_setvalue npp_setwindow npp_
streamasfile npp_urlnotify npp_write npp_writeready npprint npprintcallbackstruct nprect npregion npsaveddata ...
... npsetwindowcallbackstruct np
stream npstring nputf8 npvariant npvarianttype npwindow np_getmimedescription np_getvalue np_initialize np_port np_shutdown samples and test cases shipping a plugin as a toolkit bundle supporting private browsing in plugins the first install problem writing a plugin for mac os x xembed extension for mozilla plugins sax security digital signatures encryption and decryption introduction to public-key cryptography introduction to ssl nspr release eng...
The Implementation of the Application Object Model - Archive of obsolete content
first of all it could
streamline the redundancy in the interface methods and present a new interface for pluggable content that was much smaller and easier to plug into than the 4-5 interfaces required if directly implementing the content tree interfaces.
...this inability to provide a cleanly inherited system argues for a different approach, namely that all content node implementations be the same kind of object, and that those objects communicate with their pluggable content through this new
streamlined interface we talked about earlier.
...if the xul
stream came from a remote site, then rdf has no choice but to make a local annotation on the graph.
... if the xul
stream came from a local file, then rdf can either locally annotate the graph (just as before), or it can serialize the xul and write over the original file (thus allowing local changes to a local file to be reflected right in the xul).
NPByteRange - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary represents a particular range of bytes from a
stream.
...this value may be either positive or negative: positive value: offset from the beginning of the
stream.
... negative value: offset from the end of the
stream.
... description the plug-in seeks within a
stream by building a linked list of one or more npbyterange objects, which represents a set of discontiguous byte ranges.
502 - MDN Web Docs Glossary: Definitions of Web-related terms
a server can act as a gateway or proxy (go-between) between a client (like your web browser) and another, up
stream server.
... when you request to access a url, the gateway server can relay your request to the up
stream server.
... "502" means that the up
stream server has returned an invalid response.
... normally the up
stream server is not down (i.e.
How Mozilla's build system works
a buildreader is instantiated with a configuration, is told to read the source tree, and then emits a
stream of mozbuildsandbox instances corresponding to the executed moz.build files.
... the mozbuildsandbox
stream produced by the buildreader is typically fed into the treemetadataemitter class from emitter.py.
...the treemetadataemitter output is a
stream of instances of these classes.
... the build system
stream describing class instances emitted from treemetadataemitter is then fed into a build backend.
Implementing Download Resuming
if the download gets interrupted, necko will call the
stream listener's onstoprequest method with a failure status.
...you may want to use nsisimple
streamlistener to simplify this task; to get progress notifications, you can implement nsiprogresseventsink and set an interface requester as the notificationcallbacks of the channel that gives out such an event sink (this needs to be done before calling asyncopen).
... detecting when a file changed if the file changed (that is, the entity id does not match), then necko will notify the
stream listener with an ns_error_entity_changed error code.
...in such a case, the
stream listener will get an ns_error_not_resumable status.
Index
when using the asn.1 parser(s), a template definition is passed to the parser, which will analyze the asn.1 data
stream accordingly.
... when using hashing, encryption, and decryption functions, it is possible to
stream data (as opposed to operating on a large buffer).
... 189 nss tech notes nss newsgroup: mozilla.dev.tech.crypto 190 nss tech note1 the main non-
streaming apis for these two decoders have an identical prototype : 191 nss tech note2 the logger displays all activity between nss and a specified pkcs #11 module.
...data sent from the client to the server is surrounded by the following symbols: --> [ data ] data sent from the server to the client is surrounded by the following symbols: "left arrow"-- [ data ] the raw data
stream is sent to standard output and is not interpreted in any way.
Components.Constructor
for example: var binaryinput
stream = components.constructor("@mozilla.org/binaryinput
stream;1"); var bis = new binaryinput
stream(); print(bis.tostring()); // "[xpconnect wrapped nsisupports]" try { // someinput
stream is an existing nsiinput
stream // throws because bis hasn't been qi'd to nsibinaryinput
stream bis.setinput
stream(someinput
stream); } catch (e) { bis.queryinterface(components.interfaces.nsibinaryinput
stream); ...
... bis.setinput
stream(someinput
stream); // succeeds now } if two arguments are given, the created instance will be nsisupports.queryinterface()'d to the xpcom interface whose name is the second argument: var binaryinput
stream = components.constructor("@mozilla.org/binaryinput
stream;1", "nsibinaryinput
stream"); var bis = new binaryinput
stream(); print(bis.tostring()); // "[xpconnect wrapped nsibinaryinput
stream]" // someinput
stream is an existing nsiinput
stream bis.setinput
stream(someinput
stream); // succeeds if three arguments are given, then in addition to being nsisupports.queryinterface()'d, the instance will also have had an initialization method called on it.
... the arguments used with the initialization method are the arguments passed to the components.constructor()-created function when called: var binaryinput
stream = components.constructor("@mozilla.org/binaryinput
stream;1", "nsibinaryinput
stream", "setinput
stream"); try { // throws, because number of arguments isn't equal to the number of // arguments nsibinaryinput
stream.setinput
stream takes var bis = new binaryinput
stream(); } catch (e) { // someinput
stream is an existing nsiinput
stream bis = new binaryinput
stream(someinput
stream); // succeeds var bytes = bis.readbytearray(somenumberofbytes); // succeeds } compare instance creation from base principles with instance creation using componen...
...ts.constructor(); the latter is much easier to read than the former (particularly if you're creating instances of a component in many different places): var bis = components.classes["@mozilla.org/binaryinput
stream;1"] .createinstance(components.interfaces.nsibinaryinput
stream); bis.setinput
stream(someinput
stream); // assumes binaryinput
stream was initialized previously var bis = new binaryinput
stream(someinput
stream); components.constructor() is purely syntactic sugar (albeit speedy and pretty syntactic sugar) for actions that can be accomplished using other common methods.
Components.isSuccessCode
examples checking whether copying a
stream's data succeeded the following example demonstrates copying data from a buffered nsiinput
stream to an nsioutput
stream, checking for whether the copy succeeded using components.issuccesscode().
... note: nsiasync
streamcopier.init() has changed in gecko 1.9.2, omit last 2 boolean parameters if you're using gecko 1.9.1 and earlier.
... const cc = components.classes; const ci = components.interfaces; const cr = components.results; // global flags polled externally var copyfailed = false; var copyinprogress = false; function copybuffered
stream(in
stream, out
stream) { var copyobserver = { onstartrequest: function(request, context) { copyinprogress = true; }, onstoprequest: function(request, context, statuscode) { copyinprogress = false; // did the copy fail?
... if (!components.issuccesscode(statuscode)) copyfailed = true; }, queryinterface: function(aiid) { if (aiid.equals(ci.nsirequestobserver) || aiid.equals(ci.nsisupports)) return this; throw cr.ns_error_no_interface; } }; var copier = cc["@mozilla.org/network/async-
stream-copier;1"] .createinstance(ci.nsiasync
streamcopier); copier.init(in
stream, out
stream, null, true, false, 8192, true, true); copier.asynccopy(copyobserver, null); } ...
nsICache
not_
stream_based 0 all entries for a cache session are stored as
streams of data or as objects.
... this constant specify that cache session is not a
stream based entry when calling nsicacheservice.createsession() method.
...
stream_based 1 all entries for a cache session are stored as
streams of data or as objects.
... this constant specify that cache session is a
stream based entry when calling nsicacheservice.createsession() method.
nsICacheEntryInfo
inherits from: nsisupports last changed in gecko 1.7 method overview boolean is
streambased(); attributes attribute type description clientid string get the client id associated with this cache entry.
... methods is
streambased() this method finds out whether or not the cache entry is
stream based.
... boolean is
streambased(); parameters none.
... return value returns true if the cache entry is
stream based, otherwise returns false.
nsICacheService
method overview nsicachesession createsession(in string clientid, in nscachestoragepolicy storagepolicy, in boolean
streambased); acstring createtemporaryclientid(in nscachestoragepolicy storagepolicy); obsolete since gecko 1.9.2 void evictentries(in nscachestoragepolicy storagepolicy); void init(); obsolete since gecko 1.8 void shutdown(); obsolete since gecko 1.8 void visitentries(in nsicachevisitor visitor); attributes attribute type descriptio...
... nsicachesession createsession( in string clientid, in nscachestoragepolicy storagepolicy, in boolean
streambased ); parameters clientid specifies the name of the client using the cache.
...
streambased indicates whether or not the data being cached can be represented as a
stream.
...for example, a non-
stream-based cache entry can only have a storage policy of store_in_memory.
nsICryptoHMAC
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview acstring finish(in prbool aascii); void init(in unsigned long aalgorithm, in nsikeyobject akeyobject); void reset(); void update([const, array, size_is(alen)] in octet adata, in unsigned long alen); void updatefrom
stream(in nsiinput
stream a
stream, in unsigned long alen); constants hashing algorithms.
... updatefrom
stream() calculates and updates a new hash based on a given data
stream.
... void updatefrom
stream( in nsiinput
stream a
stream, in unsigned long alen ); parameters a
stream an input
stream to read from.
... alen how much to read from the given a
stream.
nsIDOMSerializer
to create an instance, use: var domserializer = components.classes["@mozilla.org/xmlextras/xmlserializer;1"] .createinstance(components.interfaces.nsidomserializer); method overview void serializeto
stream(in nsidomnode root, in nsioutput
stream stream, in autf8string charset); astring serializetostring(in nsidomnode root); methods serializeto
stream() the subtree rooted by the specified element is serialized to a byte
stream using the character set specified.
... void serializeto
stream( in nsidomnode root, in nsioutput
stream stream, in autf8string charset ); parameters root the root of the subtree to be serialized.
...
stream the byte
stream to which the subtree is serialized.
... charset the name of the character set to use for the encoding to a byte
stream.
nsIHttpUpgradeListener
method overview void ontransportavailable(in nsisockettransport atransport, in nsiasyncinput
stream asocketin, in nsiasyncoutput
stream 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.
...void ontransportavailable( in nsisockettransport atransport, in nsiasyncinput
stream asocketin, in nsiasyncoutput
stream asocketout ); parameters atransport the nsisockettransport describing the socket connection between the browser and the server; this socket can now be used for the new protocol instead of http.
... asocketin the nsiasyncinput
stream object representing the input
stream for data coming from the server over the socket connection.
... asocketout the nsiasyncoutput
stream object representing the out
stream for sending data to the server over the socket.
nsIPluginHost
void instantiateembededplugin(in string amimetype, in nsiuri aurl, in nsiplugininstanceowner aowner); obsolete since gecko 1.8 void instantiatefullpageplugin(in string amimetype, in nsiuri auri, in nsiplugininstanceowner aowner, out nsi
streamlistener a
streamlistener); native code only!
... nsi
streamlistener instantiatepluginforchannel(in nsichannel achannel, in nsiplugininstanceowner aowner); native code only!
...te since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void instantiateembededplugin( in string amimetype, in nsiuri aurl, in nsiplugininstanceowner aowner ); parameters amimetype aurl aowner native code only!instantiatefullpageplugin void instantiatefullpageplugin( in string amimetype, in nsiuri auri, in nsiplugininstanceowner aowner, out nsi
streamlistener a
streamlistener ); parameters amimetype auri aowner a
streamlistener native code only!instantiatepluginforchannel instantiate an embedded plugin for an existing channel.
... nsi
streamlistener instantiatepluginforchannel( in nsichannel achannel, in nsiplugininstanceowner aowner ); parameters achannel 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.
nsISocketTransport
it provides methods to open blocking or non-blocking, buffered or unbuffered
streams between two end-point in a ip based network.
... inherits from: nsitransport last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) note: connection setup is triggered by opening an input or output
stream, it does not start on its own.
... note: this attribute cannot be changed once a
stream has been opened.
...x804b000a status_receiving_from 0x804b0006 connection flags values for the connectionflags attribute constant value description bypass_cache 0 when making a new connection bypass_cache will force the necko dns cache entry to be refreshed with a new call to nspr if it is set before opening the new
stream.
XUL Overlays
the installation of a media plug-in, for example, may add new icons and menu items to the interface: in the navigatoroverlay.xul file or in a separate navigatorsspoverlay.xul file (where navigator.xul defines the basic ui for the navigator package), these new plug-in elements would be defined as a collection of elements or subtrees: <menuitem name="super
stream player"/> <menupopup name="ss favorites"> <menuitem name="wave" src="mavericks.ssp"/> <menuitem name="soccer" src="brazil_soccer.ssp"/> </menupopup> <titledbutton id="ssp" crop="right" flex="1" value="&ssbutton.label;" onclick="firessp()"/> overlays and id attributes bases and overlays are merged when they share the same id attribute.
...and given the following overlay: <?xml version="1.0"?> <overlay id="singleitemex" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menupopup id="menu_filepopup"> <menu id="file_menu"> <menuitem name="super
stream player"/> </menu> </menupopup> </overlay> the result will be: ...
... <menu id="file-menu"> <menupopup id="menu_filepopup"> <menuitem name="new"/> <menuitem name="open"/> <menuitem name="save"/> <menuitem name="close"/> <menuitem name="super
stream player"/> </menupopup> </menu> ...
...when a component such as the "super
stream player" from the examples above is registered there, overlays associated with that component are loaded automatically.
Body.body - Web APIs
the body read-only property of the body mixin is a simple getter used to expose a readable
stream of the body contents.
... syntax var
stream = response.body; value a readable
stream.
... example in our simple
stream pump example we fetch an image, expose the response's
stream using response.body, create a reader using readable
stream.getreader(), then enqueue that
stream's chunks into a second, custom readable
stream — effectively creating an identical copy of the image.
... const image = document.getelementbyid('target'); // fetch the original image fetch('./tortoise.png') // retrieve its body as readable
stream .then(response => response.body) .then(body => { const reader = body.getreader(); return new readable
stream({ start(controller) { return pump(); function pump() { return reader.read().then(({ done, value }) => { // when no more data needs to be consumed, close the
stream if (done) { controller.close(); return; } // enqueue the next data chunk into our target
stream controller.enqueue(value); return pump(); }); } } }) }) .then(
stream => new response(
stream)) .then(response => response.blob()) .then(blob => url.createobjectu...
ImageCapture() constructor - Web APIs
syntax const imagecapture = new imagecapture(videotrack) parameters videotrack a media
streamtrack from which the still images will be taken.
... this can be any source, such as an incoming
stream of a video conference, a playing movie, or the
stream from a webcam.
... example the following example shows how to use a call to mediadevices.getusermedia() to retrieve the media
streamtrack needed by the imagecapture() constructor.
... navigator.mediadevices.getusermedia({video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream const track = media
stream.getvideotracks()[0]; imagecapture = new imagecapture(track); }) .catch(error => console.log(error)); specifications specification status comment media
stream image capturethe definition of 'imagecapture' in that specification.
MediaDevices.ondevicechange - Web APIs
example in this example, we create a function called updatedevicelist(), which is called once when mediadevices.getusermedia() successfully obtains a
stream, and then is called any time the device list changes.
... logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ video: { width: 160, height: 120, framerate: 30 }, audio: { samplerate: 44100, samplesize: 16, volume: 0.25 } }).then(
stream => { videoelement.srcobject =
stream; updatedevicelist(); }) .catch(err => log(err.name + ": " + err.message)); }, false); we set up global variables that contain references to the <ul> elements that are used to list the audio and video devices: let audiolist = document.getelementbyid("audiolist"); let videolist = document.getelementbyid("videolist"); getting and drawing t...
...the first is in the getusermedia() promise's fulfillment handler, to initially fill out the list when the
stream is opened.
... result specifications specification status comment media capture and
streamsthe definition of 'ondevicechange' in that specification.
MediaRecorderErrorEvent.error - Web APIs
securityerror the media
stream is configured to disallow recording.
... this also happens when a media
streamtrack within the
stream is marked as isolated due to the peeridentity constraint on the source
stream.
... example this function creates and returns a mediarecorder for a given media
stream, configured to buffer data into an array and to watch for errors.
... function record
stream(
stream) { let recorder = null; let bufferlist = []; try { recorder = new mediarecorder(
stream); } catch(err) { /* exception while trying to create the recorder; handle that */ } recorder.ondataavailable = function(event) { bufferlist.push(event.data); }; recorder.onerror = function(event) { let error = event.error; }; recorder.start(100); /* 100ms time slices per buffer */ return recorder; } specifications specification status comment media
stream recordingthe definition of 'mediarecordererrorevent.error' in that specification.
MediaTrackSettings.deviceId - Web APIs
the mediatracksettings dictionary's deviceid property is a domstring which uniquely identifies the source for the corresponding media
streamtrack for the origin corresponding to the browsing session.
... since there is a one-to-one pairing of id with each source, all tracks with the same source will share the same id for any given origin, so media
streamtrack.getcapabilities() will always return exactly one value for deviceid.
... that makes the device id not useful for any changes to constraints when calling media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'deviceid' in that specification.
MediaTrackSettings.displaySurface - Web APIs
syntax displaysurface = mediatracksettings.displaysurface; value the value of displaysurface is a string that comes from the displaycapturesurfacetype enumerated type, and is one of the following: application the
stream's video track contains all of the windows belonging to the application chosen by the user.
... browser the
stream's video track presents the entire contents of a single browser tab which the user selected during the getdisplaymedia() call.
... monitor the video track in the
stream presents the complete contents of one or more of the user's screens.
... window the
stream's video track presents the contents of a single window selected by the user.
PhotoCapabilities - Web APIs
the photocapabilities interface of the the media
stream image capture api provides available configuration options for an attached photographic device.
...this example also shows how the imagecapture object is created using a media
streamtrack retrieved from a device's media
stream.
... const input = document.queryselector('input[type="range"]'); var imagecapture; navigator.mediadevices.getusermedia({video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream; const track = media
stream.getvideotracks()[0]; imagecapture = new imagecapture(track); return imagecapture.getphotocapabilities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification ...
... status comment media
stream image capturethe definition of 'photocapabilities' in that specification.
RTCConfiguration.bundlePolicy - Web APIs
the rtcconfiguration dictionary's bundlepolicy property is a string value indicating which sdp bundling policy, if any, to use for the underlying rtp
streams used by an rtcpeerconnection.
... syntax let rtcconfiguration = { bundlepolicy: policy }; rtcconfiguration.bundlepolicy = policy; value a domstring identifying the sdp bundling policy to use for the rtp
streams used by the rtcpeerconnection.
... in technical terms, an sdp bundle lets all of the media tracks (identified in the sdp from the m= lines)
stream between two peers across a single 5-tuple, that is, from a single ip and port on one peer to a single ip and port on another peer, all using the same rtcdtlstransport.
...the fewer rtp transports or bundles of rtp
streams you have, the better the network performance will be.
RTCPeerConnection.ontrack - Web APIs
the function receives as input the event object, of type rtctrackevent; this event is sent when a new incoming media
streamtrack has been created and associated with an rtcrtpreceiver object which has been added to the set of receivers on connection.
...this information includes the media
streamtrack object representing the new track, the rtcrtpreceiver and rtcrtptransceiver, and a list of media
stream objects which indicates which
stream or
streams the track is part of..
... pc.ontrack = function(event) { document.getelementbyid("received_video").srcobject = event.
streams[0]; document.getelementbyid("hangup-button").disabled = false; }; the first line of our ontrack event handler takes the first
stream in the incoming track and sets the srcobject attribute to that.
... this connects that
stream of video to the element so that it begins to be presented to the user.
RTCRtpSender - Web APIs
the rtcrtpsender interface provides the ability to control and obtain details about how a particular media
streamtrack is encoded and sent to a remote peer.
... rtcrtpsender.track read only the media
streamtrack which is being handled by the rtcrtpsender.
... rtcrtpsender.getstats() returns a promise which is fulfilled with a rtcstatsreport which provides statistics data for all outbound
streams being sent using this rtcrtpsender.
... rtcrtpsender.set
streams() sets the media
stream(s) associated with the track being transmitted by this sender.
WebGLRenderingContext.bufferData() - Web APIs
gl.
stream_draw: the contents are intended to be specified once by the application, and used at most a few times as the source for webgl drawing and image specification commands.
... gl.
stream_read: the contents are intended to be specified once by reading data from webgl, and queried at most a few times by the application gl.static_copy: the contents are intended to be specified once by reading data from webgl, and used many times as the source for webgl drawing and image specification commands.
... gl.
stream_copy: the contents are intended to be specified once by reading data from webgl, and used at most a few times as the source for webgl drawing and image specification commands.
... adds new target buffers: gl.copy_read_buffer, gl.copy_write_buffer, gl.transform_feedback_buffer, gl.uniform_buffer, gl.pixel_pack_buffer, gl.pixel_unpack_buffer adds new usage hints: gl.static_read, gl.dynamic_read, gl.
stream_read, gl.static_copy, gl.dynamic_copy, gl.
stream_copy.
Basic concepts behind Web Audio API - Web APIs
inside the context, create sources — such as <audio>, oscillator, or
stream.
... taken directly from a webrtc media
stream (such as a webcam or microphone).
... a sample is a single float32 value that represents the value of the audio
stream at each specific point in time, in a specific channel (left or right, if in the case of stereo).
... the alternative is to use an interleaved buffer format: lrlrlrlrlrlrlrlrlrlrlrlrlrlrlrlr (for a buffer of 16 frames) this format is very common for storing and playing back audio without much processing, for example a decoded mp3
stream.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
it can also be the destination for
streamed media, using a media
stream.
... if the audio is being
streamed, it's possible that the user agent may not be able to obtain some parts of the resource if that data has expired from the media buffer.
...if the media has no known end (such as for live
streams of unknown duration, web radio, media incoming from webrtc, and so forth), this value is +infinity.
... you can also use the web audio api to directly generate and manipulate audio
streams from javascript code rather than
streaming pre-existing audio files.
WebAssembly.instantiate() - JavaScript
if at all possible, you should use the newer webassembly.instantiate
streaming() method instead, which fetches, compiles, and instantiates a module all in one step, directly from the raw bytecode, so doesn't require conversion to an arraybuffer.
... examples note: you'll probably want to use webassembly.instantiate
streaming() in most cases, as it is more efficient than instantiate().
... second overload example the following example (see our index-compile.html demo on github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compile
streaming() method and then sends it to a worker using postmessage().
... var worker = new worker("wasm_worker.js"); webassembly.compile
streaming(fetch('simple.wasm')) .then(mod => worker.postmessage(mod) ); in the worker (see wasm_worker.js) we define an import object for the module to use, then set up an event handler to receive the module from the main thread.
Digital audio concepts - Web media technologies
sound enters the computer through a microphone or other input in the form of a
stream of electrons whose voltage varies to represent the amplitude of the sound wave.
... audio data format and structure at the most basic level, audio is represented by a
stream of samples, each specifying the amplitude of the audio waveform as measured for a given slice of the overall waveform of the audio signal.
...xample, consider a stereo audio clip (that is, two audio channels) with a sample size of 16 bits (2 bytes), recorded at 48 khz: 2×2bytessample×48000samplessecond=192000bytessecond=192kbps2 \times 2\frac { bytes }{ sample } \times 48000\frac { samples }{ second } = 192000\frac { bytes }{ second } = 192 kbps at 192 kbps, lower-end networks are already going to be strained just by a single audio
stream playing.
... previously compressed data, resulting in additional quality loss factors that may recommend the use of lossy compression include: very large source audio constrained storage (either because the storage space is small, or because there's a large amount of sound to store into it) a need to constrain the network bandwidth required to broadcast the audio; this is especially important for live
streams and teleconferencing psychoacoustics 101 diving into the details of psychoacoustics and how audio compression works is far beyond the scope of this article, but it is useful to have a general idea of how audio gets compressed by common algorithms can help understand and make better decisions about audio codec selection.
Loading and running WebAssembly code - WebAssembly
the newer webassembly.compile
streaming/webassembly.instantiate
streaming methods are a lot more efficient — they perform their actions directly on the raw
stream of bytes coming from the network, cutting out the need for the arraybuffer step.
... the quickest, most efficient way to fetch a wasm module is using the newer webassembly.instantiate
streaming() method, which can take a fetch() call as its first argument, and will handle fetching, compiling, and instantiating the module in one step, accessing the raw byte code as it
streams from the server: webassembly.instantiate
streaming(fetch('simple.wasm'), importobject) .then(results => { // do something with the results!
... }); if we used the older webassembly.instantiate() method, which doesn't work on the direct
stream, we'd need an extra step of converting the fetched byte code to an arraybuffer, like so: fetch('module.wasm').then(response => response.arraybuffer() ).then(bytes => webassembly.instantiate(bytes, importobject) ).then(results => { // do something with the results!
...your code might look something like this: webassembly.instantiate
streaming(fetch('mymodule.wasm'), importobject) .then(obj => { // call an exported function: obj.instance.exports.exported_func(); // or access the buffer contents of an exported memory: var i32 = new uint32array(obj.instance.exports.memory.buffer); // or access the elements of an exported table: var table = obj.instance.exports.table; console.log(table.get(0)()); }) note: for more inf...
ActiveX Control for Hosting Netscape Plug-ins in IE - Archive of obsolete content
<param name="src" ...> is equivalent to srcspecifies an url for the initial
stream of data to feed the plug-in.
... if you havent't specified a "type" param, the control will attempt to use the mime type of this
stream to create the correct plug-in.
... plug-ins cannot create writeable
streams or seek in readable
streams.
Uploading and Downloading Files - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
... the io object and
stream objects can be used to upload files to servers in various ways.
... function uploadput(posturl, filepath) { var req = new xmlhttprequest(); req.open("put", posturl); req.setrequestheader("content-type", "text/plain"); req.onload = function(event) { alert(event.target.responsetext); } req.send(new file(filepath)); } in this example, a new input
stream is created for a file, and is passed to the xmlhttprequest's send method.
Multimedia: video - Learn web development
optimizing video delivery it's best to compress all video, optimize <source> order, set autoplay, remove audio from muted video, optimize video preload, and consider
streaming the video.
... consider
streaming video
streaming allows the proper video size and bandwidth (based on network speed) to be delivered to the end user.
...this article explains how to optimize website video through reducing file size, with (html) download settings, and with
streaming.
PR_GetSpecialFD
gets the file descriptor that represents the standard input, output, or error
stream.
... syntax #include <prio.h> prfiledesc* pr_getspecialfd(prspecialfd id); parameter the function has the following parameter: id a pointer to an enumerator of type prspecialfd, indicating the type of i/o
stream desired: pr_standardinput, pr_standardoutput, or pr_standarderror.
... returns if the id parameter is valid, pr_getspecialfd returns a file descriptor that represents the corresponding standard i/o
stream.
Rhino shell
if it is not java.io.input
stream, it is converted to string and sent to the process as its input.
...if it is not instance of java.io.output
stream, the process output is read, converted to a string, appended to the output property value converted to string and put as the new value of the output property.
...if it is not instance of java.io.output
stream, the process error output is read, converted to a string, appended to the err property value converted to string and put as the new value of the err property.
nsIDirIndexParser
netwerk/
streamconv/public/nsidirindexlistener.idlscriptable a parser for 'application/http-index-format' directories.
... inherits from: nsi
streamlistener last changed in gecko 1.7 called for each directory entry.
...this result is only valid after onstoprequest has occurred, because it can occur anywhere in the data
stream.
nsIDownloader
netwerk/base/public/nsidownloader.idlscriptable a special implementation of a nsi
streamlistener that will make the contents of the
stream available as a file.
... inherits from: nsi
streamlistener last changed in gecko 1.7 method overview void init(in nsidownloadobserver observer, in nsifile downloadlocation); methods init() initialize this downloader.
... downloadlocation the location where the
stream contents should be written.
nsIHTTPHeaderListener
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) note: the plugin author must provide an instance to {geturl,posturl}() that implements both nsiplugin
streamlistener and nsihttpheaderlistener.
... this instance is passed in through {geturl,posturl}()'s
streamlistener parameter.
... the browser will then qi this
streamlistener to see if it implements nsihttpheaderlistener.
nsIMsgFilterList
::version arbitraryheaders readonly attribute acstring nsimsgfilterlist::arbitraryheaders shoulddownloadallheaders readonly attribute boolean nsimsgfilterlist::shoulddownloadallheaders filtercount readonly attribute unsigned long nsimsgfilterlist::filtercount loggingenabled attribute boolean nsimsgfilterlist::loggingenabled defaultfile attribute nsilocalfile nsimsgfilterlist::defaultfile log
stream attribute nsioutput
stream nsimsgfilterlist::log
stream logurl readonly attribute acstring nsimsgfilterlist::logurl methods getfilterat() nsimsgfilter nsimsgfilterlist::getfilterat (in unsigned long filterindex ) getfilternamed() nsimsgfilter nsimsgfilterlist::getfilternamed (in astring filtername) setfilterat() nsimsgfilter nsimsgfilterlist::setfilterat ( in unsigned long filte...
...ilterat() void nsimsgfilterlist::insertfilterat ( in unsigned long filterindex, in nsimsgfilter filter ) movefilter() void nsimsgfilterlist::movefilter ( in nsimsgfilter filter, in nsmsgfiltermotionvalue motion ) createfilter() nsimsgfilter nsimsgfilterlist::createfilter ( in astring name ) savetofile() void nsimsgfilterlist::savetofile ( in nsioutput
stream stream ) parsecondition() void nsimsgfilterlist::parsecondition ( in nsimsgfilter afilter, in string condition ) savetodefaultfile() void nsimsgfilterlist::savetodefaultfile ( ) applyfilterstohdr() void nsimsgfilterlist::applyfilterstohdr ( in nsmsgfiltertypetype filtertype, in nsimsgdbhdr msghdr, in nsimsgfolder folder, in nsimsgdataba...
...se db, in string headers, in unsigned long headersize, in nsimsgfilterhitnotify listener, in nsimsgwindow msgwindow, in nsilocalfile amessagefile ) writeinattr() void nsimsgfilterlist::writeintattr ( in nsmsgfilterfileattribvalue attrib, in long value, in nsioutput
stream stream ) writestrattr() void nsimsgfilterlist::writestrattr ( in nsmsgfilterfileattribvalue attrib, in string value, in nsioutput
stream stream ) writewstrattr() void nsimsgfilterlist::writewstrattr ( in nsmsgfilterfileattribvalue attrib, in string value, in nsioutput
stream stream ) matchorchang...
nsIResumableChannel
inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void asyncopenat(in nsi
streamlistener listener, in nsisupports ctxt, in unsigned long startpos, in nsiresumableentityid entityid); obsolete since gecko 1.8 void resumeat(in unsigned long long startpos, in acstring entityid); attributes attribute type description entityid acstring the entity id for this uri.
...the request given to the nsi
streamlistener will be qiable to nsiresumableinfo.
... void asyncopenat( in nsi
streamlistener listener, in nsisupports ctxt, in unsigned long startpos, in nsiresumableentityid entityid ); parameters listener as for asyncopen.
nsISHEntry
stance, use: var shentry = components.classes["@mozilla.org/browser/session-history-entry;1"] .createinstance(components.interfaces.nsishentry); method overview void addchildshell(in nsidocshelltreeitem shell); nsidocshelltreeitem childshellat(in long index); void clearchildshells(); nsishentry clone(); void create(in nsiuri uri, in astring title, in nsiinput
stream input
stream, in nsilayouthistorystate layouthistorystate, in nsisupports cachekey, in acstring contenttype, in nsisupports owner, in unsigned long long docshellid, in boolean dynamiccreation); native code only!
... postdata nsiinput
stream post data for the document.
...void create( in nsiuri uri, in astring title, in nsiinput
stream input
stream, in nsilayouthistorystate layouthistorystate, in nsisupports cachekey, in acstring contenttype, in nsisupports owner, in unsigned long long docshellid, in boolean dynamiccreation ); parameters uri title input
stream layouthistorystate cachekey contenttype owner docshellid dynamiccreation violates the xpcom interface guidelines forgeteditordata() gets t...
nsITXTToHTMLConv
netwerk/
streamconv/public/nsitxttohtmlconv.idlscriptable this interface allows you to modify the conversion from plain text to html.
... inherits from: nsi
streamconverter last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by "@mozilla.org/
streamconv;1?from=text/plain&to=text/html".
... you should normally obtain an instance via the nsi
streamconverterservice interface.
XPCOM Interface Reference by grouping
le io filesystem nsidirectoryenumerator nsidirectoryiterator nsidirectoryservice nsidirectoryserviceprovider nsidirectoryserviceprovider2 nsidirindex nsidirindexlistener nsidirindexparser nsifile nsilocalfile
stream nsiasyncinput
stream nsiasyncoutput
stream nsiasync
streamcopier nsibinaryinput
stream nsibinaryoutput
stream nsicontentsniffer nsiconverterinput
stream nsifileinput
stream nsifileoutput
stream nsiinput
stream nsiinput
streamcallback nsioutput
stream ...
... nsioutput
streamcallback nsiscriptableinput
stream nsi
streamlistener url nsiioservice nsistandardurl user nsiprompt nsipromptservice zipfile nsizipentry nsizipreader nsizipreadercache nsizipwriter file nsifilepicker nsifileprotocolhandler nsifilespec nsifile
streams nsifileutilities nsifileview memory nsimemory network channel nsichannel nsichanneleventsink...
... nsicookiestorage nsisessionstore crypto nsicryptohash filter nsiparentalcontrolsservice nsipermission nsipermissionmanager nsisecuritycheckedcomponent ssl nsisslerrorlistener
stream stream nsipipe nsitraceablechannel nsitransport nsitransporteventsink nsitransportsecurityinfo timer nsitimer nsitimercallback ui windows nsitaskbarpreview nsitaskbarpreviewbutton ...
Using COM from js-ctypes
allbackinterface; void* setnotifywin32event; void* waitfornotifyevent; void* getnotifyeventhandle; /* end inherit from ispnotifysource */ /* start inherit from ispeventsource */ void* setinterest; void* getevents; void* getinfo; /* end inherit from ispeventsource */ /* start ispvoice */ void* setoutput; void* getoutputobjecttoken; void* getoutput
stream; void* pause; void* resume; void* setvoice; void* getvoice; hresult (__stdcall *speak)(struct myispvoice*, lpcwstr pwcs, dword dwflags, ulong* pul
streamnumber); void* speak
stream; void* getstatus; void* skip; void* setpriority; void* getpriority; void* setalertboundary; void* getalertboundary; void* setrate; vo...
...fyeventhandle': ctypes.voidptr_t }, // end inherit from ispnotifysource // start inherit from ispeventsource { 'setinterest': ctypes.voidptr_t }, { 'getevents': ctypes.voidptr_t }, { 'getinfo': ctypes.voidptr_t }, // end inherit from ispeventsource // start ispvoice { 'setoutput': ctypes.voidptr_t }, { 'getoutputobjecttoken': ctypes.voidptr_t }, { 'getoutput
stream': ctypes.voidptr_t }, { 'pause': ctypes.voidptr_t }, { 'resume': ctypes.voidptr_t }, { 'setvoice': ctypes.voidptr_t }, { 'getvoice': ctypes.voidptr_t }, { 'speak': ctypes.functiontype(callback_abi, hresult, // return [ ispvoice.ptr, lpcwstr, // *pwcs dword, // dwflags ulong // ...
...*pul
streamnumber ]).ptr }, { 'speak
stream': ctypes.voidptr_t }, { 'getstatus': ctypes.voidptr_t }, { 'skip': ctypes.voidptr_t }, { 'setpriority': ctypes.voidptr_t }, { 'getpriority': ctypes.voidptr_t }, { 'setalertboundary': ctypes.voidptr_t }, { 'getalertboundary': ctypes.voidptr_t }, { 'setrate': ctypes.voidptr_t }, { 'getrate': ctypes.voidptr_t }, { 'setvolume': ctypes.voidptr_t }, { 'getvolume': ctypes.voidptr_t }, { 'waituntildone': ctypes.voidptr_t }, { 'setsyncspeaktimeout': ctypes.voidptr_t }, { 'getsyncspeaktimeout': ctypes.voidptr_t }, { 'speakcompleteevent': ctypes.voidptr_t }, { 'isuisupported': ctypes.voidptr_t }, { 'displayui': ctypes.voidptr_t } // end ispvoice ]); // functions // http://msdn.micr...
Plug-in Side Plug-in API - Plugins
npp_destroy
stream tells the plug-in that a
stream is about to be closed or destroyed.
... npp_new
stream notifies a plug-in instance of a new data
stream.
... npp_
streamasfile provides a local file name for the data from a
stream.
AudioContext - Web APIs
audiocontext.createmedia
streamsource() creates a media
streamaudiosourcenode associated with a media
stream representing an audio
stream which may come from the local computer microphone or other sources.
... audiocontext.createmedia
streamdestination() creates a media
streamaudiodestinationnode associated with a media
stream representing an audio
stream which may be stored in a local file or sent to another computer.
... audiocontext.createmedia
streamtracksource() creates a media
streamtrackaudiosourcenode associated with a media
stream representing an media
stream track.
BaseAudioContext.createChannelMerger() - Web APIs
the createchannelmerger() method of the baseaudiocontext interface creates a channelmergernode, which combines channels from multiple audio
streams into a single audio
stream.
... syntax baseaudiocontext.createchannelmerger(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.
... gainnode.connect(merger, 0, 1); splitter.connect(merger, 1, 0); var dest = ac.createmedia
streamdestination(); // because we have used a channelmergernode, we now have a stereo // media
stream we can use to pipe the web audio graph to webrtc, // mediarecorder, etc.
BaseAudioContext.createChannelSplitter() - Web APIs
the createchannelsplitter() 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.createchannelsplitter(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.
... gainnode.connect(merger, 0, 1); splitter.connect(merger, 1, 0); var dest = ac.createmedia
streamdestination(); // because we have used a channelmergernode, we now have a stereo // media
stream we can use to pipe the web audio graph to webrtc, // mediarecorder, etc.
BaseAudioContext - Web APIs
baseaudiocontext.createchannelmerger() creates a channelmergernode, which is used to combine channels from multiple audio
streams into a single audio
stream.
... baseaudiocontext.createchannelsplitter() creates a channelsplitternode, which is used to access the individual channels of an audio
stream and process them separately.
... baseaudiocontext.createpanner() creates a pannernode, which is used to spatialise an incoming audio
stream in 3d space.
ByteLengthQueuingStrategy.size() - Web APIs
syntax var size = bytelengthqueuingstrategy.size(chunk); parameters chunk a chunk of data being passed through the
stream.
... examples const queuingstrategy = new bytelengthqueuingstrategy({ highwatermark: 1 }); const readable
stream = new readable
stream({ start(controller) { ...
... }, cancel(err) { console.log("
stream error:", err); } }, queuingstrategy); var size = queueingstrategy.size(chunk); specifications specification status comment
streamsthe definition of 'size' in that specification.
File - Web APIs
blob.prototype.
stream() transforms the file into a readable
stream that can be used to read the file contents.
... blob.prototype.text() transforms the file into a
stream and reads it to completion.
... blob.prototype.arraybuffer() transforms the file into a
stream and reads it to completion.
HTMLAudioElement - Web APIs
mozcurrentsampleoffset() returns the number of samples form the beginning of the
stream that have been written so far into the audio
stream created by calling mozwriteaudio().
... mozsetup() sets up the audio
stream to allow writing, given the number of audio channels (1 or 2) and the sample rate in khz.
... mozwriteaudio() writes a batch of audio frames to the
stream at the current offset, returning the number of bytes actually written to the
stream.
Recommended Drag Types - Web APIs
the data should be an object which implements the nsiinput
stream interface.
... when this
stream is read, it should provide the data bits for the image, as if the image was a file of that type.
...for example: var dt = event.datatransfer; dt.mozsetdataat("image/png",
stream, 0); dt.mozsetdataat("application/x-moz-file", file, 0); dt.setdata("text/uri-list", imageurl); dt.setdata("text/plain", imageurl); note the mozgetdataat() method is used for non-textual data.
ImageCapture.getPhotoCapabilities() - Web APIs
this example also shows how the imagecapture object is created using a media
streamtrack retrieved from a device's media
stream.
... const input = document.queryselector('input[type="range"]'); var imagecapture; navigator.mediadevices.getusermedia({video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream; const track = media
stream.getvideotracks()[0]; imagecapture = new imagecapture(track); return imagecapture.getphotocapabilities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification ...
... status comment media
stream image capturethe definition of 'getphotocapabilities()' in that specification.
ImageCapture.getPhotoSettings() - Web APIs
this example also shows how the imagecapture object is created using a media
streamtrack retrieved from a device's media
stream.
... const input = document.queryselector('input[type="range"]'); var imagecapture; navigator.mediadevices.getusermedia({video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream; const track = media
stream.getvideotracks()[0]; imagecapture = new imagecapture(track); return imagecapture.getphotocapabilities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification ...
...status comment media
stream image capturethe definition of 'getphotosettings()' in that specification.
ImageCapture.track - Web APIs
the track read-only property of the imagecapture interface returns a reference to the media
streamtrack passed to the imagecapture() constructor.
... syntax const media
streamtrack = imagecaptureobj.track value a media
streamtrack object.
... specifications specification status comment media
stream image capturethe definition of 'track' in that specification.
MediaDeviceInfo.label - Web APIs
only available during active media
stream use, or when persistent permissions have been granted.
...for security reasons, the label is always an empty string ("") if the user has not obtained permission to use at least one media device, either by starting a
stream from the microphone or camera, or by persistent permissions being granted.
... specifications specification status comment media capture and
streamsthe definition of 'label' in that specification.
MediaDeviceInfo - Web APIs
for security reasons, the label field is always blank unless an active media
stream exists or the user has granted persistent permission for media device access.
...og(device.kind + ": " + device.label + " id = " + device.deviceid); }); }) .catch(function(err) { console.log(err.name + ": " + err.message); }); this might produce: videoinput: id = cso9c0ypaf274oucpua53cne0yhlir2yxci+sqfbzz8= audioinput: id = rkxxbyjnabbadgqnnzqlvldmxls0yketycibg+xxnvm= audioinput: id = r2/xw1xupiyzunfv1lgrkoma5wtovckwfz368xcndm0= or if one or more media
streams are active, or if persistent permissions have been granted: videoinput: facetime hd camera (built-in) id=cso9c0ypaf274oucpua53cne0yhlir2yxci+sqfbzz8= audioinput: default (built-in microphone) id=rkxxbyjnabbadgqnnzqlvldmxls0yketycibg+xxnvm= audioinput: built-in microphone id=r2/xw1xupiyzunfv1lgrkoma5wtovckwfz368xcndm0= specifications specification status comment media ...
...capture and
streamsthe definition of 'mediadevicesinfo' in that specification.
MediaRecorder.ondataavailable - Web APIs
the mediarecorder.ondataavailable event handler (part of the media
stream recording api) handles the dataavailable event, letting you run code in response to blob data being made available for use.
...this occurs in four situations: when the media
stream ends, any media data not already delivered to your ondataavailable handler is passed in a single blob.
... specifications specification status comment media
stream recordingthe definition of 'mediarecorder.ondataavailable' in that specification.
MediaRecorderErrorEvent - Web APIs
the mediarecordererrorevent interface represents errors returned by the media
stream recording api.
... constructor media
streamrecorderevent() creates and returns a new mediarecordererrorevent event object with the given parameters.
... specifications specification status comment media
stream recordingthe definition of 'mediarecordererrorevent' in that specification.
MediaSettingsRange - Web APIs
the mediasettingsrange interface of the the media
stream image capture api provides the possible range and value size of photocapabilities.imageheight and photocapabilities.imagewidth.
... const input = document.queryselector('input[type="range"]'); var imagecapture; navigator.mediadevices.getusermedia({video: true}) .then(media
stream => { document.queryselector('video').srcobject = media
stream; const track = media
stream.getvideotracks()[0]; imagecapture = new imagecapture(track); return imagecapture.getphotocapabilities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step =...
... photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification status comment media
stream image capturethe definition of 'mediasettingsrange' in that specification.
MediaSource - Web APIs
mediasource.readystate read only returns an enum representing the state of the current mediasource, whether it is not currently attached to a media element (closed), attached and ready to receive sourcebuffer objects (open), or attached but the
stream has been ended via mediasource.endof
stream() (ended.) mediasource.duration gets and sets the duration of the current media being presented.
... mediasource.endof
stream() signals the end of the
stream.
...ce.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; function fetchab (url, cb) { console.log(url); var xhr = new xmlhttprequest; xhr.open('get', url); xhr.responsetype = 'arraybuffer'; xhr.onload = function () { cb(xhr.response); }; xhr.send(); }; specifications specification status c...
MediaTrackConstraints.cursor - Web APIs
syntax var constraintsobject = { cursor: constraint }; constraintsobject.cursor = constraint; value a constraindomstring which specifies whether or not the mouse cursor should be rendered into the video track in the media
stream returned by the call to getdisplaymedia().
... usage notes you can check the setting selected by the user agent after the display media has been created by getdisplaymedia() by calling getsettings() on the display media's video media
streamtrack, then checking the value of the returned mediatracksettings object's cursor object.
... for example, if your app needs to alter the
stream by inserting a representation of the cursor position if the
stream doesn't include the rendered cursor, you can determine the need to do so by using code like this: let insertfakecursorflag = false; if (display
stream.getvideotracks()[0].getsettings().cursor === "never") { insertfakecursorflag = true; } following this code, insertfakecursorflag is true if there's no cursor rendered into the
stream already.
MediaTrackSettings.aspectRatio - Web APIs
the mediatracksettings dictionary's aspectratio property is a double-precision floating-point number indicating the aspect ratio of the media
streamtrack as currently configured.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.aspectratio property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'aspectratio' in that specification.
MediaTrackSettings.channelCount - Web APIs
the mediatracksettings dictionary's channelcount property is an integer indicating how many audio channel the media
streamtrack 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 media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'channelcount' in that specification.
MediaTrackSettings.facingMode - Web APIs
the mediatracksettings dictionary's facingmode property is a domstring indicating the direction in which the camera producing the video track represented by the media
streamtrack is currently facing.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.facingmode property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'facingmode' in that specification.
MediaTrackSettings.frameRate - Web APIs
the mediatracksettings dictionary's framerate property is a double-precision floating-point number indicating the frame rate, in frames per second, of the media
streamtrack as currently configured.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.framerate property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'framerate' in that specification.
MediaTrackSettings.height - Web APIs
the mediatracksettings dictionary's height property is an integer indicating the number of pixels tall media
streamtrack is currently configured to be.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.height property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'height' in that specification.
MediaTrackSettings.latency - Web APIs
the mediatracksettings dictionary's latency property is a double-precision floating-point number indicating the estimated latency (specified in seconds) of the media
streamtrack as currently configured.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.latency property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'latency' in that specification.
MediaTrackSettings.sampleRate - Web APIs
the mediatracksettings dictionary's samplerate property is an integer indicating how many audio samples per second the media
streamtrack is currently configured for.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.samplerate property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'samplerate' in that specification.
MediaTrackSettings.sampleSize - Web APIs
the mediatracksettings dictionary's samplesize property is an integer indicating the linear sample size (in bits per sample) the media
streamtrack is currently configured for.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.samplesize property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'samplesize' in that specification.
MediaTrackSettings.width - Web APIs
the mediatracksettings dictionary's width property is an integer indicating the number of pixels wide media
streamtrack is currently configured to be.
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.width property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'width' in that specification.
Media Capabilities API - Web APIs
the media capabilities api allows developers to determine decoding and encoding abilities of the device, exposing information such as whether media is supported and whether playback should be smooth and power efficient, with real time feedback about playback to better enable adaptive
streaming, and access to display property information.
... media capabilities information enables websites to enable adaptative
streaming to alter the quality of content based on actual user-perceived quality, and react to a pick of cpu/gpu usage in real time.
...the information can be used to serve optimal media
streams to the user and determine if playback should be smooth and power efficient .
msPlayToPreferredSourceUri - Web APIs
this enables the playto target device to
stream the media content, which can be drm protected, from a different location, such as a cloud media server.
... syntax ptr = object.msplaytopreferredsourceuri; value msplaytopreferredsourceuri enables a playto reference (a uri or url) for
streaming content on the playto target device from a different location, such as a cloud media server.
...this uri can point to a cloud based media server allowing
streaming directly from the cloud, which can be drm protected, instead of
streaming content from the windows machine which must be unprotected content.
OverconstrainedError.OverconstrainedError() - Web APIs
the overconstrainederror constructor creates a new overconstrainederror object which indicates that the set of desired capabilities for the current media
streamtrack cannot currently be met.
... when this event is thrown on a media
streamtrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied.
... specifications specification status comment media capture and
streamsthe definition of 'overconstrainederror' in that specification.
OverconstrainedError - Web APIs
the overconstrainederror interface of the media capture and
streams api indicates that the set of desired capabilities for the current media
streamtrack cannot currently be met.
... when this event is thrown on a media
streamtrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied.
... specifications specification status comment media capture and
streamsthe definition of 'overconstrainederror' in that specification.
RTCPeerConnection.addTransceiver() - Web APIs
each transceiver represents a bidirectional
stream, with both an rtcrtpsender and an rtcrtpreceiver associated with it.
... syntax rtptransceiver = rtcpeerconnection.addtransceiver(trackorkind, init); parameters trackorkind a media
streamtrack to associate with the transceiver, or a domstring which is used as the kind of the receiver's track, and by extension of the rtcrtpreceiver itself.
...
streams optional a list of media
stream objects to add to the transceiver'srtcrtpreceiver; when the remote peer's rtcpeerconnection's track event occurs, these are the
streams that will be specified by that event.
RTCPeerConnection.getStats() - Web APIs
the rtcpeerconnection method getstats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified media
streamtrack.
... syntax promise = rtcpeerconnection.getstats(selector) parameters selector optional a media
streamtrack for which to gather statistics.
... promise = rtcpeerconnection.getstats(selector, successcallback, failurecallback) parameters selector optional a media
streamtrack for which to gather statistics.
RTCPeerConnection.setRemoteDescription() - Web APIs
this lets you simplify code such as the following: mypeerconnection.setremotedescription(new rtcsessiondescription(description)) .then(function () { return createmy
stream(); }) to simply be: mypeerconnection.setremotedescription(description) .then(function () { return createmy
stream(); }) using async/await syntax, you can further simplify this to: await mypeerconnection.setremotedescription(description); createmy
stream(); since it's unnecessary, the rtcsessiondescription() constructor is deprecated.
... function handleoffer(msg) { createmypeerconnection(); mypeerconnection.setremotedescription(msg.description).then(function () { return navigator.mediadevices.getusermedia(mediaconstraints); }) .then(function(
stream) { document.getelementbyid("local_video").srcobject =
stream; return mypeerconnection.add
stream(
stream); }) .then(function() { return mypeerconnection.createanswer(); }) .then(function(answer) { return mypeerconnection.setlocaldescription(answer); }) .then(function() { // send the answer to the remote peer using the signaling server }) .catch(handlegetusermedia...
...when our promise fulfillment handler is called, indicating that this has been done, we create a
stream, add it to the connection, then create an sdp answer and call setlocaldescription() to set that as the configuration at our end of the call before forwarding that answer to the caller.
RTCRtpReceiver - Web APIs
the rtcrtpreceiver interface of the webrtc api manages the reception and decoding of data for a media
streamtrack on an rtcpeerconnection.
... properties rtcrtpreceiver.track read only returns the media
streamtrack associated with the current rtcrtpreceiver instance.
... rtcrtpreceiver.getstats() returns a promise whose fulfillment handler receives a rtcstatsreport which contains statistics about the incoming
streams and their dependencies.
RTCRtpSender.replaceTrack() - Web APIs
the rtcrtpsender method replacetrack() replaces the track currently being used as the sender's source with a new media
streamtrack.
... syntax trackreplacedpromise = sender.replacetrack(newtrack); parameters newtrack optional a media
streamtrack specifying the track with which to replace the rtcrtpsender's current source track.
... examples switching video cameras // example to change video camera, suppose selected value saved into window.selectedcamera navigator.mediadevices .getusermedia({ video: { deviceid: { exact: window.selectedcamera } } }) .then(function(
stream) { let videotrack =
stream.getvideotracks()[0]; pcs.foreach(function(pc) { var sender = pc.getsenders().find(function(s) { return s.track.kind == videotrack.kind; }); console.log('found sender:', sender); sender.replacetrack(videotrack); }); }) .catch(function(err) { console.error('error happens:', err); }); specifications specific...
URL.createObjectURL() - Web APIs
using object urls for media
streams in older versions of the media source specification, attaching a
stream to a <video> element required creating an object url for the media
stream.
... important: if you still have code that relies on createobjecturl() to attach
streams to media elements, you need to update your code to simply set srcobject to the media
stream directly.
... older versions of this specification used createobjecturl() for media
stream objects; this is no longer supported.
WebGLRenderingContext.getBufferParameter() - Web APIs
this is either: gl.static_draw, gl.dynamic_draw, gl.
stream_draw.
... when using a webgl 2 context, the following values are available additionally: gl.static_read, gl.dynamic_read, gl.
stream_read, gl.static_copy, gl.dynamic_copy, gl.
stream_copy.
... adds new target buffers: gl.copy_read_buffer, gl.copy_write_buffer, gl.transform_feedback_buffer, gl.uniform_buffer, gl.pixel_pack_buffer, gl.pixel_unpack_buffer adds new usage hints: gl.static_read, gl.dynamic_read, gl.
stream_read, gl.static_copy, gl.dynamic_copy, gl.
stream_copy.
WebRTC connectivity - Web APIs
regardless of whether it's a new call, or reconfiguring an existing one, these are the basic steps which must occur to exchange the offer and answer, leaving out the ice layer for the moment: the caller captures local media via navigator.mediadevices.getusermedia() the caller creates rtcpeerconnection and called rtcpeerconnection.addtrack() (since add
stream is deprecating) the caller calls rtcpeerconnection.createoffer() to create an offer.
...ideally, candidates are udp (since it's faster, and media
streams are able to recover from interruptions relatively easily), but the ice standard does allow tcp candidates as well.
... generally, ice candidates using tcp are only going to be used when udp is not available or is restricted in ways that make it not suitable for media
streaming.
msCaching - Web APIs
the mscaching read/write property specifies whether
stream data downloaded using xmlhttprequestis cached to disk or not.
... syntax cachestate = object.mscaching values type: domstring property value description auto disables caching for
stream or ms-
stream data.
... enabled enables caching for
stream or ms-
stream data.
Touch events (Mozilla experimental) - Developer guides
streamid a unique integer identifying the finger generating the event.
...corresponding moztouchmove and moztouchup events for that finger will have the same
streamid value.
...the
stream id is unique until the moztouchup event occurs; after that, the value may be recycled for another series of events.
HTML5 Parser - Developer guides
the html5 specification provides a more detailed description than previous html standards of how to turn a
stream of bytes into a dom tree.
... calling document.write() during parsing prior to html5, gecko and webkit allowed calls to document.write() during parsing to insert content into the source
stream.
... this behavior was inherently racy, as the content was inserted into a timing-dependent point in the source
stream.
Common MIME types - HTTP
application/octet-
stream is the default value for all other cases.
...mime type .aac aac audio audio/aac .abw abiword document application/x-abiword .arc archive document (multiple files embedded) application/x-freearc .avi avi: audio video interleave video/x-msvideo .azw amazon kindle ebook format application/vnd.amazon.ebook .bin any kind of binary data application/octet-
stream .bmp windows os/2 bitmap graphics image/bmp .bz bzip archive application/x-bzip .bz2 bzip2 archive application/x-bzip2 .csh c-shell script application/x-csh .css cascading style sheets (css) text/css .csv comma-separated values (csv) text/csv .doc microsoft word application/msword .do...
...) application/rtf .sh bourne shell script application/x-sh .svg scalable vector graphics (svg) image/svg+xml .swf small web format (swf) or adobe flash document application/x-shockwave-flash .tar tape archive (tar) application/x-tar .tif .tiff tagged image file format (tiff) image/tiff .ts mpeg transport
stream video/mp2t .ttf truetype font font/ttf .txt text, (generally ascii or iso 8859-n) text/plain .vsd microsoft visio application/vnd.visio .wav waveform audio format audio/wav .weba webm audio audio/webm .webm webm video video/webm .webp webp image image/webp .woff web open font fo...
for await...of - JavaScript
this example first creates an async iterable for a
stream of data, then uses it to find the size of the response from the api.
... async function*
streamasynciterable(
stream) { const reader =
stream.getreader(); try { while (true) { const { done, value } = await reader.read(); if (done) { return; } yield value; } } finally { reader.releaselock(); } } // fetches data from url and calculates response size using the async generator.
... for await (const chunk of
streamasynciterable(response.body)) { // incrementing the total response length.
WebAssembly
webassembly.instantiate
streaming() the webassembly.instantiate
streaming() function is the primary api for compiling and instantiating webassembly code, returning both a module and its first instance.
... 52notes notes disabled in the firefox 52 extended support release (esr).opera android full support 43safari ios full support 11samsung internet android full support 7.0nodejs full support 8.0.0compile
streamingchrome full support 61edge full support 16firefox full support 58ie no support noopera full support 47safari no support nowebvi...
... 52notes notes disabled in the firefox 52 extended support release (esr).opera android full support 43safari ios full support 11samsung internet android full support 7.0nodejs full support 8.0.0instantiate
streamingchrome full support 61edge full support 16firefox full support 58ie no support noopera full support 47safari no support nowebvi...
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.newchannel(url, 0, null); var
stream = channel.open(); if (channel instanceof components.interfaces.nsihttpchannel && channel.responsestatus != 200) { return ""; } var b
stream = components.classes["@mozilla.org/binaryinput
stream;1"] .createinstance(components.interfaces.nsibinaryinput
stream); b
stream.setinput
stream(
stream); var size = 0; var file_data = ""; while(size = b
stream.available()) { ...
... file_data += b
stream.readbytes(size); } return file_data; } see also nsidownloadprogresslistener saving an arbitrary url to a local file customizing the download progress bar appearance ...
Connecting to Remote Content - Archive of obsolete content
="name:" /> <xul:label> <xsl:value-of select="." /> </xul:label> </xul:hbox> </xsl:for-each> <xul:hbox> <xul:label value="total:" /> <xul:label> <xsl:value-of select="total" /> </xul:label> </xul:hbox> </xul:vbox> </xsl:template> </xsl:stylesheet> next you need to read the xslt stylesheet as a file
stream and parse it into a document object.
... let domparser = components.classes["@mozilla.org/xmlextras/domparser;1"] .createinstance(components.interfaces.nsidomparser); let file
stream = components.classes["@mozilla.org/network/file-input-
stream;1"] .createinstance(components.interfaces.nsifileinput
stream); let xsltprocessor = components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createinstance(components.interfaces.nsixsltprocessor); let xsldocument; file
stream.init(somexslfile, -1, 0x01, 0444); // read only // parse from the xslt stylesheet file
stream xsldocument = domparser.parsefrom
stream( file
stream, null, file
stream.av...
Accessing Files - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...the file object has a nsifile.create() method which may be used to create an empty file, or you can open a writing
stream and write to the file.
Getting File Information - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
... the default permissions for files when created through an output
stream is 0644, which means that the file is readable and writable by the owner of the file and read only for others.
IO - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...files and
streams this section describes how to access and get information about files, read from files and create and write files.
NPAPI plugin developer guide - Archive of obsolete content
g the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving
streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry initialization and...
... getting information windowed plug-ins mac os windows unix event handling for windowed plug-ins windowless plug-ins specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins
streams receiving a
stream telling the plug-in when a
stream is created telling the plug-in when a
stream is deleted finding out how much data the plug-in can accept writing the
stream to the plug-in sending the
stream in random-access mode sending the
stream in file mode sending a
stream creating a
stream pushing data into the
stream deleting the
stream example of sending a
stream urls ...
NPN_GetURLNotify - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary requests creation of a new
stream with the contents of the specified url; gets notification of the result.
... if the target is null, the browser calls npp_urlnotify() after closing the
stream by calling npn_destroy
stream().
NPN_PostURL - Archive of obsolete content
if null, pass the new
stream back to the current plug-in instance regardless of mime type.
...if the target parameter is null, the new
stream is passed to the plug-in regardless of mime type.
NPP_URLNotify - Archive of obsolete content
npres_user_break: user canceled
stream directly by clicking the stop button or indirectly by some action such as deleting the instance or initiating higher-priority network operations.
... npres_network_err:
stream failed due to problems with network, disk i/o, lack of memory, or other problems.
SAX - Archive of obsolete content
nsisaxerrorhandler receive notification of errors in the input
stream.
... }, endprefixmapping: function(prefix) { // don't care }, // nsisupports queryinterface: function(iid) { if(!iid.equals(components.interfaces.nsisupports) && !iid.equals(components.interfaces.nsisaxcontenthandler)) throw components.results.ns_error_no_interface; return this; } }; start parsing the xml reader component can parse xml from a string, an nsiinput
stream, or asynchronously via the nsi
streamlistener interface.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
however, there are a few caveats that developers ought to bear in mind when using the object element with mozilla-based browsers such as netscape 7 and in ie: caveats if you use one single object element for both browsers (as in the above example), it is not possible to provide a cross-browserobtainment mechanism for
streamlined download.
...the pluginurl attribute is another attribute that can be used, and it can be used to point directly to an xpinstall file for a more
streamlined download.
Game monetization - Game development
it's not much, but if you're a known designer it can be an extra passive
stream of income.
...still, it could be another small
stream of passive income.
DTLS (Datagram Transport Layer Security) - MDN Web Docs Glossary: Definitions of Web-related terms
it's based on the
stream-focused transport layer security (tls), providing a similar level of security.
...cifications rfc 6347: datagram transport layer security version 1.2 datagram transport layer security protocol version 1.3 draft specification related specifications rfc 5763: framework for establishing a secure real-time transport protocol (srtp) security context using dtls rfc 5764: dtls extension to establish keys for the secure real-time transport protocol (srtp) rfc 6083: dtls for
stream control transmission protocol (sctp) rfc 8261: datagram transport layer security (dtls) encapsulation of sctp packets rfc 7350: datagram transport layer security (dtls) as transport for session traversal utilities for nat (stun) rfc 7925: tls / dtls profiles for the internet of things ...
SCTP - MDN Web Docs Glossary: Definitions of Web-related terms
sctp (
stream control transmission protocol) is an ietf standard for a transport protocol which enables the reliable, in-order transmission of messages while offering congestion control, multi-homing, and other features to improve reliability and stability of the connection.
... learn more general knowledge rfc 4960:
stream control transmission protocol
stream control transmission protocol on wikipedia ...
Creating hyperlinks - Learn web development
linking to non-html resources — leave clear signposts when linking to a resource that will be downloaded (like a pdf or word document),
streamed (like video or audio), or has another potentially unexpected effect (opens a popup window, or loads a flash movie), you should add clear wording to reduce any confusion.
... let's look at some examples, to see what kind of text can be used here: <p><a href="http://www.example.com/large-report.pdf"> download the sales report (pdf, 10mb) </a></p> <p><a href="http://www.example.com/video-
stream/" target="_blank"> watch the video (
stream opens in separate tab, hd quality) </a></p> <p><a href="http://www.example.com/car-game"> play the car game (requires flash) </a></p> use the download attribute when linking to a download when you are linking to a resource that's to be downloaded rather than opened in the browser, you can use the download attribute to provide a default save filena...
Properly configuring server MIME types - Learn web development
background by default, many web servers are configured to report a mime type of text/plain or application/octet-
stream for unknown content types.
...examples of mime types are: text/html for normal web pages text/plain for plain text text/css for cascading style sheets text/javascript for scripts application/octet-
stream meaning "download this file" application/x-java-applet for java applets application/pdf for pdf documents technical background registered values for mime types are available in iana | mime media types.
Introduction to the server side - Learn web development
it can also make sites easier to use by storing personal preferences and information — for example reusing stored credit card details to
streamline subsequent payments.
... note: if you're a facebook user, go to your main feed and look at the
stream of posts.
Framework main features - Learn web development
unlike html, these languages know how to read data variables, and this data can be used to
streamline the process of writing your ui.
...while it is possible to build framework apps without using these domain-specific languages, embracing them will
streamline your development process and make it easier to find help from the communities around those frameworks.
Handling common JavaScript problems - Learn web development
for example, when showing a video
stream, make sure it is turned off when you can't see it.
... typed arrays allow javascript code to access and manipulate raw binary data, which is necessary as browser apis for example start to manipulate
streams of raw video and audio data.
Command line crash course - Learn web development
and delete: move around your directory structure: cd create directories: mkdir create files (and modify their metadata): touch copy files: cp move files: mv delete files or directories: rm download files found at specific urls: curl search for fragments of text inside larger bodies of text: grep view a file's contents page by page: less, cat manipulate and transform
streams of text (for example changing all the instances of <div>s in an html file to <article>): awk, tr, sed note: there are a number of good tutorials on the web that go much deeper into the command line on the web — this is only a brief introduction!
...a good deal of commands can also read content from
streamed input (known as "standard input" or stdin).
Software accessibility: Where are we today?
finally, this technology could be useful to main
stream users, on portable information appliances, or to access information when the eyes are busy elsewhere.
...this technology has come a long way, but still needs to be more integrated into main
stream software.
Simple Instantbird build
building instantbird what you need to do to build instantbird rather than firefox is: echo 'ac_add_options --enable-application=im' >> .mozconfig to start the build, cd into the comm-central subdirectory (created automatically by the hg clone command), and run: ./mozilla/mach build mach is our command-line tool to
streamline common developer tasks.
... up
stream changes to fetch the latest up
stream changes, in your comm-central directory, run the same command as before: python client.py checkout problems building?
Simple SeaMonkey build
debian linux: # this one-liner should install all necessary build deps sudo aptitude install zip mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev libidl-dev mesa-common-dev autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev python-dev libg
streamer0.10-dev libg
streamer-plugins-base0.10-dev libpulse-dev ubuntu linux # for ubuntu 12.04 lts (precise pangolin), replace the following line with: sudo apt-get build-dep thunderbird sudo apt-get build-dep seamonkey sudo apt-get install zip unzip mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-d...
...ev libnotify-dev libg
streamer0.10-dev libg
streamer-plugins-base0.10-dev libiw-dev libxt-dev mesa-common-dev libpulse-dev fedora linux centos rhel: sudo yum groupinstall 'development tools' 'development libraries' 'gnome software development' sudo yum install mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libgl-devel alsa-lib-devel libxt-devel g
streamer-devel g
streamer-plugins-base-devel pulseaudio-libs-devel # 'development tools' is defunct in fedora 19 and above use the following sudo yum groupinstall 'c development tools and libraries' sudo yum group mark install "x software development" mac: install xcode tools.
How Mozilla determines MIME Types
unknown decoder located at netwerk/
streamconv/converters/nsunknowndecoder.cpp, the interesting part starts at line 287, the ssnifferentries array together with the determinecontenttype function.
...the first few bytes of the file) is searched for embedded nulls; if none are found, text/plain will be used, otherwise application/octet-
stream.
Introduction to Layout in Mozilla
may not be directly manipulated detailed walk-through setting up content model construction frame construction style resolution reflow painting setting up assume basic knowledge of embedding and network apis (doc shell,
streams) content dll auto-registers a document loader factory (dlf) @mozilla.org/content-viewer-factory/view;1?type=text/html all mime types mapped to the same class, nscontentdlf nsdocshell receives inbound content via nsdsuricontentlistener invokes nsidlf::createinstance, passes mime type to dlf nscontentdlf creates a nshtmldocument object, ...
... creates a parser, returned as nsi
streamlistener back to the docshell creates a content sink, which is linked to the parser and the document creates a documentviewerimpl object, which is returned as nsicontentviewer back to the docshell documentviewerimpl creates pres context and pres shell content model construction content arrives from network via nsi
streamlistener::ondataavailable parser tokenizes & processes content; invokes methods on nsicontentsink with parser node objects some buffering and fixup occurs here opencontainer, closecontainer, addleaf content sink creates and attaches content nodes using nsicontent interface content sink maintains stack of “live” elements ...
OS.File for the main thread
let write
stream = function write
stream(data, outfile, chunksize) { let view = new uint8array(data); let loop = function loop(pos) { // define a recursive asynchronous loop.
... file.close(); }, function onerror(reason) { file.close(); throw reason; }); return promise; } or a variant using task.js (or at least the subset already present on mozilla-central): let write
stream = function write
stream(data, outfile, chunksize) { return task.spawn(function() { let view = new uint8array(data); let pos = 0; while (pos < view.bytelength) { pos += yield outfile.write(view.subarray(pos, chunksize)); } outfile.close(); }).then( null, function onfailure(reason) { outfile.close(); throw reason; } ); } example: save canvas ...
An overview of NSS Internals
when using the asn.1 parser(s), a template definition is passed to the parser, which will analyze the asn.1 data
stream accordingly.
... when using hashing, encryption, and decryption functions, it is possible to
stream data (as opposed to operating on a large buffer).
JSS FAQ
org/mozilla/jss/pkix/cert/certificate.java org/mozilla/jss/pkix/cmmf/certrepcontent.java org/mozilla/jss/pkix/crmf/certreqmsg.java org/mozilla/jss/pkix/crmf/certtemplate.java org/mozilla/jss/pkix/primitive/name.java org/mozilla/jss/provider/javax/crypto/jsssecretkeyfactoryspi.java org/mozilla/jss/util/utf8converter.java org/mozilla/jss/util/base64input
stream.java jss/samples/pqggen.java jss/samples/pkcs12.java if i don't call setcipherpolicy, is the domestic policy used by default?
... import java.io.bytearrayinput
stream; [...] certificate cert = (certificate) asn1util.decode( certificate.gettemplate(),x509cert.getencoded() ); how do i convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.x509certificate?
Python binding for NSS
lia_128_cbc_sha ssl.tls_rsa_with_camellia_256_cbc_sha ssl.tls_rsa_with_des_cbc_sha ssl.tls_rsa_with_idea_cbc_sha ssl.tls_rsa_with_null_md5 ssl.tls_rsa_with_null_sha ssl.tls_rsa_with_null_sha256 ssl.tls_rsa_with_rc4_128_md5 ssl.tls_rsa_with_rc4_128_sha ssl.tls_rsa_with_seed_cbc_sha ssl.ssl_variant_datagram ssl.ssl_variant_
stream ssl.ssl_library_version_2 ssl.ssl_library_version_3_0 ssl.ssl_library_version_tls_1_0 ssl.ssl_library_version_tls_1_1 ssl.ssl_library_version_tls_1_2 ssl.ssl_library_version_tls_1_3 ssl.ssl2 ssl.ssl3 ssl.tls1.0 ssl.tls1.1 ssl.tls1.2 ssl.tls1.3 the following methods were missing thread locks, this...
... error codes and descriptions were updated from up
stream nspr & nss.
NSS functions
ater ssl_invalidatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optiongetdefault mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionsetdefault mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfileto
stream mxr 3.2 and later ssl_preencrypted
streamtofile mxr 3.2 and later ssl_rehandshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.11.4 and later ssl_resethandshake mxr 3.2 and later ssl_restarthandshakeaftercertreq mxr 3.2 and later ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_r...
... mxr 3.2 and later sec_asn1encode mxr 3.2 and later sec_asn1encodeinteger mxr 3.2 and later sec_asn1encodeitem mxr 3.2 and later sec_asn1encoderabort mxr 3.9 and later sec_asn1encoderclearnotifyproc mxr 3.2 and later sec_asn1encoderclear
streaming mxr 3.2 and later sec_asn1encodercleartakefrombuf mxr 3.2 and later sec_asn1encoderfinish mxr 3.2 and later sec_asn1encodersetnotifyproc mxr 3.2 and later sec_asn1encoderset
streaming mxr 3.2 and later sec_asn1encodersettakefrombuf mxr 3.2 and l...
NSS Tools ssltap
it can do this for plain http connections or any tcp protocol, as well as for ssl
streams, as described here.
...data sent from the client to the server is surrounded by the following symbols: --> [ data ] data sent from the server to the client is surrounded by the following symbols: <-- [ data ] the raw data
stream is sent to standard output and is not interpreted in any way.
Necko Interfaces Overview
http) maps uri string to nsiuri instance via newuri method creates nsichannel instance from nsiuri instance via newchannel method nsi
streamlistener : nsirequestobserver implemented by the consumer of a nsichannel instance passed to nsichannel::asyncopen method nsirequestobserver::onstartrequest - notifies start of async download nsi
streamlistener::ondataavailable - notifies presence of downloaded data nsirequestobserver::onstoprequest - notifies completion of async download, possibly w/ error nsiloadgroup : nsirequest attri...
... own all channels used to load a particular page (until the channels complete) 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: openinput
stream, openoutput
stream asynchronous i/o methods: asyncread, asyncwrite nsitransport::asyncread takes a nsi
streamlistener 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.
XPCOM guide
hashtables may seem like arrays, but there are important differences:xpcom
stream guidein mozilla code, a
stream is an object which represents access to a sequence of characters.
... it is not that sequence of characters, though: the characters may not all be available when you read from the
stream.
imgILoader
siuri 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 nsichannelpolicy channelpolicy); imgirequest loadimagewithchannel(in nsichannel achannel, in imgidecoderobserver aobserver, in nsisupports cx, out nsi
streamlistener 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 loadimagewithchannel( in nsichannel achannel, in imgidecoderobserver aobserver, in nsisupports cx, out nsi
streamlistener alistener ); parameters achannel the channel to load the image from.
mozITXTToHTMLConv
netwerk/
streamconv/public/mozitxttohtmlconv.idlscriptable please add a summary to this article.
... last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) inherits from nsi
streamconverter implemented by @mozilla.org/txttohtmlconv;1 as a service: var ios = components.classes["@mozilla.org/txttohtmlconv;1"] .getservice(components.interfaces.mozitxttohtmlconv); method overview unsigned long citeleveltxt(in wstring line, out unsigned long loglinestart) void findurlinplaintext(in wstring text, in long alength, in long apos, out long astartpos, out long aendpos) wstring scanhtml(in wstring text, in unsigned long whattodo) wstring scantxt(in wstring text, in unsigned long whattodo) constants conversion control attributes these bits allow you to control the conversion of text into html.
nsICachingChannel
inherits from: nsicacheinfochannel 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
stream listener can check isfromcache() to determine if the asyncopen will actually result in data being
streamed.
nsIDOMMozTouchEvent
n long clientxarg, in long clientyarg, in boolean ctrlkeyarg, in boolean altkeyarg, in boolean shiftkeyarg, in boolean metakeyarg, in unsigned short buttonarg, in nsidomeventtarget relatedtargetarg, in unsigned long
streamidarg); attributes attribute type description
streamid unsigned long a unique identifier for each finger, so that each finger's movement can be tracked separately.
...ng typearg, in boolean canbubblearg, in boolean cancelablearg, in nsidomabstractview viewarg, in long detailarg, in long screenxarg, in long screenyarg, in long clientxarg, in long clientyarg, in boolean ctrlkeyarg, in boolean altkeyarg, in boolean shiftkeyarg, in boolean metakeyarg, in unsigned short buttonarg, in nsidomeventtarget relatedtargetarg, in unsigned long
streamidarg ); parameters
streamidarg the value to assign to the
streamid attribute; this uniquely identifies the finger generating the touch events.
nsIMsgDatabase
defaultviewflags nsmsgviewflagstypevalue readonly: defaultsorttype nsmsgviewsorttypevalue readonly: defaultsortorder nsmsgviewsortordervalue readonly: msghdrcachesize unsigned long folder
stream nsioutput
stream summaryvalid boolean methods open() opens a database folder.
... void applyretentionsettings(in nsimsgretentionsettings amsgretentionsettings, in boolean adeleteviafolder); hasnew() boolean hasnew(); clearnewlist() void clearnewlist(in boolean notify); addtonewlist() void addtonewlist(in nsmsgkey key); startbatch() batching - can be used to cache file
stream for local mail, and perhaps to use the mdb batching mechanism as well.
nsIRequestObserver
netwerk/base/public/nsirequestobserver.idlscriptable this interface is used by various
streams (such as nsichannel ) to indicate the start and end of a request.
... astatuscode reason for stopping (ns_ok if completed successfully) see also nsi
streamlistener ...
nsIStructuredCloneContainer
initfrombase64() initialize this structured clone container from a base-64-encoded byte
stream.
... void initfrombase64( in astring adata, in unsigned long aformatversion ); parameters adata a base-64-encoded byte
stream.
nsIWebBrowserPersist
ave(); void savechannel(in nsichannel achannel, 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 nsiinput
stream apostdata, in string aextraheaders, in nsisupports afile, in nsiloadcontext aprivacycontext); void saveprivacyawareuri(in nsiuri auri, in nsisupports acachekey, in nsiuri areferrer, in long areferrerpolicy, in nsiinput
stream apostdata, in string aextraheaders, in nsisupports afile, in boolean aisprivate); attributes attribute type description currentstate ...
... void saveuri( in nsiuri auri, in nsisupports acachekey, in nsiuri areferrer, in long areferrerpolicy, in nsiinput
stream apostdata, in string aextraheaders, in nsisupports afile, in nsiloadcontext aprivacycontext ); parameters auri uri to save to file.
nsIWebSocketListener
onstart() called to signify the establishment of the message
stream.
... onstop() called to signify the completion of the message
stream.
Mozilla technologies
it also introduces new user interfaces for managing all this information; see places on the mozilla wiki.preferences apithe publicity
stream apithe publicity
stream is a mozilla-hosted activity
stream generated by a user's application usage.
... the publicity
stream is provided as a central place for applications to publicize application usage for the purpose of notifying a user's friends of the applications which their friends are using.
Mail client architecture overview
messages - messages are always stored and
streamed in rfc822 format.
...this library has the cabability to
stream messages to an html renderer such as gecko, manage individual parts of messages, and so forth.
Mail composition back end
it is a simple interface that takes a consumer output
stream for the quoted data.
... ns_imethod quotemessage( const prunichar *msguri, - the uri of the message to be quoted nsioutput
stream *out
stream) = 0; - the consumer output
stream for the quoted data sample programs the mozilla/mailnews/compose/tests/ directory contains sample test programs for all of the above described interfaces.
libmime content type handlers
pizzarro <rhp@netscape.com> contents overview api's plugin location/installation sample content type handler plugin overview the libmime module implements a general-purpose mime parser and one of the primary methods provided by the parser is the ability to emit an html representation of an input
stream.
... sample content type handler plugin to see an example of a content type handler plugin, the source for the handler of the content type "text/calendar" can be viewed at the following link: calendar plugin note: this plugin simply creates a blue table in the output
stream to identify the fact that it is operational, but the basic constructs of what is needed to build a functional content type handler can be seen.
Structures - Plugins
npbyterange represents a particular range of bytes from a
stream.
... np
stream represents a
stream of data either produced by the browser and consumed by the plug-in, or produced by the plug-in and consumed by the browser.
Web Audio Editor - Firefox Developer Tools
within that context they then construct a number of audio nodes, including: nodes providing the audio source, such as an oscillator or a data buffer source nodes performing transformations such as delay and gain nodes representing the destination of the audio
stream, such as the speakers each node has zero or more audioparam properties that configure its operation.
... the developer connects the nodes in a graph, and the complete graph defines the behavior of the audio
stream.
Blob - Web APIs
the blob object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a readable
stream so its methods can be used for processing the data.
... blob.prototype.
stream() returns a readable
stream that can be used to read the contents of the blob.
Body.arrayBuffer() - Web APIs
the arraybuffer() method of the body mixin takes a response
stream and reads it to completion.
...if you need to play ogg during downloading (
stream it) - consider htmlaudioelement: new audio("music.ogg").play(); in getdata() we create a new request using the request() constructor, then use it to fetch an ogg music track.
ByteLengthQueuingStrategy.ByteLengthQueuingStrategy() - Web APIs
examples const queuingstrategy = new bytelengthqueuingstrategy({ highwatermark: 1 }); const readable
stream = new readable
stream({ start(controller) { ...
... }, cancel(err) { console.log("
stream error:", err); } }, queuingstrategy); var size = queuingstrategy.size(chunk); specifications specification status comment
streamsthe definition of 'bytelengthqueuingstrategy()' in that specification.
CountQueuingStrategy.CountQueuingStrategy() - Web APIs
examples const queuingstrategy = new countqueuingstrategy({ highwatermark: 1 }); const writable
stream = new writable
stream({ // implement the sink write(chunk) { ...
... }, abort(err) { console.log("sink error:", err); } }, queuingstrategy); var size = queuingstrategy.size(); specifications specification status comment
streamsthe definition of 'countqueuingstrategy()' in that specification.
CountQueuingStrategy.size() - Web APIs
examples const queuingstrategy = new countqueuingstrategy({ highwatermark: 1 }); const writable
stream = new writable
stream({ // implement the sink write(chunk) { ...
... }, abort(err) { console.log("sink error:", err); } }, queuingstrategy); var size = queuingstrategy.size(); specifications specification status comment
streamsthe definition of 'size' in that specification.
Document.write() - Web APIs
the document.write() method writes a string of text to a document
stream opened by document.open().
... note: because document.write() writes to the document
stream, calling document.write() on a closed (loaded) document automatically calls document.open(), which will clear the document.
Document - Web APIs
document.close() closes a document
stream for writing.
... document.open() opens a document
stream for writing.
Encoding API - Web APIs
the api provides four interfaces: textdecoder, textencoder, textdecoder
stream and textencoder
stream.
... interfaces textdecoder textencoder textdecoder
stream textencoder
stream tutorials & tools a shim allowing to use this interface in browsers that don't support it.
EventSource - Web APIs
an eventsource instance opens a persistent connection to an http server, which sends events in text/event-
stream format.
...when using http/2, the maximum number of simultaneous http
streams is negotiated between the server and the client (defaults to 100).
msAudioCategory - Web APIs
examples include the following local media playback scenarios: local playlist
streaming radio
streaming playlist music videos
streaming audio/radio, youtube, netflix, etc.
... yes communications for
streaming communication audio such as the following: voip real time chat or other type of phone calls should not be used in non-real-time or non-communication scenarios, such as audio and/or video playback, as playback startup latency is affected.
HTMLCanvasElement - Web APIs
htmlcanvaselement.capture
stream() returns a canvascapturemedia
stream that is a real-time video capture of the surface of the canvas.
... working draft adds the method capture
stream().
HTMLMediaElement: ended event - Web APIs
the ended event is fired when playback or
streaming has stopped because the end of the media was reached or because no further data is available.
... bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onended specification html5 media this event is also defined in media capture and
streams and web audio api examples these examples add an event listener for the htmlmediaelement's ended event, then post a message when that event handler has reacted to the event firing.
ImageCapture.grabFrame() - Web APIs
the grabframe() method of the imagecapture interface takes a snapshot of the live video in a media
streamtrack and returns a promise that resolves with a imagebitmap containing the snapshot.
...magebitmap) { console.log('grabbed frame:', imagebitmap); canvas.width = imagebitmap.width; canvas.height = imagebitmap.height; canvas.getcontext('2d').drawimage(imagebitmap, 0, 0); canvas.classlist.remove('hidden'); }) .catch(function(error) { console.log('grabframe() error: ', error); }); } specifications specification status comment media
stream image capturethe definition of 'grabframe()' in that specification.
ImageCapture.takePhoto() - Web APIs
the takephoto() method of the imagecapture interface takes a single exposure using the video capture device sourcing a media
streamtrack and returns a promise that resolves with a blob containing the data.
...or('canvas'); takephotobutton.onclick = takephoto; function takephoto() { imagecapture.takephoto().then(function(blob) { console.log('took photo:', blob); img.classlist.remove('hidden'); img.src = url.createobjecturl(blob); }).catch(function(error) { console.log('takephoto() error: ', error); }); } specifications specification status comment media
stream image capturethe definition of 'takephoto()' in that specification.
MediaDevices.enumerateDevices() - Web APIs
og(device.kind + ": " + device.label + " id = " + device.deviceid); }); }) .catch(function(err) { console.log(err.name + ": " + err.message); }); this might produce: videoinput: id = cso9c0ypaf274oucpua53cne0yhlir2yxci+sqfbzz8= audioinput: id = rkxxbyjnabbadgqnnzqlvldmxls0yketycibg+xxnvm= audioinput: id = r2/xw1xupiyzunfv1lgrkoma5wtovckwfz368xcndm0= or if one or more media
streams are active or persistent permissions are granted: videoinput: facetime hd camera (built-in) id=cso9c0ypaf274oucpua53cne0yhlir2yxci+sqfbzz8= audioinput: default (built-in microphone) id=rkxxbyjnabbadgqnnzqlvldmxls0yketycibg+xxnvm= audioinput: built-in microphone id=r2/xw1xupiyzunfv1lgrkoma5wtovckwfz368xcndm0= specifications specification status comment media capture an...
...d
streamsthe definition of 'mediadevices: enumeratedevices' in that specification.
MediaPositionState.duration - Web APIs
to indicate media of unknown or indeterminate length, such as an ongoing live
stream, specify a value of positive infinity (infinity).
... example in this example, an app performing a live
stream provides information to the browser by preparing a mediapositionstate object and submitting it by calling navigator.mediasession.setpositionstate().
MediaRecorder: error event - Web APIs
examples using addeventlistener to listen for error events: async function record() { const
stream = await navigator.mediadevices.getusermedia({audio: true}); const recorder = new mediarecorder(
stream); recorder.addeventlistener('error', (event) => { console.error(`error recording
stream: ${event.error.name}`) }); recorder.start(); } record(); the same, but using the onerror event handler property: async function record() { const
stream = await navigator.mediadev...
...ices.getusermedia({audio: true}); const recorder = new mediarecorder(
stream); recorder.onerror = (event) => { console.error(`error recording
stream: ${event.error.name}`) }; recorder.start(); } record(); specifications specification status media
stream recording working draft ...
MediaRecorder.mimeType - Web APIs
if (navigator.mediadevices) { console.log('getusermedia supported.'); var constraints = { audio: true, video: true }; var chunks = []; navigator.mediadevices.getusermedia(constraints) .then(function(
stream) { var options = { audiobitspersecond: 128000, videobitspersecond: 2500000, mimetype: 'video/mp4' } var mediarecorder = new mediarecorder(
stream,options); m = mediarecorder; m.mimetype; // would return 'video/mp4' ...
... specifications specification status comment media
stream recordingthe definition of 'mediarecorder.mimetype' in that specification.
MediaRecorder.onstop - Web APIs
the stop event is thrown either as a result of the mediarecorder.stop() method being invoked, or when the media
stream being captured ends.
... specifications specification status comment media
stream recordingthe definition of 'mediarecorder.onstop' in that specification.
MediaRecorder.pause() - Web APIs
the media.pause() method (part of the mediarecorder api) is used to pause recording of media
streams.
... specifications specification status comment media
stream recordingthe definition of 'mediarecorder.pause()' in that specification.
MediaRecorderErrorEvent() - Web APIs
the mediarecordererrorevent() constructor creates a new mediarecordererrorevent object that represents an error that occurred during the recording of media by the media
stream recording api.
... specifications specification status comment media
stream recordingthe definition of 'mediarecordererrorevent()' in that specification.
MediaSource.readyState - Web APIs
ended: the source is attached to a media element but the
stream has been ended via a call to mediasource.endof
stream().
...ce.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; specifications specification status comment media source extensionsthe definition of 'readystate' in that specification.
MediaTrackConstraints.deviceId - Web APIs
because of this, there's no use for the device id when calling media
streamtrack.applyconstraints(), since there is only one possible value; however, you can record a deviceid and use it to ensure that you get the same source for multiple calls to getusermedia().
... specifications specification status comment media capture and
streamsthe definition of 'deviceid' in that specification.
MediaTrackConstraints.displaySurface - Web APIs
usage notes you can check the setting selected by the user agent after the display media has been created by getdisplaymedia() by calling getsettings() on the display media's video media
streamtrack, then checking the value of the returned mediatracksettings object's displaysurface object.
... for example, if your app needs to know that the surface being shared is a monitor or application—meaning that there's possibly a non-content backdrop—it can use code similar to this: let mayhavebackdropflag = false; let displaysurface = display
stream.getvideotracks()[0].getsettings().displaysurface; if (displaysurface === "monitor" || displaysurface ==="application") { mayhavebackdropflag = true; } following this code, mayhavebackdrop is true if the display surface contained in the
stream is of type monitor or application; either of these may have non-content backdrop areas.
MediaTrackConstraints.groupId - Web APIs
because of this, there's no use for the group id when calling media
streamtrack.applyconstraints(), since there is only one possible value, and you can't use it to ensure the same group is used across multiple browsing sessions when calling getusermedia().
... specifications specification status comment media capture and
streamsthe definition of 'groupid' in that specification.
MediaTrackConstraints.logicalSurface - Web APIs
usage notes you can check the setting selected by the user agent after the display media has been created by getdisplaymedia() by calling getsettings() on the display media's video media
streamtrack, then checking the value of the returned mediatracksettings object's logicalsurface object.
... for example, if your app needs to know if the selected display surface is a logical one: let islogicalsurface = display
stream.getvideotracks()[0].getsettings().logicalsurface; following this code, islogicalsurface is true if the display surface contained in the
stream is a logical surface; that is, one which may not be entirely onscreen, or may even be entirely offscreen.
MediaTrackSettings.autoGainControl - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.autogaincontrol property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'autogaincontrol' in that specification.
MediaTrackSettings.cursor - Web APIs
the mediatracksettings dictionary's cursor property indicates whether or not the cursor should be captured as part of the video track included in the media
stream returned by getdisplaymedia().
... syntax cursorsetting = mediatracksettings.cursor; value the value of cursor comes from the cursorcaptureconstraint enumerated string type, and may have one of the following values: always the mouse should always be visible in the video content of the {domxref("media
stream"), unless the mouse has moved outside the area of the content.
MediaTrackSettings.echoCancellation - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.echocancellation property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'echocancellation' in that specification.
MediaTrackSettings.groupId - Web APIs
the mediatracksettings dictionary's groupid property is a browsing-session unique domstring which identifies the group of devices which includes the source for the media
streamtrack.
... specifications specification status comment media capture and
streamsthe definition of 'groupid' in that specification.
MediaTrackSettings.noiseSuppression - Web APIs
this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.noisesuppression property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
... specifications specification status comment media capture and
streamsthe definition of 'noisesuppression' in that specification.
MediaTrackSettings.volume - Web APIs
the mediatracksettings dictionary's volume property is a double-precision floating-point number indicating the volume of the media
streamtrack as currently configured, as a value from 0.0 (silence) to 1.0 (maximum supported volume for the device).
... this lets you determine what value was selected to comply with your specified constraints for this property's value as described in the mediatrackconstraints.volume property you provided when calling either getusermedia() or media
streamtrack.applyconstraints().
msPlayToSource - Web APIs
ptm.addeventlistener("sourcerequested", function(e) { // step 3: specify the media to be
streamed (to filter devices).
... e.sourcerequest.setsource(document.getelementbyid("videoplayer").msplaytosource); // the media will then be
streamed to the device chosen by the user in the ui.
RTCIceCandidate.sdpMid - Web APIs
the read-only property sdpmid on the rtcicecandidate interface returns a domstring specifying the media
stream identification tag of the media component with which the candidate is associated.
... this id uniquely identifies a given
stream for the component with which the candidate is associated.
RTCIceCandidatePairStats - Web APIs
in addition, it adds the following new properties: availableincomingbitrate optional provides an informative value representing the available inbound capacity of the network by reporting the total number of bits per second available for all of the candidate pair's incoming rtp
streams.
... availableoutgoingbitrate optional provides an informative value representing the available outbound capacity of the network by reporting the total number of bits per second available for all of the candidate pair's outoing rtp
streams.
RTCPeerConnection: track event - Web APIs
pc = new rtcpeerconnection({ iceservers: [ { urls: "turn:fake.turnserver.url", username: "someusername", credential: "somepassword" } ] }); pc.addeventlistener("track", e => { videoelement.srcobject = e.
streams[0]; hangupbutton.disabled = false; }, false); the event handler assigns the new track's first
stream to an existing <video> element, identified using the variable videoelement.
... pc.ontrack = e => { videoelement.srcobject = e.
streams[0]; hangupbutton.disabled = false; return false; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'track' in that specification.
RTCRtpEncodingParameters - Web APIs
codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for sending the
stream; the value matches one from the owning rtcrtpparameters object's codecs parameter.
... rid a domstring which, if set, specifies an rtp
stream id (rid) to be sent using the rid header extension.
RTCRtpReceiver.track - Web APIs
the track read-only property of the rtcrtpreceiver interface returns the media
streamtrack associated with the current rtcrtpreceiver instance.
... syntax var media
streamtrack = rtcrtpreceiver.track value a media
streamtrack instance.
RTCRtpSendParameters.encodings - Web APIs
codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for sending the
stream; the value matches one from the owning rtcrtpparameters object's codecs parameter.
... rid a domstring which, if set, specifies an rtp
stream id (rid) to be sent using the rid header extension.
RTCRtpSender.track - Web APIs
the track read-only property of the rtcrtpsender interface returns the media
streamtrack which is being handled by the rtcrtpsender.
... syntax var media
streamtrack = rtcrtpsender.track value a media
streamtrack object representing the media associated with the rtcrtpsender.
RTCRtpTransceiver.mid - Web APIs
the read-only rtcrtptransceiver interface's mid property specifies the negotiated media id (mid) which the local and remote peers have agreed upon to uniquely identify the
stream's pairing of sender and receiver.
... syntax var mediaid = rtcrtptransceiver.mid; value a domstring which uniquely identifies the pairing of source and destination of the transceiver's
stream.
RTCRtpTransceiver - Web APIs
each sdp media section describes one bidirectional srtp ("secure real time protocol")
stream (excepting the media section for rtcdatachannel, if present).
... this pairing of send and receive srtp
streams is significant for some applications, so rtcrtptransceiver is used to represent this pairing, along with other important state from the media section.
RTCTrackEvent() - Web APIs
streams optional an array of media
stream objects representing each of the
streams that comprise the event's corresponding track.
... track the media
streamtrack the event is associated with.
RTCTrackEvent.track - Web APIs
the webrtc api interface rtctrackevent's read-only track property specifies the media
streamtrack that has been added to the rtcpeerconnection.
... syntax var track = trackevent.track; value a media
streamtrack indicating the track which has been added to the rtcpeerconnection.
RTCTrackEventInit.track - Web APIs
the rtctrackeventinit dictionary's track property specifies the media
streamtrack associated with the track event.
... syntax var trackeventinit = { receiver: rtpreceiver, track: media
streamtrack,
streams: [video
stream], transceiver: rtptransceiver }; var track = trackeventinit.track; value a media
streamtrack representing the track with which the event is associated.
RTCTrackEventInit - Web APIs
streams optional an array of media
stream objects representing each of the
streams that comprise the event's corresponding track.
... track the media
streamtrack the event is associated with.
Request - Web APIs
request implements body, so it also inherits the following properties: body read only a simple getter used to expose a readable
stream of the body contents.
...ata and body content for an api request which need a body payload: const request = new request('https://example.com', {method: 'post', body: '{"foo": "bar"}'}); const url = request.url; const method = request.method; const credentials = request.credentials; const bodyused = request.bodyused; note: the body type can only be a blob, buffersource, formdata, urlsearchparams, usvstring or readable
stream type, so for adding a json object to the payload you need to stringify that object.
StereoPannerNode - Web APIs
the stereopannernode interface of the web audio api represents a simple stereo panner node that can be used to pan an audio
stream left or right.
... it is an audionode audio-processing module that positions an incoming audio
stream in a stereo image using a low-cost equal-power panning algorithm.
TextDecoder - Web APIs
a decoder takes a
stream of bytes as input and emits a
stream of code points.
... constructor textdecoder() returns a newly constructed textdecoder that will generate a code point
stream with the decoding method specified in parameters.
TextEncoder - Web APIs
textencoder takes a
stream of code points as input and emits a
stream of utf-8 bytes.
... example const encoder = new textencoder() const view = encoder.encode('€') console.log(view); // uint8array(3) [226, 130, 172] constructor textencoder() returns a newly constructed textencoder that will generate a byte
stream with utf-8 encoding.
TrackDefault.TrackDefault() - Web APIs
syntax var trackdefault = new trackdefault(type, language, label, kinds, byte
streamtrackid); parameters type a domstring specifying a media segment data type for the sourcebuffer to contain.
... byte
streamtrackid optional a domstring specifying the id of the specific track that the sourcebuffer should apply to.
WebGL constants - Web APIs
stream_draw 0x88e0 passed to bufferdata as a hint about whether the contents of the buffer are likely to not be used often.
...tion_satisfied 0x911c wait_failed 0x911d sync_flush_commands_bit 0x00000001 miscellaneous constants constant name value description color 0x1800 depth 0x1801 stencil 0x1802 min 0x8007 max 0x8008 depth_component24 0x81a6
stream_read 0x88e1
stream_copy 0x88e2 static_read 0x88e5 static_copy 0x88e6 dynamic_read 0x88e9 dynamic_copy 0x88ea depth_component32f 0x8cac depth32f_stencil8 0x8cad invalid_index 0xffffffff timeout_ignored -1 max_client_wait_timeout_w...
Using WebRTC data channels - Web APIs
even when user agents share the same underlying library for handling
stream control transmission protocol (sctp) data, there can still be variations due to how the library is used.
... in order to resolve this issue, a new system of
stream schedulers (usually referred to as the "sctp ndata specification") has been designed to make it possible to interleave messages sent on different
streams, including
streams used to implement webrtc data channels.
Web Audio API best practices - Web APIs
media elements have
streaming support out of the box.
... if you're looking to work with audio from the user's camera or microphone you can access it via the media
stream api and the media
streamaudiosourcenode interface.
Migrating from webkitAudioContext - Web APIs
removal of media
streamaudiosourcenode.media
stream the media
stream attribute of media
streamaudiosourcenode has been removed.
... you can keep a reference to the media
stream used to create this node if you need to access it later.
XMLHttpRequestResponseType - Web APIs
ms-
stream the response is part of a
streaming download; this response type is only allowed for download requests, and is only supported by internet explorer.
...you shouldn't use this non-standard (and, as of firefox 68, entirely removed) api; instead, consider using the fetch api with readable
streams, which offers a standard alternative to accessing the response in a
streaming fashion.
ARIA: feed role - Accessibility
a feed enables screen readers to use the browse mode reading cursor to both read and scroll through a
stream of rich content that may continue scrolling infinitely by loading more content as the user reads.
...these
streams can be limited or infinite, loading more content as the user scrolls.
Audio and video manipulation - Developer guides
having native audio and video in the browser means we can use these data
streams with technologies such as <canvas>, webgl or web audio api to modify audio and video directly, for example adding reverb/compression effects to audio, or grayscale/sepia filters to video.
... media
streamaudiosourcenode audio filters the web audio api has a lot of different filter/effects that can be applied to audio using the biquadfilternode, for example.
Overview of events and handlers - Developer guides
events and event handling provide a core technique in javascript for reacting to incidents occurring when a browser accesses a web page, including events from preparing a web page for display, from interacting with the content of the web page, relating to the device on which the browser is running, and from many other causes such as media
stream playback or animation timing.
...wser, the window.screen object, such as due to changes in device orientation, the document object, including the loading, modification, user interaction, and unloading of the page, the objects in the dom (document object model) tree including user interactions or modifications, the xmlhttprequest objects used for network requests, and the media objects such as audio and video, when the media
stream players change state.
Event developer guide - Developer guides
the media
streams embedded in the html documents might trigger some events, as explained in the media events page.
... play and how you use them.overview of events and handlersevents and event handling provide a core technique in javascript for reacting to incidents occurring when a browser accesses a web page, including events from preparing a web page for display, from interacting with the content of the web page, relating to the device on which the browser is running, and from many other causes such as media
stream playback or animation timing.touch events (mozilla experimental)the experimental touch events api described on this page was available from gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to gecko/firefox 17.
Developer guides
audio and video delivery we can deliver audio and video on the web in several ways, ranging from 'static' media files to adaptive live
streams.
...having native audio and video in the browser means we can use these data
streams with technologies such as <canvas>, webgl or web audio api to modify audio and video directly, for example adding reverb/compression effects to audio, or grayscale/sepia filters to video.
<video>: The Video Embed element - HTML: Hypertext Markup Language
if the media is being
streamed, it's possible that the user agent may not be able to obtain some parts of the resource if that data has expired from the media buffer.
...if the media has no known end (such as for live
streams of unknown duration, web radio, media incoming from webrtc, and so forth), this value is +infinity.
Microformats - HTML: Hypertext Markup Language
for example: h-card describes a person or organization h-entry describes episodic or date stamped online content like a blog post h-feed describes a
stream or feed of posts you can find many more vocabularies on the microformats2 wiki.
... "name": [ "greg mcverry" ], "photo": [ "https://quickthoughts.jgregorymcverry.com/file/2d6c9cfed7ac8e849f492b5bc7e6a630/thumb.jpg" ], "url": [ "https://quickthoughts.jgregorymcverry.com/profile/jgmac1106" ] }, "lang": "en", "value": "greg mcverry" } ] }, "lang": "en" } h-feed the h-feed is a
stream or feed of h-entry posts, like complete posts on a home page or archive pages, or summaries or other brief lists of posts example h-feed <div class="h-feed"> <h1 class="p-name">microformats blogs</h1> <article class="h-entry"> <h2 class="p-name">microformats are amazing</h2> <p>published by <a class="p-author h-card" href="http://example.com">w.
HTTP Messages - HTTP
http/2 introduces an extra step: it divides http/1.x messages into frames which are embedded in a
stream.
...several
streams can be combined together, a process called multiplexing, allowing more efficient underlying tcp connections.
An overview of HTTP - HTTP
clients and servers communicate by exchanging individual messages (as opposed to a
stream of data).
...the client browser automatically converts the messages that arrive on the http
stream into appropriate event objects, delivering them to the event handlers that have been registered for the events' type if known, or to the onmessage event handler if no type-specific event handler was established.
Symbol.asyncIterator - JavaScript
rator]() { yield "hello"; yield "async"; yield "iteration!"; } }; (async () => { for await (const x of myasynciterable) { console.log(x); // expected output: // "hello" // "async" // "iteration!" } })(); when creating an api, remember that async iterables are designed to represent something iterable — like a
stream of data or a list —, not to completely replace callbacks and events in most situations.
...however, whatwg
streams are set to be the first built-in object to be async iterable, with [symbol.asynciterator] recently landing in the spec.
WebAssembly.Instance() constructor - JavaScript
syntax important: since instantiation for large modules can be expensive, developers should only use the instance() constructor when synchronous instantiation is absolutely required; the asynchronous webassembly.instantiate
streaming() method should be used at all other times.
...: { imported_func: function(arg) { console.log(arg); } } }; fetch('simple.wasm').then(response => response.arraybuffer() ).then(bytes => { let mod = new webassembly.module(bytes); let instance = new webassembly.instance(mod, importobject); instance.exports.exported_func(); }) however, the preferred way to get an instance is through the asynchronous webassembly.instantiate
streaming() function, for example like this: const importobject = { imports: { imported_func: function(arg) { console.log(arg); } } }; webassembly.instantiate
streaming(fetch('simple.wasm'), importobject) .then(obj => obj.instance.exports.exported_func()); specifications specification webassembly javascript interfacethe definition of 'instance' in that specific...
WebAssembly.Instance.prototype.exports - JavaScript
instance.exports examples using exports after fetching some webassembly bytecode using fetch, we compile and instantiate the module using the webassembly.instantiate
streaming() function, importing a javascript function into the webassembly module in the process.
... var importobject = { imports: { imported_func: function(arg) { console.log(arg); } } }; webassembly.instantiate
streaming(fetch('simple.wasm'), importobject) .then(obj => obj.instance.exports.exported_func()); note: you can also find this example as instantiate-
streaming.html on github (view it live also).
WebAssembly.Memory() constructor - JavaScript
the following example (see memory.html on github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiate
streaming() method, while importing the memory created in the line above.
... webassembly.instantiate
streaming(fetch('memory.wasm'), { js: { mem: memory } }) .then(obj => { var i32 = new uint32array(memory.buffer); for (var i = 0; i < 10; i++) { i32[i] = i; } var sum = obj.instance.exports.accumulate(0, 10); console.log(sum); }); creating a shared memory by default, webassembly memories are unshared.
WebAssembly.Memory.prototype.buffer - JavaScript
examples using buffer the following example (see memory.html on github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiate
streaming() method, while importing the memory created in the line above.
... webassembly.instantiate
streaming(fetch('memory.wasm'), { js: { mem: memory } }) .then(obj => { var i32 = new uint32array(memory.buffer); for (var i = 0; i < 10; i++) { i32[i] = i; } var sum = obj.instance.exports.accumulate(0, 10); console.log(sum); }); specifications specification webassembly javascript interfacethe definition of 'buffer' in that specification.
WebAssembly.Memory - JavaScript
the following example (see memory.html on github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiate
streaming() method, while importing the memory created in the line above.
... webassembly.instantiate
streaming(fetch('memory.wasm'), { js: { mem: memory } }) .then(obj => { var i32 = new uint32array(memory.buffer); for (var i = 0; i < 10; i++) { i32[i] = i; } var sum = obj.instance.exports.accumulate(0, 10); console.log(sum); }); creating a shared memory by default, webassembly memories are unshared.
WebAssembly.Module.exports() - JavaScript
examples using exports the following example (see our index-compile.html demo on github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compile
streaming() method and then sends it to a worker using postmessage().
... var worker = new worker("wasm_worker.js"); webassembly.compile
streaming(fetch('simple.wasm')) .then(mod => worker.postmessage(mod) ); in the worker (see wasm_worker.js) we define an import object for the module to use, then set up an event handler to receive the module from the main thread.
WebAssembly.Module - JavaScript
examples sending a compiled module to a worker the following example (see our index-compile.html demo on github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compile
streaming() method and then sends the resulting module instance to a worker using postmessage().
... var worker = new worker("wasm_worker.js"); webassembly.compile
streaming(fetch('simple.wasm')) .then(mod => worker.postmessage(mod) ); in the worker (see wasm_worker.js) we define an import object for the module to use, then set up an event handler to receive the module from the main thread.
WebAssembly.Table() constructor - JavaScript
var tbl = new webassembly.table({initial:2, element:"anyfunc"}); console.log(tbl.length); // "2" console.log(tbl.get(0)); // "null" console.log(tbl.get(1)); // "null" we then create an import object that contains the table: var importobj = { js: { tbl:tbl } }; finally, we load and instantiate a wasm module (table2.wasm) using the webassembly.instantiate
streaming() method.
... webassembly.instantiate
streaming(fetch('table2.wasm'), importobject) .then(function(obj) { console.log(tbl.length); console.log(tbl.get(0)()); console.log(tbl.get(1)()); }); note how you've got to include a second function invocation operator at the end of the accessor to actually invoke the referenced function and log the value stored inside it (e.g.
WebAssembly.Table.prototype.get() - JavaScript
examples using get the following example (see table.html on github, and view it live also) compiles and instantiates the loaded table.wasm byte code using the webassembly.instantiate
streaming() method.
... webassembly.instantiate
streaming(fetch('table.wasm')) .then(function(obj) { var tbl = obj.instance.exports.tbl; console.log(tbl.get(0)()); // 13 console.log(tbl.get(1)()); // 42 }); note how you've got to include a second function invocation operator at the end of the accessor to actually retrieve the value stored inside the reference (e.g.
WebAssembly.Table - JavaScript
var tbl = new webassembly.table({initial:2, element:"anyfunc"}); console.log(tbl.length); // "2" console.log(tbl.get(0)); // "null" console.log(tbl.get(1)); // "null" we then create an import object that contains the table: var importobj = { js: { tbl:tbl } }; finally, we load and instantiate a wasm module (table2.wasm) using the webassembly.instantiate
streaming() method.
... webassembly.instantiate
streaming(fetch('table2.wasm'), importobject) .then(function(obj) { console.log(tbl.length); console.log(tbl.get(0)()); console.log(tbl.get(1)()); }); note how you've got to include a second function invocation operator at the end of the accessor to actually invoke the referenced function and log the value stored inside it (e.g.
Authoring MathML - MathML
however, the
stream filter behavior is not implemented yet.
...it's a small
stream filter written in c/c++ and generated with flex and bison ; in particular it is very fast.
Image file type and format guide - Web media technologies
webp also supports animation: in a lossy webp file, the image data is represented by a vp8 bit
stream, which may contain multiple frames.
... mime type image/webp file extension(s) .webp specification riff container specification rfc 6386: vp8 data format and decoding guide (lossy encoding) webp lossless bit
stream specification browser compatibility feature chrome edge firefox internet explorer opera safari lossy webp support 17 18 65 no 11.10 (presto) 15 (blink) no lossless webp 23 25 on android 18 65 ...
Caching compiled WebAssembly modules - WebAssembly
=> { if we do, we instantiate it with the given import object: console.log(`found ${url} in wasm cache`); return webassembly.instantiate(module, importobject); }, if not, we compile it from scratch and then store the compiled module in the database with a key of url, for next time we want to use it: errmsg => { console.log(errmsg); return webassembly.instantiate
streaming(fetch(url)).then(results => { storeindatabase(db, results.module); return results.instance; }); }) }, note: it is for this kind of usage that webassembly.instantiate() returns both a module and an instance: the module represents the compiled code and can be stored/retrieved in idb or shared between workers via postmessage(); the instance is stateful and contains t...
... errmsg => { console.log(errmsg); return webassembly.instantiate
streaming(fetch(url)).then(results => { return results.instance }); }); } caching a wasm module with the above library function defined, getting a wasm module instance and using its exported features (while handling caching in the background) is as simple as calling it with the following parameters: a cache version, which — as we explained above — you need to update when any wasm module is updated or moved to a differe...
Exported WebAssembly functions - WebAssembly
an example let's look at an example to clear things up (you can find this on github as table-set.html; see it running live also, and check out the wasm text representation): var othertable = new webassembly.table({ element: "anyfunc", initial: 2 }); webassembly.instantiate
streaming(fetch('table.wasm')) .then(obj => { var tbl = obj.instance.exports.tbl; console.log(tbl.get(0)()); // 13 console.log(tbl.get(1)()); // 42 othertable.set(0,tbl.get(0)); othertable.set(1,tbl.get(1)); console.log(othertable.get(0)()); console.log(othertable.get(1)()); }); here we create a table (othertable) from javascript using the webassembly.table constructor, then we load tab...
...le.wasm into our page using the webassembly.instantiate
streaming() method.
Developing for Firefox Mobile - Archive of obsolete content
nt/content supported content/loader supported content/mod supported content/worker supported core/heritage supported core/namespace supported core/promise supported event/core supported event/target supported frame/hidden-frame supported frame/utils supported io/byte-
streams supported io/file supported io/text-
streams supported lang/functional supported lang/type supported loader/cuddlefish supported loader/sandbox supported net/url supported net/xhr supported places/bookmarks not supported places/favicon not supported places/history ...
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
(see xpcom:arrays.) nscomptr<nsisupportsarray> array; - rv = ns_newisupportsarray(getter_addrefs(array)); + array = do_createinstance(ns_supportsarray_contractid); - nscomptr<nsiinput
stream> raw
stream;- rv = ns_newbyteinput
stream(getter_addrefs(raw
stream),- (const char*)data, length); + nscomptr<nsistringinput
stream> raw
stream =+ do_createinstance(ns_stringinput
stream_contractid, &rv);+ ns_ensure_success(rv, rv);++ rv = raw
stream->setdata((const char*)data, length); ns_ensure_success(rv, rv); nsistringinput
stream is not frozen (and thus, not availabl...
Getting the page URL in NPAPI plugin - Archive of obsolete content
tradeoffs: uses npapi only works in most browsers does not work in mozillas older than firefox 1.0 via npp_new
stream from braden mcdaniel: if you want the uri of the resource for which the plug-in is invoked, the most npapi-friendly way to do that is to get it from the np
stream that is passed to npp_new
stream.
List of Mozilla-Based Applications - Archive of obsolete content
music xulrunner application spicebird collaboration suite spiderape embedding tool uses mozilla spidermonkey splashtop web browser browser part of instant-on operating system sqlite-manager database manager standalone version of add-on stealthsurfer secure internet tools on usb key uses firefox and thunderbird
streambase complex event processing platform seems to use xulrunner stylizer css editor css editor css editor with built-in firebug-like diagnostics and gecko 1.8 preview sun java enterprise system server products uses nss sundial browser with advanced domain name technology based on firefox surfeasy private and secure web browsing ...
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 url
streams) but the avm- has a bunch (currently includes securitycallbackdata, moviecliploader, camerainstance, fappacket, microphoneinstance, csoundchannel, urlrequest, responceobject, url
stream and url
streamsecurity).
HTTP Class Overview - Archive of obsolete content
nshttphandler implements nsiprotocolhandler manages preferences owns the authentication cache holds references to frequently used services nshttpchannel implements nsihttpchannel talks to the cache initiates http transactions processes http response codes intercepts progress notifications nshttpconnection implements nsi
streamlistener & nsi
streamprovider talks to the socket transport service feeds data to its transaction object routes progress notifications nshttpconnectioninfo identifies a connection nshttptransaction implements nsirequest encapsulates a http request and response parses incoming data nshttpchunkeddecoder owned by a transaction strips chunked transfer encoding nshttprequesthead ...
Modularization techniques - Archive of obsolete content
file nssample3.cpp #include <io
stream.h> #include "pratom.h" #include "nsrepository.h" #include "nsisample.h" #include "nssample.h" static ns_define_iid(kisupportsiid, ns_isupports_iid); static ns_define_iid(kifactoryiid, ns_ifactory_iid); static ns_define_iid(kisampleiid, ns_isample_iid); static ns_define_cid(ksamplecid, ns_sample_cid); <strong>/* * globals */ static print32 glockcnt = 0; static print32 ginstancecnt = 0;</stron...
BundleLibrary - Archive of obsolete content
slimtimer client slimtimer.webapp a very useful time-tracking tool with a "slim" client spagobi spagobi.webapp a web collaborative business intelligence platform
streamy
streamy.webapp (
streamy is a pretty powerful, next-gen online rss feed reader.
Working With Directories - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
Moving, Copying and Deleting Files - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
TOC - Archive of obsolete content
file and
stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and
stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
The Joy of XUL - Archive of obsolete content
in practical terms, this enables developers to maintain one code
stream for a given application, then apply custom branding or include special features for customers with a completely independent code base.
Browser-side plug-in API - Archive of obsolete content
npn_destroy
stream npn_forceredraw npn_getauthenticationinfo npn_geturl npn_geturlnotify npn_getvalue npn_getvalueforurl npn_invalidaterect npn_invalidateregion npn_memalloc npn_memflush npn_memfree npn_new
stream npn_pluginthreadasynccall npn_poppopupsenabledstate npn_posturl npn_posturlnotify npn_pushpopupsenabledstate npn_reloadplugins npn_requestread npn_setvalue npn_setvalueforurl npn_stat...
NPAPI plug-in side API - Archive of obsolete content
npp_destroy npp_destroy
stream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_new
stream npp_print npp_setvalue npp_setwindow np_shutdown npp_
streamasfile npp_urlnotify npp_write npp_writeready ...
Table Reflow Internals - Archive of obsolete content
a text run) user defined - currently only used for fixed positioned frames kinds of reflows incremental reflow (continued) reflower not allowed to change available size of reflowee reflow commands get coalesced to
streamline processing style change a target changed stylistic if there is a target, otherwise every frame may need to respond parent of target usually turns it into an incremental reflow with a style changed command type table frames nstableouter frame ↙ ↘ nstable frame nstablecaption frame ↙ ↘ ↓ nstablecol groupframe ...
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
importpackage( java.net ); // connect to the remote resource var u = new url( "http://www.mozilla.org/news.rdf" ); var c = u.openconnection(); c.connect(); // read in the raw data var s = new java.io.input
streamreader( c.getinput
stream() ); var b = new java.io.bufferedreader( s ); var l, str = ""; while( ( l = b.readline() ) != null ) { // skip if( l != "" ) { str = str + l + "\n"; } } // define the namespaces, first the default, // then additional namespaces default xml namespace = "http://purl.org/rss/1.0/"; var dc = new namespace( "http://purl.org/dc/elements/1.1/" ); var rdf = new namespace( "ht...
Index - Game development
streamlining cross device differences creates multiple challenges, not least when providing appropriate controls for different contexts.
Game promotion - Game development
youtubers it's a rising trend — don't underestimate the power of youtubers playing your game, talking about it and
streaming their experience to give you lots of promotion.
MDN Web Docs Glossary: Definitions of Web-related terms
ive request header resource timing response header responsive web design rest rgb ril robots.txt round trip time (rtt) routers rss rtcp (rtp control protocol) rtf rtl (right to left) rtp (real-time transport protocol) and srtp (secure rtp) rtsp: real-time
streaming protocol ruby s safe same-origin policy scm scope screen reader script-supporting element scroll container scrollport sctp sdp search engine second-level domain secure sockets layer (ssl) selector (css) self-executing anonymous function...
Web fonts - Learn web development
syntax required looks something like this: first of all, you have a @font-face block at the start of the css, which specifies the font file(s) to download: @font-face { font-family: "myfont"; src: url("myfont.woff"); } below this you can then use the font family name specified inside @font-face to apply your custom font to anything you like, as normal: html { font-family: "myfont", "bit
stream vera serif", serif; } the syntax does get a bit more complex than this; we'll go into more detail below.
JavaScript basics - Learn web development
these include: browser application programming interfaces (apis) built into web browsers, providing functionality such as dynamically creating html and setting css styles; collecting and manipulating a video
stream from a user's webcam, or generating 3d graphics and audio samples.
Index - Learn web development
218 properly configuring server mime types http by default, many web servers are configured to report a mime type of text/plain or application/octet-
stream for unknown content types.
Introducing asynchronous JavaScript - Learn web development
related to blocking), many web api features now use asynchronous code to run, especially those that access or fetch some kind of resource from an external device, such as fetching a file from the network, accessing a database and returning data from it, accessing a video
stream from a web cam, or broadcasting the display to a vr headset.
Aprender y obtener ayuda - Learn web development
run code after several promises are fulfilled play a video
stream from a webcam in the browser create a linear gradient in the background of your element error messages if you are having a problem with some code and a specific error message is coming up, it is often a good idea to just copy the error message into your search engine and use it as the search term.
CSUN Firefox Materials
it's a quick download, occupies very little disk space, and has a clean, no-nonsense interface." - pc magazine firefox 1.5 is a fast, free, standards compliant web browser which is rapidly gaining recognition for its fresh,
streamlined approach to browsing the web.
Accessibility and Mozilla
however, many of the concepts were also used during the development of firevox, an at using iaccessible2.accessible toolkit checklistplease contact the mozilla accessibility community with questions or feedback.csun firefox materialsfirefox 1.5 is a fast, free, standards compliant web browser which is rapidly gaining recognition for its fresh,
streamlined approach to browsing the web.
Old Thunderbird build
for hg tip, you should see green bs on https://treeherder.mozilla.org/#/jobs?repo=comm-central to start the build, cd into the comm-central subdirectory, and run: ./mozilla/mach build mach is our command-line tool to
streamline common developer tasks.
Simple Thunderbird build
for hg tip, you should see green bs on https://treeherder.mozilla.org/#/jobs?repo=comm-central to start the build, cd into the source directory, and run: ./mach build mach is our command-line tool to
streamline common developer tasks.
Experimental features in Firefox
developer edition 73 no beta 73 no release 73 no preference name layout.css.constructable-stylesheets.enabled webrtc and media the following experimental features include those found in the webrtc api, the web audio api, the media session api, the media source extensions api, the encrypted media extensions api, and the media capture and
streams api.
Index
10 firefox ui considerations for web developers activity
stream, firefox, icons, mozilla, new tab, newtab, ui, web, web development, favicon there are a number of places within the firefox user interface where web sites are listed for the user to choose a destination to visit or a site to manage in some way.
Limitations of frame scripts
examples of apis add-on authors should avoid in frame scripts: nsifileinput
stream nsifileoutput
stream constructing a file from a string or nsifile (but file objects can be sent via message manager) htmlinputelement.mozsetfilenamearray (alternative: mozsetfilearray) xul and browser ui anything that tries to touch the browser ui or anything to do with xul is likely to not work in the content process.
Limitations of frame scripts
for example: nsifileinput
stream nsifileoutput
stream constructing a file from a string or nsifile (but file objects can be sent via message manager) htmlinputelement.mozsetfilenamearray (alternative: mozsetfilearray) file: uris, see bug 1187099 <...> xul and browser ui anything that tries to touch the browser ui or anything to do with xul is likely not to work in the content process.
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.
Log.jsm
logstructured(); name parent removeappender(); updateappenders(); and the methods mentioned below: logger methods loggerrepository(); length: 0 keys of prototype: getlogger(); rootlogger storage
streamappender(); length: 1 keys of prototype: doappend(); getinput
stream(); newoutput
stream(); output
stream reset(); structuredformatter(); length: 0 keys of prototype: format(); method overview ...
XPCOMUtils.jsm
for example, if your component implements nsi
streamconverter: mycomponent.prototype = { queryinterface: xpcomutils.generateqi([ components.interfaces.nsirequestobserver, components.interfaces.nsi
streamlistener, components.interfaces.nsi
streamconverter, ]), // ...methods...
JavaScript code modules
netutil.jsm provides helpful networking utility functions, including the ability to easily copy data from an input
stream to an output
stream asynchronously.
Uplifting a localization from Central to Aurora
l10n-central/ab-cd comparing with ../l10n-central/ab-cd searching for changes no changes found hg inc -r default ../releases/l10n/mozilla-aurora/ab-cd comparing with ../releases/l10n/mozilla-aurora/ab-cd searching for changes no changes found # push to central hg push ../l10n-central/ab-cd # push to aurora hg push ../releases/l10n/mozilla-aurora/ab-cd # push l10n-central up
stream cd ../l10n-central/ab-cd hg push # push aurora up
stream cd ../../releases/l10n/mozilla-aurora/ab-cd hg push keep in mind that at this point, aurora and beta correspond to different states of l10n, and thus you don't want to push the aurora state to beta.
Creating localizable web applications
if you are using pure html instead of gettext to localize your webapp, consider using an additional gettext-like format such as .lang to
streamline localizers' work with repeating content.
MailNews automated testing
enhanced logging: supports generating rich json
streams to disk or over the network for consumption by logsploder or other tools.
I/O Functions
for example, ssl is a layer on top of a reliable byte
stream layer such as tcp.
PR_Interrupt
unfortunately the standard input, output, and error
streams are treated as files by nspr, so a pr_read call on pr_stdin cannot be interrupted even though it may block indefinitely.
PR NewProcessAttr
the new prprocessattr structure is initialized with these default attributes: the standard i/o
streams (standard input, standard output, and standard error) are not redirected.
PR_NewTCPSocket
description tcp (transmission control protocol) is a connection-oriented, reliable byte-
stream protocol of the tcp/ip protocol suite.
PR_OpenDir
description pr_opendir opens the directory specified by the pathname name and returns a pointer to a directory
stream (a prdir object) that can be passed to subsequent pr_readdir calls to get the directory entries (files and subdirectories) in the directory.
PR_OpenTCPSocket
description tcp (transmission control protocol) is a connection-oriented, reliable byte-
stream protocol of the tcp/ip protocol suite.
PR_Read
description the thread invoking pr_read blocks until it encounters an end-of-
stream indication, some positive number of bytes (but no more than amount bytes) are read in, or an error occurs.
Build instructions for JSS 4.4.x
build instructions for jss 4.4.x newsgroup: mozilla.dev.tech.crypto to build jss see up
stream jss build/test instructions next, you should read the instructions on using jss.
JSS
jss source should now be checked out from the github: git clone git@github.com:dogtagpki/jss.git -- or -- git clone https://github.com/dogtagpki/jss.git all future up
stream enquiries to jss should now use the pagure issue tracker system: https://pagure.io/jss/issues documentation regarding the jss project should now be viewed at: http://www.dogtagpki.org/wiki/jss note: as much of the jss documentation is sorely out-of-date, updated information will be a work in progress, and many portions of any legacy documentation will be re-written over the course of time.
JSS 4.4.0 Release Notes
jss 4.4.0 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/jss_4_4_0_rtm/src/ new in jss 4.40 new functionality new functions new macros notable changes in jss 4.40 picks up work done down
stream for fedora and rhel and used by various linux distributions with includes:.
NSS 3.12.4 release notes
bug 485658: vfychain -p reports revoked cert bug 485745: modify fipstest.c to support cavs 7.1 drbg testing bug 486304: cert7.db/cert8.db corruption when importing a large certificate (>64k) bug 486405: allocator mismatches in pk12util.c bug 486537: disable execstack in freebl x86_64 builds on linux bug 486698: facilitate the building of major components independently and in a chain manner by down
stream distributions bug 486999: calling ssl_setsockpeerid a second time leaks the previous value bug 487007: make lib/jar conform to nss coding style bug 487162: ckfw/capi build failure on windows bug 487239: nssutil.rc doesn't compile on wince bug 487254: sftkmod.c uses posix file io functions on wince bug 487255: sdb.c uses posix file io functions on wince bug 487487: cert_nametoascii reports !invali...
NSS 3.19.2.1 release notes
bug 1192028 (cve-2015-7181) and bug 1202868 (cve-2015-7182): several issues existed within the asn.1 decoder used by nss for handling
streaming ber data.
NSS 3.19.4 release notes
bug 1192028 (cve-2015-7181) and bug 1202868 (cve-2015-7182): several issues existed within the asn.1 decoder used by nss for handling
streaming ber data.
NSS 3.20.1 release notes
bug 1192028 (cve-2015-7181) and bug 1202868 (cve-2015-7182): several issues existed within the asn.1 decoder used by nss for handling
streaming ber data.
NSS Sample Code Sample1
sample code #include <io
stream.h> #include "pk11pub.h" #include "keyhi.h" #include "nss.h" // key management for keys share among multiple hosts // // this example shows how to use nss functions to create and // distribute keys that need to be shared among multiple servers // or hosts.
NSS Sample Code sample3
sample code 3: hashing, mac /* * demonstration program for hashing and macs */ #include <io
stream.h> #include "pk11pub.h" #include "nss.h" static void printdigest(unsigned char *digest, unsigned int len) { int i; cout << "length: " << len << endl; for(i = 0;i < len;i++) printf("%02x ", digest[i]); cout << endl; } /* * main */ int main(int argc, const char *argv[]) { int status = 0; pk11slotinfo *slot = 0; pk11symkey *key = 0; pk11context *context = 0; unsigned char data[80]; unsigned char digest[20]; /*is there a way to tell how large the output is?*/ unsigned int len; secstatus s; /* initialize nss * if your application code has already initialized nss, you can skip it * here.
PKCS #11 Module Specs
embedded '\' charaters are considered escape characters for the next character in the
stream.
NSS tools : ssltab
data sent from the client to the server is surrounded by the following symbols: --> [ data ] data sent from the server to the client is surrounded by the following symbols: "left arrow"-- [ data ] the raw data
stream is sent to standard output and is not interpreted in any way.
NSS tools : ssltap
data sent from the client to the server is surrounded by the following symbols: --> [ data ] data sent from the server to the client is surrounded by the following symbols: "left arrow"-- [ data ] the raw data
stream is sent to standard output and is not interpreted in any way.
SSL functions
ater ssl_invalidatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optiongetdefault mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionsetdefault mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfileto
stream mxr 3.2 and later ssl_preencrypted
streamtofile mxr 3.2 and later ssl_rehandshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.11.4 and later ssl_resethandshake mxr 3.2 and later ssl_restarthandshakeaftercertreq mxr 3.2 and later ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_r...
Utility functions
mxr 3.2 and later sec_asn1encode mxr 3.2 and later sec_asn1encodeinteger mxr 3.2 and later sec_asn1encodeitem mxr 3.2 and later sec_asn1encoderabort mxr 3.9 and later sec_asn1encoderclearnotifyproc mxr 3.2 and later sec_asn1encoderclear
streaming mxr 3.2 and later sec_asn1encodercleartakefrombuf mxr 3.2 and later sec_asn1encoderfinish mxr 3.2 and later sec_asn1encodersetnotifyproc mxr 3.2 and later sec_asn1encoderset
streaming mxr 3.2 and later sec_asn1encodersettakefrombuf mxr 3.2 and l...
NSS tools : ssltap
data sent from the client to the server is surrounded by the following symbols: --> [ data ] data sent from the server to the client is surrounded by the following symbols: "left arrow"-- [ data ] the raw data
stream is sent to standard output and is not interpreted in any way.
Rhino Debugger
console window the debugger redirects the system.out, system.in, and system.err
streams to an internal javascript console window which provides an editable command line for you to enter javascript code and view system output.
SpiderMonkey 1.8.5
this versioning scheme will not be rolled back into the up
stream mozilla source tree(s), and may not be used in future source releases.
SpiderMonkey 1.8.7
this versioning scheme will not be rolled back into the up
stream mozilla source tree(s), and may not be used in future source releases.
WebReplayRoadmap
cloud integration (partially implemented) storing recordings in the cloud and interacting with them via the debugger could
streamline several features described above: difficulties when recording and replaying on different machines with incompatible firefox builds or operating systems will be smoothed out.
Feed content access API
however, you could also parse it from a file using parsefrom
stream(), or directly from an url using parseasync().
XML Extras
feature status feature status xmlserializer available xmlhttprequest available domparser (string and
stream input source) available web services with soap and wsdl no longer available from gecko 1.9/firefox 3.
Standard XPCOM components
nsobserverservicethe xpcom observer service.nsscriptableinput
streama component implementing nsiscriptableinput
stream.
imgIEncoder
1.0 66 introduced gecko 1.8 inherits from: nsiasyncinput
stream last changed in gecko 1.9 (firefox 3) method overview void addimageframe( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 frameformat, in astring frameoptions); void encodeclipboardimage(in nsiclipboardimage aclipboardimage, out nsifile aimagefile); obsolete since gecko 1.9 void endimageencode(); void initfromdata([array, 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...
nsIDirIndex
netwerk/
streamconv/public/nsidirindex.idlscriptable a class holding information about a directory index.
nsIDirIndexListener
netwerk/
streamconv/public/nsidirindexlistener.idlscriptable this interface is used to receive contents of directory index listings from a protocol.
nsIEditor
editorapi.outputtostring('text/html', 8); // xml: all in xml with _moz_dirty="" in new tags, html tags are in upper case // application/xhtml+xml format do the same editorapi.outputtostring('text/xml', 2); // the body is not recognized, everything is printed void outputto
stream(in nsioutput
stream a
stream, in astring formattype, in acstring charsetoverride, in unsigned long flags); listener methods void addeditorobserver(in nsieditorobserver observer);obsolete since gecko 18 void seteditorobserver(in editactionlistener observer); void removeeditorobserver(in nsieditorobserver observer obsolete since gecko 18); void addeditacti...
nsIHttpChannelInternal
the arguments to nsihttpupgradelistener.ontransportavailable() provide to the new protocol the low level transport
streams that are no longer used by http.
available
this content is now available at nsiinput
stream.available().
init
this content is now available at nsiscriptableinput
stream.init().
read
this content is now available at nsiscriptableinput
stream.read().
nsISearchSubmission
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) attributes attribute type description postdata nsiinput
stream the post data associated with a search submission, wrapped in a mime input
stream.
nsIServerSocketListener
the transport is in the connected state, and read/write
streams can be opened using the normal nsitransport api.
nsIXMLHttpRequest
you only want this if your url is to a zip file or some file you want to download and make a nsiarraybufferinput
stream out of it or something xhr.send(null); } xhr('https://www.gravatar.com/avatar/eb9895ade1bd6627e054429d1e18b576?s=24&d=identicon&r=pg&f=1', data => { services.prompt.alert(null, 'xhr success', data); var file = os.path.join(os.constants.path.desktopdir, "test.png"); var promised = os.file.writeatomic(file, new uint8array(data)); promised.then( function() { ...
nsIXmlRpcClient
supported arguments are: nsisupportspruint8, nsisupportspruint16, nsisupportsprint16, nsisupportsprint32: i4, nsisupportsprbool: boolean, nsisupportschar, nsisupportscstring: string, nsisupportsfloat, nsisupportsdouble: double, nsisupportsprtime: datetime.iso8601, nsiinput
stream: base64, nsisupportsarray: array, nsidictionary: struct note that both nsisupportsarray and nsidictionary can only hold any of the supported input types.
The libmime module
one of the methods provided by this parser is the ability to emit an html representation of the data
stream.
Initialization and Destruction - Plugins
you can assign more than one mime type to a plug-in, which could potentially allow the plug-in to respond to data
streams of different types with different interfaces and behavior.
AnalyserNode - Web APIs
it is an audionode that passes the audio
stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
AudioBufferSourceNode - Web APIs
to play sounds which require accurate timing but must be
streamed from the network or played from disk, use a audioworkletnode to implement its playback.
AudioContext.getOutputTimestamp() - Web APIs
the two values are as follows: audiotimestamp.contexttime: the time of the sample frame currently being rendered by the audio output device (i.e., output audio
stream position), in the same units and origin as the context's audiocontext.currenttime.
AudioListener - Web APIs
in a previous version of the specification, the dopplerfactor and speedofsound properties and the setposition() method could be used to control the doppler effect applied to audiobuffersourcenodes connected down
stream — these would be pitched up and down according to the relative speed of the pannernode and the audiolistener.
AudioTrackList - Web APIs
usage notes in addition to being able to obtain direct access to the audio tracks present on a media element, audiotracklist lets you set event handlers on the addtrack and removetrack events, so that you can detect when tracks are added to or removed from the media element's
stream.
BaseAudioContext.createBiquadFilter() - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.setvalueattime(1000, audioctx.currenttime); biquadfilter.gain.setvalueattime(25, audioctx.currenttime);...
BaseAudioContext.createGain() - Web APIs
mute">mute button</button> </div> var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); var gainnode = audioctx.creategain(); var mute = document.queryselector('.mute'); var source; if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( // constraints - only audio needed for this app { audio: true }, // success callback function(
stream) { source = audioctx.createmedia
streamsource(
stream); }, // error callback function(err) { console.log('the following gum error occured: ' + err); } ); } else { console.log('getusermedia not supported on your browser!'); } source.connect(gainnode); gainnode.connect(audioctx.destination); ...
BiquadFilterNode.Q - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.value = 1000; biquadfilter.gain.value = 25; biquadfilter.type = "peaking"; biquadfilter.frequency.valu...
BiquadFilterNode.detune - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.value = 1000; biquadfilter.gain.value = 25; biquadfilter.detune.value = 100; specifications ...
BiquadFilterNode.frequency - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.value = 1000; biquadfilter.gain.value = 25; specifications specification status comme...
BiquadFilterNode.gain - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.value = 1000; biquadfilter.gain.value = 25; specifications specification status comme...
BiquadFilterNode.getFrequencyResponse() - Web APIs
example in the following example we are using a biquad filter on a media
stream (for the full demo, see our
stream-source-buffer demo live, or read the source.) as part of this demo, we get the frequency responses for this biquad filter, for five sample frequencies.
BiquadFilterNode.type - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.value = 1000; biquadfilter.gain.value = 25; specifications specification status comme...
BiquadFilterNode - Web APIs
new (window.audiocontext || window.webkitaudiocontext)(); //set up the different audio nodes we will use for the app var analyser = audioctx.createanalyser(); var distortion = audioctx.createwaveshaper(); var gainnode = audioctx.creategain(); var biquadfilter = audioctx.createbiquadfilter(); var convolver = audioctx.createconvolver(); // connect the nodes together source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.setvalueattime(1000, audioctx.currenttime); biquadfilter.gain.setvalueattime(25, audioctx.currenttime);...
BlobEvent.BlobEvent() - Web APIs
specifications specification status comment media
stream recordingthe definition of 'blobevent: blobevent' in that specification.
BlobEvent.data - Web APIs
syntax associatedblob = blobevent.data specifications specification status comment media
stream recordingthe definition of 'blobevent.data' in that specification.
BlobEvent.timecode - Web APIs
specifications specification status comment media
stream recordingthe definition of 'timecode' in that specification.
BlobEvent - Web APIs
specifications specification status comment media
stream recordingthe definition of 'blobevent' in that specification.
Body.blob() - Web APIs
the blob() method of the body mixin takes a response
stream and reads it to completion.
Body.json() - Web APIs
the json() method of the body mixin takes a response
stream and reads it to completion.
Body.text() - Web APIs
the text() method of the body mixin takes a response
stream and reads it to completion.
ChannelMergerNode - Web APIs
gainnode.connect(merger, 0, 1); splitter.connect(merger, 1, 0); var dest = ac.createmedia
streamdestination(); // because we have used a channelmergernode, we now have a stereo // media
stream we can use to pipe the web audio graph to webrtc, // mediarecorder, etc.
ChannelSplitterNode - Web APIs
gainnode.connect(merger, 0, 1); splitter.connect(merger, 1, 0); var dest = ac.createmedia
streamdestination(); // because we have used a channelmergernode, we now have a stereo // media
stream we can use to pipe the web audio graph to webrtc, // mediarecorder, etc.
CloseEvent - Web APIs
[ref] 1014 bad gateway the server was acting as a gateway or proxy and received an invalid response from the up
stream server.
ConstrainBoolean - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'constrainboolean' in that specification.
ConstrainDOMString - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'constraindomstring' in that specification.
ConstrainDouble - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'constraindouble' in that specification.
ConstrainULong - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'constrainulong' in that specification.
Content Index API - Web APIs
examples could be a news website prefetching the latest articles in the background, or a content
streaming app registering downloaded content.
DoubleRange - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'doublerange' in that specification.
Event - Web APIs
ngevent beforeinputevent beforeunloadevent blobevent clipboardevent closeevent compositionevent cssfontfaceloadevent customevent devicelightevent devicemotionevent deviceorientationevent deviceproximityevent domtransactionevent dragevent editingbeforeinputevent errorevent fetchevent focusevent gamepadevent hashchangeevent idbversionchangeevent inputevent keyboardevent media
streamevent messageevent mouseevent mutationevent offlineaudiocompletionevent overconstrainederror pagetransitionevent paymentrequestupdateevent pointerevent popstateevent progressevent relatedevent rtcdatachannelevent rtcidentityerrorevent rtcidentityevent rtcpeerconnectioniceevent sensorevent storageevent svgevent svgzoomevent timeevent touchevent trackevent transitionevent uie...
FetchEvent - Web APIs
used to notify the browser of tasks that extend beyond the returning of a response, such as
streaming and caching.
File.type - Web APIs
"image/png" for png images example <input type="file" multiple onchange="showtype(this)"> function showtype(fileinput) { var files = fileinput.files; for (var i = 0; i < files.length; i++) { var name = files[i].name; var type = files[i].type; alert("filename: " + name + " , type: " + type); } } note: based on the current implementation, browsers won't actually read the byte
stream of a file to determine its media type.
GainNode.gain - Web APIs
mute">mute button</button> </div> var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); var gainnode = audioctx.creategain(); var mute = document.queryselector('.mute'); var source; if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( // constraints - only audio needed for this app { audio: true }, // success callback function(
stream) { source = audioctx.createmedia
streamsource(
stream); }, // error callback function(err) { console.log('the following gum error occured: ' + err); } ); } else { console.log('getusermedia not supported on your browser!'); } source.connect(gainnode); gainnode.connect(audioctx.destination); ...
GainNode - Web APIs
mute">mute button</button> </div> var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); var gainnode = audioctx.creategain(); var mute = document.queryselector('.mute'); var source; if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( // constraints - only audio needed for this app { audio: true }, // success callback function(
stream) { source = audioctx.createmedia
streamsource(
stream); }, // error callback function(err) { console.log('the following gum error occured: ' + err); } ); } else { console.log('getusermedia not supported on your browser!'); } source.connect(gainnode); gainnode.connect(audioctx.destination); ...
HTMLMediaElement.autoplay - Web APIs
a media element whose source is a media
stream and whose autoplay property is true will begin playback when it becomes active (that is, when media
stream.active becomes true).
HTMLMediaElement.currentTime - Web APIs
for media without a known duration—such as media being
streamed live—it's possible that the browser may not be able to obtain parts of the media that have expired from the media buffer.
HTMLMediaElement.play() - Web APIs
notsupportederror the media source (which may be specified as a media
stream, mediasource, blob, or file, for example) doesn't represent a supported media format.
HTMLVideoElement.msZoom - Web APIs
for instance, if the layout space for the video tag is a 4:3 aspect ratio, but the
stream coming in is in 16:9 aspect ratio, the mszoom option can be used to render the 16:9 video in 4:3 aspect ratio.
IIRFilterNode.getFrequencyResponse() - Web APIs
examples in the following example we are using an iir filter on a media
stream (for a complete full demo, see our
stream-source-buffer demo live, or read its source.) as part of this demo, we get the frequency responses for this iir filter, for five sample frequencies.
Keyboard API - Web APIs
} keyboard locking richly interactive web pages, games, and remote-
streaming experiences often require access to special keys and keyboard shortcuts while in full-screen mode.
MediaCapabilities - Web APIs
the information can be used to serve optimal media
streams to the user and determine if playback should be smooth and power efficient.
MediaDevices: devicechange event - Web APIs
e example you can use the devicechange event in an addeventlistener method: navigator.mediadevices.addeventlistener('devicechange', function(event) { updatedevicelist(); }); or use the ondevicechange event handler property: navigator.mediadevices.ondevicechange = function(event) { updatedevicelist(); } specifications specification status media capture and
streamsthe definition of 'devicechange' in that specification.
MediaDevices.getSupportedConstraints() - Web APIs
navigator.mediadevices.getsupportedconstraints(); for (let constraint in supportedconstraints) { if (supportedconstraints.hasownproperty(constraint)) { let elem = document.createelement("li"); elem.innerhtml = "<code>" + constraint + "</code>"; constraintlist.appendchild(elem); } } result specifications specification status comment media capture and
streamsthe definition of 'getsupportedconstraints()' in that specification.
MediaError.code - Web APIs
media_err_src_not_supported 4 the associated resource or media provider object (such as a media
stream) has been found to be unsuitable.
MediaError - Web APIs
media_err_src_not_supported 4 the associated resource or media provider object (such as a media
stream) has been found to be unsuitable.
MediaPositionState - Web APIs
this should always be a positive number, with positive infinity (infinity) indicating media without a defined end, such as a live
stream.
MediaRecorder.ignoreMutedMedia - Web APIs
the ignoremutedmedia property of the mediarecorder interface indicates whether the mediarecorder instance will record input, when the input media
streamtrack is muted.
MediaRecorder.onpause - Web APIs
specifications specification status comment media
stream recordingthe definition of 'mediarecorder.onpause' in that specification.
MediaRecorder.onstart - Web APIs
specifications specification status comment media
stream recordingthe definition of 'mediarecorder.onstart' in that specification.
MediaRecorder.state - Web APIs
specifications specification status comment media
stream recordingthe definition of 'mediarecorder.state' in that specification.
MediaRecorder.stop() - Web APIs
specifications specification status comment media
stream recordingthe definition of 'mediarecorder.stop()' in that specification.
MediaSource.activeSourceBuffers - Web APIs
a simple example written by nick desaulniers (view the full demo live, or download the source for further investigation.) function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); console.log(mediasource.activesourcebuffers); // will contain the source buffer that was added above, // as it is selected for playing in the video player video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; ...
MediaSource.addSourceBuffer() - Web APIs
ce.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; specifications specification status comment media source extensionsthe definition of 'addsourcebuffer()' in that specification.
MediaSource.duration - Web APIs
a simple example written by nick desaulniers (view the full demo live, or download the source for further investigation.) function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); mediasource.duration = 120; video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; ...
MediaSource.isTypeSupported() - Web APIs
ce.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; specifications specification status comment media source extensionsthe definition of 'istypesupported()' in that specification.
MediaSource.sourceBuffers - Web APIs
a simple example written by nick desaulniers (view the full demo live, or download the source for further investigation.) function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endof
stream(); console.log(mediasource.sourcebuffers); // will contain the source buffer that was added above video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; ...
MediaTrackSettings.logicalSurface - Web APIs
syntax islogicalsurface = mediatracksettings.logicalsurface; value a boolean value which is true if the video track in the
stream of captured video is taken from a logical display surface.
MediaTrackSupportedConstraints.aspectRatio - Web APIs
"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().aspectratio) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'aspectratio' in that specification.
MediaTrackSupportedConstraints.autoGainControl - Web APIs
/div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().autogaincontrol) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'autogaincontrol' in that specification.
MediaTrackSupportedConstraints.channelCount - Web APIs
ult"> </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.
MediaTrackSupportedConstraints.deviceId - Web APIs
"result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().deviceid) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'deviceid' in that specification.
MediaTrackSupportedConstraints.echoCancellation - Web APIs
> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().echocancellation) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'echocancellation' in that specification.
MediaTrackSupportedConstraints.facingMode - Web APIs
<div id="result"> </div> css #result { font: 14px "arial", sans-serif; } javascript let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().facingmode) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'facingmode' in that specification.
MediaTrackSupportedConstraints.groupId - Web APIs
="result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().groupid) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'groupid' in that specification.
MediaTrackSupportedConstraints.height - Web APIs
d="result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().height) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'height' in that specification.
MediaTrackSupportedConstraints.latency - Web APIs
="result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().latency) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'latency' in that specification.
MediaTrackSupportedConstraints.noiseSuppression - Web APIs
div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().noisesuppression) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'noisesuppression' in that specification.
MediaTrackSupportedConstraints.sampleRate - Web APIs
esult"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().samplerate) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'samplerate' in that specification.
MediaTrackSupportedConstraints.sampleSize - Web APIs
esult"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().samplesize) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'samplesize' in that specification.
MediaTrackSupportedConstraints.width - Web APIs
id="result"> </div> css content #result { font: 14px "arial", sans-serif; } javascript content let result = document.getelementbyid("result"); if (navigator.mediadevices.getsupportedconstraints().width) { result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } result specifications specification status comment media capture and
streamsthe definition of 'width' in that specification.
MediaTrackSupportedConstraints - Web APIs
the mediatracksupportedconstraints dictionary establishes the list of constrainable properties recognized by the user agent or browser in its implementation of the media
streamtrack object.
Using the Media Capabilities API - Web APIs
support for getting real-time feedback about the playback of media, so your code can make informed decisions about adapting the
stream's quality or other settings to manage the user's perceived media performance and quality.
Navigator.mediaDevices - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'navigatorusermedia.mediadevices' in that specification.
Navigator.requestMediaKeySystemAccess() - Web APIs
the navigator.requestmediakeysystemaccess() method returns a promise which delivers a mediakeysystemaccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media
stream.
Navigator - Web APIs
navigator.getusermedia() after having prompted the user for permission, returns the audio or video
stream associated to a camera or microphone on the local computer.
OverconstrainedError.constraint - Web APIs
syntax var constraint = overconstrainederror.constraint; value a string specifications specification status comment media capture and
streamsthe definition of 'constraint' in that specification.
PannerNode - Web APIs
in a previous version of the specification, the pannernode had a velocity that could pitch up or down audiobuffersourcenodes connected down
stream.
imageWidth - Web APIs
specifications specification status comment media
stream image capturethe definition of 'imagewidth' in that specification.
RTCConfiguration - Web APIs
constants rtcbundlepolicy enum the rtcbundlepolicy enum defines string constants which are used to request a specific policy for gathering ice candidates if the remote peer isn't "bundle-aware" (compatible with the sdp bundle standard for bundling multiple media
streams on a single transport link).
RTCDataChannel: error event - Web APIs
examples // strings for each of the sctp cause codes found in rfc // 4960, section 3.3.10: // https://tools.ietf.org/html/rfc4960#section-3.3.10 const sctpcausecodes = [ "no sctp error", "invalid
stream identifier", "missing mandatory parameter", "stale cookie error", "sender is out of resource (i.e., memory)", "unable to resolve address", "unrecognized sctp chunk type received", "invalid mandatory parameter", "unrecognized parameters", "no user data (sctp data chunk has no data)", "cookie received while shutting down", "restart of an association with new addresses", "user-...
RTCDataChannel - Web APIs
en the data channel was created, then this property's value is "" (the empty string).readystate read only the read-only rtcdatachannel property readystate returns an enum of type rtcdatachannelstate which indicates the state of the data channel's underlying data connection.reliable read only the read-only rtcdatachannel property reliable indicates whether or not the data channel is reliable.
stream read only the deprecated (and never part of the official specification) read-only rtcdatachannel property
stream returns an id number (between 0 and 65,535) which uniquely identifies the rtcdatachannel.event handlersalso inherits event handlers from: eventtargetonbufferedamountlow the rtcdatachannel.onbufferedamountlow property is an eventhandler which specifies a function the browser calls ...
RTCIceCandidate - Web APIs
sdpmid read only a domstring specifying the candidate's media
stream identification tag which uniquely identifies the media
stream within the component with which the candidate is associated, or null if no such association exists.
RTCIceCandidateInit - Web APIs
sdpmid optional the identification tag of the media
stream with which the candidate is associated, or null if there is no associated media
stream.
RTCPeerConnection.createOffer() - Web APIs
the sdp offer includes information about any media
streamtracks 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.
RTCPeerConnection.getReceivers() - Web APIs
each rtp receiver manages the reception and decoding of data for a media
streamtrack on an rtcpeerconnection syntax var receivers = rtcpeerconnection.getreceivers(); return value an array of rtcrtpreceiver objects, one for each track on the connection.
RTCPeerConnection.removeTrack() - Web APIs
var pc, sender; navigator.getusermedia({video: true}, function(
stream) { pc = new rtcpeerconnection(); var track =
stream.getvideotracks()[0]; sender = pc.addtrack(track,
stream); }); document.getelementbyid("closebutton").addeventlistener("click", function(event) { pc.removetrack(sender); pc.close(); }, false); specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of ...
RTCRtpContributingSource - Web APIs
timestamp optional a domhighrestimestamp indicating the most recent time at which a frame originating from this source was delivered to the receiver's media
streamtrack specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpcontributingsource' in that specification.
RTCRtpSender.getStats() - Web APIs
the returned rtcstatsreport accumulates the statistics for all of the
streams being sent using the rtcrtpsender, as well as the statistics for any dependencies those
streams have.
RTCRtpSender.setParameters() - Web APIs
the setparameters() method of the rtcrtpsender interface applies changes the configuration of sender's track, which is the media
streamtrack for which the rtcrtpsender is responsible.
RTCRtpTransceiver.receiver - Web APIs
the read-only receiver property of webrtc's rtcrtptransceiver interface indicates the rtcrtpreceiver responsible for receiving and decoding incoming media data for the transceiver's
stream.
RTCRtpTransceiver.sender - Web APIs
the read-only sender property of webrtc's rtcrtptransceiver interface indicates the rtcrtpsender responsible for encoding and sending outgoing media data for the transceiver's
stream.
RTCRtpTransceiver.stop() - Web APIs
usage notes when you call stop() on a transceiver, the sender immediately stops sending media and each of its rtp
streams are closed using the rtcp "bye" message.
RTCRtpTransceiverInit - Web APIs
streams optional a list of media
stream objects to add to the transceiver'srtcrtpreceiver; when the remote peer's rtcpeerconnection's track event occurs, these are the
streams that will be specified by that event.
RTCSctpTransport.state - Web APIs
the state read-only property of the rtcsctptransport interface provides information which describes a
stream control transmission protocol (sctp) transport state.
RTCSctpTransport - Web APIs
the rtcsctptransport interface provides information which describes a
stream control transmission protocol (sctp) transport.
RTCSessionDescription() - Web APIs
navigator.getusermedia({video: true}, function(
stream) { pc.onadd
stream({
stream:
stream}); // adding a local
stream won't trigger the onadd
stream callback pc.add
stream(
stream); pc.createoffer(function(offer) { pc.setlocaldescription(new rtcsessiondescription(offer), function() { // send the offer to a server to be forwarded to the friend you're calling.
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 rtcdatachannel.
RTCTrackEvent.receiver - Web APIs
syntax var rtpreceiver = trackevent.receiver; value the rtcrtptransceiver which pairs the receiver with a sender and other properties which establish a single bidirectional srtp
stream for use by the track associated with the rtctrackevent.
RTCTrackEvent.transceiver - Web APIs
syntax var rtptransceiver = trackevent.transceiver; value the rtcrtptransceiver which pairs the receiver with a sender and other properties which establish a single bidirectional srtp
stream for use by the track associated with the rtctrackevent.
RTCTrackEventInit.receiver - Web APIs
syntax var trackeventinit = { receiver: rtpreceiver, track: media
streamtrack,
streams: [video
stream], transceiver: rtptransceiver }; var rtpreceiver = trackeventinit.receiver; value the rtcrtptransceiver which pairs the receiver with a sender and other properties which establish a single bidirectional srtp
stream for use by the track associated with the rtctrackevent.
RTCTrackEventInit.transceiver - Web APIs
syntax var trackeventinit = { receiver: rtpreceiver, track: media
streamtrack,
streams: [video
stream], transceiver: rtptransceiver }; var rtptransceiver = trackeventinit.transceiver; value the rtcrtptransceiver which pairs the receiver with a sender and other properties which establish a single bidirectional srtp
stream for use by the track associated with the rtctrackevent.
Request() - Web APIs
body: any body that you want to add to your request: this can be a blob, buffersource, formdata, urlsearchparams, usvstring, or readable
stream object.
Response() - Web APIs
this can be null (which is the default value), or one of: blob buffersource formdata readable
stream urlsearchparams usvstring init optional an options object containing any custom settings that you want to apply to the response, or an empty object (which is the default value).
SourceBuffer.updating - Web APIs
whether an sourcebuffer.appendbuffer(), sourcebuffer.append
stream(), or sourcebuffer.remove() operation is currently in progress.
StereoPannerNode.StereoPannerNode() - Web APIs
the stereopannernode() constructor of the web audio api creates a new stereopannernode object which is an audionode that represents a simple stereo panner node that can be used to pan an audio
stream left or right.
TextDecoder.prototype.decode() - Web APIs
options optional is a textdecodeoptions dictionary with the property:
stream a boolean flag indicating that additional data will follow in subsequent calls to decode().
TextTrackList - Web APIs
usage notes in addition to being able to obtain direct access to the text tracks present on a media element, texttracklist lets you set event handlers on the addtrack and removetrack events, so that you can detect when tracks are added to or removed from the media element's
stream.
Using Touch Events - Web APIs
however, devices with touch screens (especially portable devices) are main
stream and web applications can either directly process touch-based input by using touch events or the application can use interpreted mouse events for the application input.
TrackDefault - Web APIs
audio, video, or text track.) trackdefault.byte
streamtrackid read only returns the id of the specific track that the sourcebuffer should apply to.
ULongRange - Web APIs
specifications specification status comment media capture and
streamsthe definition of 'ulongrange' in that specification.
VideoTrackList - Web APIs
usage notes in addition to being able to obtain direct access to the video tracks present on a media element, videotracklist lets you set event handlers on the addtrack and removetrack events, so that you can detect when tracks are added to or removed from the media element's
stream.
WebGL best practices - Web APIs
ync, 0, 10); gl.deletesync(sync); gl.bindbuffer(target, buffer); gl.getbuffersubdata(target, srcbyteoffset, dstbuffer, dstoffset, length); gl.bindbuffer(target, null); return dest; } async function readpixelsasync(gl, x, y, w, h, format, type, dest) { const buf = gl.createbuffer(); gl.bindbuffer(gl.pixel_pack_buffer, buf); gl.bufferdata(gl.pixel_pack_buffer, dest.bytelength, gl.
stream_read); gl.readpixels(x, y, w, h, format, type, 0); gl.bindbuffer(gl.pixel_pack_buffer, null); await getbuffersubdataasync(gl, gl.pixel_pack_buffer, buf, 0, dest); gl.deletebuffer(buf); return dest; } canvas and webgl-related some tips are relevent to webgl, but deal with other apis.
WebRTC coding guide - Web APIs
how do you create a web application that uses two-way video or data
streams without having to do all the hard work of compressing frames, building
streams, and so forth by yourself?
Using the Web Audio API - Web APIs
note: if you just want to process audio data, for instance, buffer and
stream it but not play it, you might want to look into creating an offlineaudiocontext.
Visualizations with Web Audio API - Web APIs
data from your audio source, you need an analysernode, which is created using the audiocontext.createanalyser() method, for example: var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); var analyser = audioctx.createanalyser(); this node is then connected to your audio source at some point between your source and your destination, for example: source = audioctx.createmedia
streamsource(
stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(audioctx.destination); note: you don't need to connect the analyser's output to another node for it to work, as long as the input is connected to the source, either directly or via another node.
Using the Web Speech API - Web APIs
browser support support for web speech api speech synthesis is still getting there across main
stream browsers, and is currently limited to the following: firefox desktop and mobile support it in gecko 42+ (windows)/44+, without prefixes, and it can be turned on by flipping the media.webspeech.synth.enabled flag to true in about:config.
XMLHttpRequest.response - Web APIs
ms-
stream the response is part of a
streaming download; this response type is only allowed for download requests, and is only supported by internet explorer.
XMLHttpRequest.responseType - Web APIs
ms-
stream the response is part of a
streaming download; this response type is only allowed for download requests, and is only supported by internet explorer.
XMLSerializer - Web APIs
serializeto
stream() the subtree rooted by the specified element is serialized to a byte
stream using the character set specified.
WAI-ARIA Roles - Accessibility
a feed enables screen readers to use the browse mode reading cursor to both read and scroll through a
stream of rich content that may continue scrolling infinitely by loading more content as the user reads.aria: figure rolethe aria figure role can be used to identify a figure inside page content where appropriate semantics do not already exist.
Accessibility documentation index - Accessibility
a feed enables screen readers to use the browse mode reading cursor to both read and scroll through a
stream of rich content that may continue scrolling infinitely by loading more content as the user reads.
@font-face - CSS: Cascading Style Sheets
ght>; ] | [ font-style: <font-style>; ] }where <family-name> = <string> | <custom-ident>+ examples specifying a downloadable font this example simply specifies a downloadable font to use, applying it to the entire body of the document: view the live example <html> <head> <title>web font sample</title> <style type="text/css" media="screen, print"> @font-face { font-family: "bit
stream vera serif bold"; src: url("https://mdn.mozillademos.org/files/2468/verasebd.ttf"); } body { font-family: "bit
stream vera serif bold", serif } </style> </head> <body> this is bit
stream vera serif bold.
line-height - CSS: Cascading Style Sheets
typeeither number or length formal syntax normal | <number> | <length> | <percentage> examples basic example /* all rules below have the same resultant line height */ div { line-height: 1.2; font-size: 10pt; } /* number/unitless */ div { line-height: 1.2em; font-size: 10pt; } /* length */ div { line-height: 120%; font-size: 10pt; } /* percentage */ div { font: 10pt/1.2 georgia,"bit
stream charter",serif; } /* font shorthand */ it is often more convenient to set line-height by using the font shorthand as shown above, but this requires the font-family property to be specified as well.
Demos of open web technologies
bubblemenu (visual effects and interaction) html transformations using foreignobject (visual effects and transforms) phonetics guide (interactive) 3d objects demo (interactive) blobular (interactive) video embedded in svg (or use the local download) summer html image map creator (source code) video video 3d animation "mozilla constantly evolving" video 3d animation "floating dance"
streaming anime, movie trailer and interview billy's browser firefox flick virtual barber shop transformers movie trailer a scanner darkly movie trailer (with built in controls) events firing and volume control dragable and sizable videos 3d graphics webgl web audio fireworks ioquake3 (source code) escher puzzle (source code) kai 'opua (source code) virtual reality the polar sea (sou...
Event reference
devicechange event media capture and
streams a media device such as a camera, microphone, or speaker is connected or removed from the system.
Guide to Web APIs - Developer guides
nter stylescss font loading api cssomcanvas apichannel 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 capture and
streamsmedia session apimedia source extensions media
stream recordingnnavigation timingnetwork information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access api
streams ttouch eventsuurl apivvibration...
504 Gateway Timeout - HTTP
the hypertext transfer protocol (http) 504 gateway timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the up
stream server that it needed in order to complete the request.
WebAssembly.Global() constructor - JavaScript
got: ${got}<br>`; } asserteq("webassembly.global exists", typeof webassembly.global, "function"); const global = new webassembly.global({value:'i32', mutable:true}, 0); webassembly.instantiate
streaming(fetch('global.wasm'), { js: { global } }) .then(({instance}) => { asserteq("getting initial value from wasm", instance.exports.getglobal(), 0); global.value = 42; asserteq("getting js-updated value from wasm", instance.exports.getglobal(), 42); instance.exports.incglobal(); asserteq("getting wasm-updated value from js", global.value, 43); }); note: you can see the example...
WebAssembly.Global - JavaScript
got: ${got}<br>`; } asserteq("webassembly.global exists", typeof webassembly.global, "function"); const global = new webassembly.global({value:'i32', mutable:true}, 0); webassembly.instantiate
streaming(fetch('global.wasm'), { js: { global } }) .then(({instance}) => { asserteq("getting initial value from wasm", instance.exports.getglobal(), 0); global.value = 42; asserteq("getting js-updated value from wasm", instance.exports.getglobal(), 42); instance.exports.incglobal(); asserteq("getting wasm-updated value from js", global.value, 43); }); note: you can see the example...
WebAssembly.Instance - JavaScript
imported_func: function(arg) { console.log(arg); } } }; fetch('simple.wasm').then(response => response.arraybuffer() ).then(bytes => { let mod = new webassembly.module(bytes); let instance = new webassembly.instance(mod, importobject); instance.exports.exported_func(); }) the preferred way to get an instance is asynchronously, for example using the webassembly.instantiate
streaming() function like this: const importobject = { imports: { imported_func: function(arg) { console.log(arg); } } }; webassembly.instantiate
streaming(fetch('simple.wasm'), importobject) .then(obj => obj.instance.exports.exported_func()); this also demonstrates how the exports property is used to access exported functions.
WebAssembly.Module() constructor - JavaScript
syntax important: since compilation for large modules can be expensive, developers should only use the module() constructor when synchronous compilation is absolutely required; the asynchronous webassembly.compile
streaming() method should be used at all other times.
WebAssembly.Module.customSections() - JavaScript
webassembly.compile
streaming(fetch('simple-name-section.wasm')) .then(function(mod) { var namesections = webassembly.module.customsections(mod, "name"); if (namesections.length != 0) { console.log("module contains a name section"); console.log(namesections[0]); }; }); specifications specification webassembly javascript interfacethe definition of 'customsections()' in that specificatio...
WebAssembly.Module.imports() - JavaScript
webassembly.compile
streaming(fetch('simple.wasm')) .then(function(mod) { var imports = webassembly.module.imports(mod); console.log(imports[0]); }); the output looks like this: { module: "imports", name: "imported_func", kind: "function" } specifications specification webassembly javascript interfacethe definition of 'imports()' in that specification.
WebAssembly.Table.prototype.set() - JavaScript
var tbl = new webassembly.table({initial:2, element:"anyfunc"}); console.log(tbl.length); console.log(tbl.get(0)); console.log(tbl.get(1)); we then create an import object that contains a reference to the table: var importobj = { js: { tbl:tbl } }; finally, we load and instantiate a wasm module (table2.wasm) using the webassembly.instantiate
streaming(), log the table length, and invoke the two referenced functions that are now stored in the table (the table2.wasm module (see text representation) adds two function references to the table, both of which print out a simple value): webassembly.instantiate
streaming(fetch('table2.wasm'), importobject) .then(function(obj) { console.log(tbl.length); console.log(tbl.get(0)()); console.log(tb...
WebAssembly.compile() - JavaScript
var worker = new worker("wasm_worker.js"); fetch('simple.wasm').then(response => response.arraybuffer() ).then(bytes => webassembly.compile(bytes) ).then(mod => worker.postmessage(mod) ); note: you'll probably want to use webassembly.compile
streaming() in most cases, as it is more efficient than compile().
Lexical grammar - JavaScript
a semicolon is inserted at the end, when the end of the input
stream of tokens is detected and the parser is unable to parse the single input
stream as a complete program.
Mobile first - Progressive web apps (PWAs)
first things first — mobile as a default you may think that concentrating on the mobile experience first sounds pointless, as we are more used to dealing with desktop sites, and we surely need to consider the full gamut of features for the overall experience across desktop, mobile, etc., before then paring it down to a mobile experience that is simpler, more
streamlined, or whatever.