Search completed in 1.15 seconds.
RTCRtpReceiver - Web APIs
the rtcrtp
receiver interface of the webrtc api manages the reception and decoding of data for a mediastreamtrack on an rtcpeerconnection.
... properties rtcrtp
receiver.track read only returns the mediastreamtrack associated with the current rtcrtp
receiver instance.
... rtcrtp
receiver.transport read only returns the rtcdtlstransport instance over which the media for the
receiver's track is received.
...And 6 more matches
RTCRtpReceiver.transport - Web APIs
the read-only transport property of an rtcrtp
receiver object provides the rtcdtlstransport object used to interact with the underlying transport over which the
receiver is exchanging real-time transport control protocol (rtcp) packets.
... this transport is responsible for receiving the data for the media on the
receiver's track.
... syntax let transport = rtcrtp
receiver.transport; value an rtcdtlstransport object representing the underlying transport being used by the
receiver to exchange packets with the remote peer, or null if the
receiver isn't yet connected to a transport.
...And 4 more matches
RTCRtpReceiver.getCapabilities() static function - Web APIs
the static function rtcrtp
receiver.getcapabilities() returns an rtcrtpcapabilities object describing the codecs and capabilities supported by rtcrtp
receivers on the current device.
... syntax let rtpcapabilities = rtcrtp
receiver.getcapabilities(kind); parameters kind a domstring indicating the type of media for which you wish to get the device's capability to receive.
... description as a static function, this is always called using the form: capabilities = rtcrtp
receiver.getcapabilities("audio"); the returned set of capabilities is the most optimistic possible list.
...And 3 more matches
RTCPeerConnection.getReceivers() - Web APIs
the rtcpeerconnection.get
receivers() method returns an array of rtcrtp
receiver objects, each of which represents one rtp
receiver.
... each rtp
receiver manages the reception and decoding of data for a mediastreamtrack on an rtcpeerconnection syntax var
receivers = rtcpeerconnection.get
receivers(); return value an array of rtcrtp
receiver objects, one for each track on the connection.
... the array is empty if there are no rtp
receivers on the connection.
...And 2 more matches
RTCRtpReceiver.getParameters() - Web APIs
the getparameters() method of the rtcrtp
receiver interface returns an rtcrtpreceiveparameters object describing the current configuration for the encoding and transmission of media on the
receiver's track.
... syntax let rtpreceiveparameters = rtp
receiver.getparameters(); parameters none.
... return value an rtcrtpreceiveparameters object indicating the current configuration of the
receiver.
...And 2 more matches
RTCRtpReceiver.getStats() - Web APIs
the rtcrtp
receiver method getstats() asynchronously requests an rtcstatsreport object which provides statistics about incoming traffic on the owning rtcpeerconnection, returning a promise whose fulfillment handler will be called once the results are available.
... syntax var promise = rtcrtp
receiver.getstats(); return value a javascript promise which is fulfilled once the statistics are available.
... the returned statistics include those from all streams which are coming in through the rtcrtp
receiver, as well as any of their dependencies.
...And 2 more matches
RTCTrackEvent.receiver - Web APIs
the read-only
receiver property of the rtctrackevent interface indicates the rtcrtp
receiver which is used to receive data containing media for the track to which the event refers.
... syntax var rtp
receiver = 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.
... note: the transceiver includes its own
receiver property, which will always be the same rtcrtp
receiver as this one.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtctrackevent.
receiver' in that specification.
RTCTrackEventInit.receiver - Web APIs
the rtctrackeventinit dictionary's
receiver property specifies the rtcrtp
receiver associated with the event.
... syntax var trackeventinit = {
receiver: rtp
receiver, track: mediastreamtrack, streams: [videostream], transceiver: rtptransceiver }; var rtp
receiver = 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.
... note: the transceiver includes its own
receiver property, which will always be the same rtcrtp
receiver as this one.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtctrackeventinit.
receiver' in that specification.
RTCInboundRtpStreamStats.receiverId - Web APIs
the
receiverid property of the rtcinboundrtpstreamstats dictionary specifies the id of the rtcaudio
receiverstats or rtcvideo
receiverstats object representing the rtcrtp
receiver receiving the stream.
... syntax var
receiverstatsid = rtcinboundrtpstreamstats.
receiverid; value a domstring which contains the id of the rtcaudio
receiverstats or rtcvideo
receiverstats object which provides information about the rtcrtp
receiver which is receiving the streamed media.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtpstreamstats.
receiverid' in that specification.
RTCRtpTransceiver.receiver - Web APIs
the read-only
receiver property of webrtc's rtcrtptransceiver interface indicates the rtcrtp
receiver responsible for receiving and decoding incoming media data for the transceiver's stream.
... syntax var rtp
receiver = rtcrtptransceiver.
receiver; value an rtcrtp
receiver object which is responsible for receiving and decoding incoming media data whose media id is the same as the current value of mid.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtptransceiver.
receiver' in that specification.
RTCRtpReceiver.getContributingSources() - Web APIs
the getcontributingsources() method of the rtcrtp
receiver interface returns an array of rtcrtpcontributingsource instances, each corresponding to one csrc (contributing source) identifier received by the current rtcrtp
receiver in the last ten seconds.
... syntax var rtcrtpcontributingsources = rtcrtp
receiver.getcontributingsources() parameters none.
RTCRtpReceiver.getSynchronizationSources() - Web APIs
the getsynchronizationsources() method of the rtcrtp
receiver interface returns an array of rtcrtpcontributingsource instances, each corresponding to one ssrc (synchronization source) identifier received by the current rtcrtp
receiver in the last ten seconds.
... syntax var rtcrtpcontributingsources = rtcrtp
receiver.getcontributingsources() parameters none.
RTCRtpReceiver.track - Web APIs
the track read-only property of the rtcrtp
receiver interface returns the mediastreamtrack associated with the current rtcrtp
receiver instance.
... syntax var mediastreamtrack = rtcrtp
receiver.track value a mediastreamtrack instance.
Index - Web APIs
it contains information about the fetch, including the request and how the
receiver will treat the response.
... 3369 rtcinboundrtpstreamstats api, dictionary, rtcinboundrtpstreamstats, rtp, reference, statistics, stats, local,
receiver the webrtc api's rtcinboundrtpstreamstats dictionary, based upon rtcreceivedrtpstreamstats and rtcstats, contains statistics related to the receiving end of an rtp stream on the local end of the rtcpeerconnection.
... 3373 rtcinboundrtpstreamstats.fecpacketsreceived the fecpacketsreceived property of the rtcinboundrtpstreamstats dictionary indicates how many forward error correction (fec) packets have been received by this rtp
receiver from the remote peer.
...And 36 more matches
Using DTMF with WebRTC - Web APIs
let dialstring = "12024561111"; let callerpc = null; let
receiverpc = null; let dtmfsender = null; let hasaddtrack = false; let mediaconstraints = { audio: true, video: false }; let offeroptions = { offertoreceiveaudio: 1, offertoreceivevideo: 0 }; let dialbutton = null; let logelement = null; these are, in order: dialstring the dtmf string the caller will send when the "dial" button is clicked.
... callerpc and
receiverpc the rtcpeerconnection objects representing the caller and the
receiver, respectively.
... hasaddtrack = (callerpc.addtrack !== undefined); callerpc.onicecandidate = handlecallericeevent; callerpc.onnegotiationneeded = handlecallernegotiationneeded; callerpc.oniceconnectionstatechange = handlecallericeconnectionstatechange; callerpc.onsignalingstatechange = handlecallersignalingstatechangeevent; callerpc.onicegatheringstatechange = handlecallergatheringstatechangeevent;
receiverpc = new rtcpeerconnection();
receiverpc.onicecandidate = handle
receivericeevent; if (hasaddtrack) {
receiverpc.ontrack = handle
receivertrackevent; } else {
receiverpc.onaddstream = handle
receiveraddstreamevent; } navigator.mediadevices.getusermedia(mediaconstraints) .then(gotstream) .catch(err => log(err.message)); } after creating the rtcpeerconnection for the caller (c...
...And 25 more matches
Bytecode Descriptions
getpropsuper operands: (uint32_t nameindex) stack:
receiver, obj ⇒ super.name get the value of
receiver.name, starting the property search at obj.
... in spec terms, obj.[[get]](name,
receiver).
...the
receiver is this and obj is the superbase of the enclosing method.
...And 11 more matches
Old Proxy API - Archive of obsolete content
scription name in proxy has: function(name) -> boolean function(name) { return !!this.getpropertydescriptor(name); } object.prototype.hasownproperty.call(proxy, name) hasown: function(name) -> boolean function(name) { return !!this.getownpropertydescriptor(name); } proxy.name (in the context of "getting the value")
receiver.name (if
receiver inherits from a proxy and does not override name) get: function(
receiver, name) -> any function(
receiver, name) { var desc = this.getpropertydescriptor(name); if (desc === undefined) { return undefined; } if ('value' in desc) { return desc.value; } else { if (desc.get === undefined) { return undefined; } return desc.get.call(re...
...ceiver); } }
receiver is either the proxy or an object that inherits from the proxy.
... proxy.name = val (in the context of "setting the value")
receiver.name = val (if
receiver inherits from a proxy and does not override name) set: function(
receiver, name, val) -> boolean function(
receiver, name, val) { var desc = this.getownpropertydescriptor(name); if (desc) { if ('writable' in desc) { if (desc.writable) { desc.value = val; this.defineproperty(name, desc); return true; } else { return false; } } else { // accessor if (desc.set) { desc.set.call(
receiver, val); return true; } else { return false; } } } desc = this.getpropertydescriptor(name); if (desc) { if ('writable' in desc) { if (desc.writable) { // fall through ...
...And 6 more matches
nsIJetpack
*/); void register
receiver(in astring amessagename, in jsval a
receiver); void unregister
receiver(in astring amessagename, in jsval a
receiver); void unregister
receivers(in astring amessagename); void evalscript(in astring ascript); nsivariant createhandle(); void destroy(); methods sendmessage() this method asynchronously sends a message to the jetpack process.
... register
receiver() this registers a callback to be triggered whenever the jetpack process sends a particular message.
...void register
receiver( in astring amessagename, in jsval a
receiver ); parameters amessagename the name of the message from the jetpack process on which the callback is triggered.
...And 5 more matches
RTCInboundRtpStreamStats - Web APIs
fircount an integer value which indicates the total number of full intra request (fir) packets which this
receiver has sent to the sender.
... nackcount an integer value indicating the total number of negative acknolwedgement (nack) packets this
receiver has sent.
... perdscppacketsreceived a record of key-value pairs with strings as the keys mapped to 32-bit integer values, each indicating the total number of packets this
receiver has received on this rtp stream from this source for each differentiated services code point (dscp).
...And 5 more matches
WebRTC Statistics API - Web APIs
the webrtc api has a vast array of statistics available, covering the entire breadth of the webrtc connectivity system, from sender to
receiver and peer to peer.
...this way, we look only at the video-related statistics for the local rtcrtp
receiver responsible for receiving the streamed media.
... rtcpeerconnectionstats rtcstats
receiver statistics related to a specific rtcrtp
receiver and the media associated with that
receiver.
...And 4 more matches
IPDL Tutorial
their values are serialized by the sender and deserialized by the
receiver.
... wait until the
receiver acknowledges that it received the message.
... we call this synchronous semantics, as the sender blocks until the
receiver receives the message and sends back a reply.
...And 3 more matches
Debugger.Object - Firefox Developer Tools
getproperty(key, [
receiver]) return a completion value with "return" being the value of the referent's property named key, or undefined if it has no such property.
... key must be a string or symbol;
receiver must be a debuggee value.
... if the property is a getter, it will be evaluated with
receiver as the
receiver, defaulting to the debugger.object if omitted.
...And 3 more matches
RTCRtpStreamStats - Web APIs
the rtcrtpstreamstats dictionary is returned by the rtcpeerconnection.getstats(), rtcrtpsender.getstats(), and rtcrtp
receiver.getstats() methods to provide detailed statistics about webrtc connectivity.
...a fir packet is sent by the receiving end of the stream when it falls behind or has lost packets and is unable to continue decoding the stream; the sending end of the stream receives the fir packet and responds by sending a full frame instead of a delta frame, thereby letting the
receiver "catch up." the higher this number is, the more often a problem of this nature arose, which can be a sign of network congestion or an overburdened receiving device.
... nackcount the number of times the
receiver notified the sender that one or more rtp packets has been lost by sending a negative acknowledgement (nack, also called "generic nack") packet to the sender.
...And 3 more matches
RTCPeerConnection.addTrack() - Web APIs
note: every rtcrtpsender is paired with an rtcrtp
receiver to make up an rtcrtptransceiver.
... the associated
receiver is muted (indicating that it is not able to deliver packets) until and unless one or more streams are added to the
receiver by the remote peer.
... the rtcrtptransceiver associated with the sender has a rtcrtp
receiver whose track property specifies a mediastreamtrack whose kind is the same as the kind of the track parameter specified when calling rtcpeerconnection.addtrack().
...And 2 more matches
RTCRtpParameters - Web APIs
it is extended separately for senders and
receivers in the form of the rtcrtpsendparameters and rtcrtpreceiveparameters dictionaries.
... to obtain the parameters of a sender or
receiver, call its getparameters() method: getparameters() getparameters() properties codecs an array of rtcrtpcodecparameters objects describing the set of codecs from which the sender or
receiver will choose.
... headerextensions an array of zero or more rtp header extensions, each identifying an extension supported by the sender or
receiver.
...And 2 more matches
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
rtcrtp
receiver rtcrtp
receivers provide the ability to inspect and obtain information about incoming mediastreamtrack data.
... a connection's
receivers can be obtained by calling rtcpeerconnection.get
receivers().
... rtcrtptransceiver an rtcrtptransceiver is a pair of one rtp sender and one rtp
receiver which share an sdp mid attribute, which means they share the same sdp media m-line (representing a bidirectional srtp stream).
...And 2 more matches
Jetpack Processes - Archive of obsolete content
it returns an array whose elements are the return values of each
receiver in the chrome process that was triggered by the message.
... register
receiver(amessagename, a
receiver) similar to nsijetpack.register
receiver(), this function registers a callback that is triggered when the chrome process sends a message with the given name.
... unregister
receiver(amessagename, a
receiver) similar to nsijetpack.unregister
receiver(), this function unregisters a callback previously registered with register
receiver().
... unregister
receivers(amessagename) similar to nsijetpack.unregister
receivers(), this function unregisters all callbacks for the given message name.
RTCInboundRtpStreamStats.firCount - Web APIs
the fircount property of the rtcinboundrtpstreamstats 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.
... 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.
... this tells the sender to send a full frame instead of a delta frame, so that the
receiver can catch up.
RTCInboundRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcinboundrtpstreamstats dictionary states the number of times the rtcrtp
receiver described by these statistics sent a picture loss indication (pli) packet to the sender.
... syntax var plicount = rtcinboundrtpstreamstats.plicount; value an integer value indicating the number of times a pli packet was sent by the rtcrtp
receiver to the sender.
... these are sent by the
receiver's decoder to notify the encoder (the sender) that an undefined amount of coded video data, which may span frame boundaries, has been lost.
... this may trigger the sender to send a full frame in order to allow the
receiver to re-synchronize, since lost data may be an irrecoverable situation for decoding media.
RTCOutboundRtpStreamStats.firCount - Web APIs
the fircount property of the rtcoutboundrtpstreamstats dictionary indicates the number of full intra request (fir) that the remote rtcrtp
receiver has sent to this rtcrtpsender.
... a fir packet is sent when the
receiver finds that it has fallen behind and needs to skip frames in order to catch up; the sender should respond by sending a full frame instead of a delta frame.
... 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.
... this tells the sender to send a full frame instead of a delta frame, so that the
receiver can catch up.
RTCPeerConnection - Web APIs
this has an effect only if the signalingstate is not "closed".get
receivers() the rtcpeerconnection.get
receivers() method returns an array of rtcrtp
receiver objects, each of which represents one rtp
receiver.
... each rtp
receiver manages the reception and decoding of data for a mediastreamtrack on an rtcpeerconnectiongetsenders()the rtcpeerconnection method getsenders() returns an array of rtcrtpsender objects, each of which represents the rtp sender responsible for transmitting one track's data.getstats()the rtcpeerconnection method getstats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified mediastreamtrack.getstreambyid() the rtcpeerconnection.getstreambyid() method returns the mediastream with the given id that is associated with local or remote end of the connection.
...the
receiver should respond by creating an offer and sending it to the other peer.
... track the track event is sent after a new track has been added to one of the rtcrtp
receiver instances which comprise the connection.
RTCRtpReceiveParameters - Web APIs
the rtcrtpreceiveparameters dictionary, based upon the rtcrtpparameters dictionary, is returned by the the rtcrtp
receiver method getparameters().
... it describes the parameters being used by the
receiver's rtp connection to the remote peer.
... examples this example obtains the canonical name (cname) being used for rtcp on an rtcrtp
receiver.
... function getrtcpcname(
receiver) { let parameters =
receiver.getparameters(); return parameters.rtcp.cname; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpreceiveparameters' in that specification.
RTCRtpStreamStats.firCount - Web APIs
the fircount property of the rtcrtpstreamstats dictionary indicates the number of full intra request (fir) packets have been sent by the
receiver to the sender.
...this value is available only on
receivers for video tracks.
... 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.
... this tells the sender to send a full frame instead of a delta frame, so that the
receiver can catch up.
RTCRtpTransceiver.direction - Web APIs
each describes how the transceiver's associated rtcrtpsender and rtcrtp
receiver behave as shown in the table below.
... value rtcrtpsender behavior rtcrtp
receiver behavior "sendrecv" offers to send rtp data, and will do so if the other peer accepts the connection and at least one of the sender's encodings is active1.
... exceptions when setting the value of direction, the following exceptions can occur: invalidstateerror either the
receiver's rtcpeerconnection is closed or the rtcrtp
receiver is stopped.
... usage notes setting the direction when you change the value of direction, an invalidstateerror exception will occur if the connection is closed or the
receiver is stopped.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
that means that either the associated rtcrtpsender or the rtcrtp
receiver needs to support every codec in the list.
... to determine which codecs are supported by the transceiver, call the sender's getcapabilities() and the
receiver's getcapabilities() methods and get the codecs list from the results of each.
... the following code snippet demonstrates how to get both the list of codecs supported by the transceiver's rtcrtpsender and rtcrtp
receiver.
... var availsendcodecs = transceiver.sender.getcapabilities("video").codecs; var availreceivecodecs = transceiver.
receiver.getcapabilities("video").codecs; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtptransceiver.setcodecpreferences()' in that specification.
RTCRtpTransceiver - Web APIs
the webrtc interface rtcrtptransceiver describes a permanent pairing of an rtcrtpsender and an rtcrtp
receiver, along with some shared state.
...
receiver read only the rtcrtp
receiver object that handles receiving and decoding incoming media.
... stopped indicates whether or not sending and receiving using the paired rtcrtpsender and rtcrtp
receiver has been permanently disabled, either due to sdp offer/answer, or due to a call to stop().
...the associated sender stops sending data, and the associated
receiver likewise stops receiving and decoding incoming data.
RTCStatsReport - Web APIs
the rtcstatsreport interface provides a statistics report obtained by calling one of the rtcpeerconnection.getstats(), rtcrtp
receiver.getstats(), and rtcrtpsender.getstats() methods.
...the rtcrtp
receiver and rtcrtpsender versions of getstats() specifically only return statistics available to the incoming or outgoing stream on which you call them.
...
receiver provides statistics about a specific rtcrtp
receiver.
... the statistics object is an rtcaudio
receiverstats object if kind is audio; if kind is video, the object is an rtcvideo
receiverstats object.
RTCTrackEvent - Web APIs
the webrtc api interface rtctrackevent represents the track event, which is sent when a new mediastreamtrack is added to an rtcrtp
receiver which is part of the rtcpeerconnection.
...
receiver read only the rtcrtp
receiver used by the track that's been added to the rtcpeerconnection.
...by the time the track event is delivered to the rtcpeerconnection's ontrack handler, the new media has completed its negotiation for a specific rtcrtp
receiver (which is specified by the event's
receiver property).
... in addition, the mediastreamtrack specified by the
receiver's track is the same one specified by the event's track, and the track has been added to any associated remote mediastream objects.
handler.set() - JavaScript
syntax const p = new proxy(target, { set: function(target, property, value,
receiver) { } }); parameters the following parameters are passed to the set() method.
...
receiver the object to which the assignment was originally directed.
...that proxy's set() handler will be called, and obj will be passed as the
receiver.
... const p = new proxy({}, { set: function(target, prop, value,
receiver) { target[prop] = value; console.log('property set: ' + prop + ' = ' + value); return true; } }) console.log('a' in p); // false p.a = 10; // "property set: a = 10" console.log('a' in p); // true console.log(p.a); // 10 specifications specification ecmascript (ecma-262)the definition of '[[set]]' in that specification.
Codecs used by WebRTC - Web media technologies
the most efficient way is to use the static method rtcrtpsender.getcapabilities() (or the equivalent rtcrtp
receiver.getcapabilities() for a
receiver), specifying the type of media as the input parameter.
... function changevideocodec(mimetype) { const transceivers = peerconnection.gettransceivers(); transceivers.foreach(transceiver => { const kind = transceiver.sender.track.kind; let sendcodecs = rtcrtpsender.getcapabilities(kind).codecs; let recvcodecs = rtcrtp
receiver.getcapabilities(kind).codecs; if (kind === "video") { sendcodecs = prefercodec(mimetype); recvcodecs = prefercodec(mimetype); transceiver.setcodecpreferences([...sendcodecs, ...recvcodecs]); } }); peerconnection.onnegotiationneeded(); } in this sample, the function changevideocodec() takes as input the mime type of the codec you wish to use.
...we also get the lists of all codecs supported by the browser for both sending and receiving video, using the getcapabilities() static method of both rtcrtpsender and rtcrtp
receiver.
... if the media is video, we call a method called prefercodec() for both the sender's and
receiver's codec lists; this method rearranges the codec list the way we want (see below).
Packet - MDN Web Docs Glossary: Definitions of Web-related terms
error detection and correction error detection and correction are codes that are used to detect and apply corrections to the errors that occur when data is transmitted to the
receiver.
...backward error correction is when the
receiver requests the sender to retransmit the entire data unit.
... forward error correction is when the
receiver uses the error-correcting code which automatically corrects the errors at the transmitter, the calculation is performed before the packet is sent.
Self-hosted builtins in SpiderMonkey
most importantly, it's possible to invoke any function within the scope of any object using the syntax callfunction(fun,
receiver, ...args) (or callcontentfunction, see below), which causes fun to be called within the scope of
receiver with ...args as its arguments.
...so instead of
receiver.fun(arg1, ..., argn) you have to use callfunction(fun,
receiver, arg1, ...
...e.g., if
receiver is an object that content has access to, then callfunction(
receiver.fun,
receiver) wouldn't be guaranteed to work, because content might have changed the value of
receiver.fun, so callcontentfunction(
receiver.fun,
receiver) has to be used.
nsISmsService
to create an instance, use: var smsservice = components.classes["@mozilla.org/sms/smsservice;1"] .createinstance(components.interfaces.nsismsservice); method overview [implicit_jscontext] nsidommozsmsmessage createsmsmessage(in long id, in domstring delivery, in domstring sender, in domstring
receiver, in domstring body, in jsval timestamp, in bool read ); unsigned short getnumberofmessagesfortext(in domstring text); boolean hassupport(); void send(in domstring number, in domstring message, in long requestid, [optional] in unsigned long long processid); methods createsmsmessage() [implicit_jscontext] nsidommozsmsmessage createsmsmessage( in long id, in d...
...omstring delivery, in domstring sender, in domstring
receiver, in domstring body, in jsval timestamp, in bool read ); parameters id a number representing the id of the message.
...
receiver a domstring with the name of the
receiver.
BroadcastChannel: message event - Web APIs
there are two "
receiver" iframes that listen to the broadcast message and write the result into a <div> element.
...} label, br { margin: .5rem 0; } button { vertical-align: top; height: 1.5rem; } const channel = new broadcastchannel('example-channel'); const messagecontrol = document.queryselector('#message'); const broadcastmessagebutton = document.queryselector('#broadcast-message'); broadcastmessagebutton.addeventlistener('click', () => { channel.postmessage(messagecontrol.value); })
receiver 1 <h1>
receiver 1</h1> <div id="received"></div> body { border: 1px solid black; padding: .5rem; height: 100px; font-family: "fira sans", sans-serif; } h1 { font: 1.6em "fira sans", sans-serif; margin-bottom: 1rem; } const channel = new broadcastchannel('example-channel'); channel.addeventlistener('message', (event) => { received.textcontent = event.data; }); rece...
...iver 2 <h1>
receiver 2</h1> <div id="received"></div> body { border: 1px solid black; padding: .5rem; height: 100px; font-family: "fira sans", sans-serif; } h1 { font: 1.6em "fira sans", sans-serif; margin-bottom: 1rem; } const channel = new broadcastchannel('example-channel'); channel.addeventlistener('message', (event) => { received.textcontent = event.data; }); result specifications specification status html living standard living standard ...
RTCDtlsTransport - Web APIs
the rtcdtlstransport interface provides access to information about the datagram transport layer security (dtls) transport over which a rtcpeerconnection's rtp and rtcp packets are sent and received by its rtcrtpsender and rtcrtp
receiver objects.
... when not using bundle when the connection is created without using bundle, each rtp or rtcp component of each rtcrtptransceiver has its own rtcdtlstransport; that is, every rtcrtpsender and rtcrtp
receiver, has its own transport, and all rtcdatachannel objects share a transport dedicated to sctp.
...if your code accesses rtcrtpsenders and/or rtcrtp
receivers directly, you may encounter situations where they're initially separate, then half or more of them get closed and the senders and
receivers updated to refer to the appropriate remaining rtcdtlstransport objects.
RTCInboundRtpStreamStats.sliCount - Web APIs
the slicount property of the rtcinboundrtpstreamstats dictionary indicates how many slice loss indication (sli) packets the rtcrtp
receiver 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 = rtcinboundrtpstreamstats.slicount; value an unsigned integer indicating the number of sli packets this
receiver sent to the remote sender due to lost runs of macroblocks.
RTCOutboundRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcoutboundrtpstreamstats dictionary is a numeric value indicating the number of times the rtcrtpsender described by this object received a nack packet from the remote
receiver.
... a nack (negative acknowledgement, also called "generic nack") packet is used by the rtcrtp
receiver to inform the sender that one or more rtp packets it sent were lost in transport.
... syntax var nackcount = rtcoutboundrtpstreamstats.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.
RTCOutboundRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcoutboundrtpstreamstats dictionary states the number of times the remote peer's rtcrtp
receiver sent a picture loss indication (pli) packet to the rtcrtpsender for which this object provides statistics.
... syntax var plicount = rtcoutboundrtpstreamstats.plicount; value an integer value indicating the number of times a pli packet was sent to this sender by the remote peer's rtcrtp
receiver.
... these are sent by the
receiver's decoder to notify the sender's encoder that an undefined amount of coded video data, which may span frame boundaries, has been lost.
RTCOutboundRtpStreamStats.sliCount - Web APIs
the slicount property of the rtcoutboundrtpstreamstats dictionary indicates how many slice loss indication (sli) packets the rtcrtpsender received from the remote rtcrtp
receiver 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 = rtcoutboundrtpstreamstats.slicount; value an unsigned integer indicating the number of sli packets the sender received from the
receiver due to lost runs of macroblocks.
RTCOutboundRtpStreamStats - Web APIs
fircount an integer value which indicates the total number of full intra request (fir) packets which this rtcrtpsender has sent to the remote rtcrtp
receiver.
... nackcount an integer value indicating the total number of negative acknolwedgement (nack) packets this rtcrtpsender has received from the remote rtcrtp
receiver.
... plicount an integer specifying the number of times the remote
receiver has notified this rtcrtpsender that some amount of encoded video data for one or more frames has been lost, using picture loss indication (pli) packets.
RTCPeerConnection.addTransceiver() - Web APIs
each transceiver represents a bidirectional stream, with both an rtcrtpsender and an rtcrtp
receiver associated with it.
... syntax rtptransceiver = rtcpeerconnection.addtransceiver(trackorkind, init); parameters trackorkind a mediastreamtrack to associate with the transceiver, or a domstring which is used as the kind of the
receiver's track, and by extension of the rtcrtp
receiver itself.
... streams optional a list of mediastream objects to add to the transceiver'srtcrtp
receiver; when the remote peer's rtcpeerconnection's track event occurs, these are the streams that will be specified by that event.
RTCRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcrtpstreamstats dictionary is a numeric value indicating the number of times the
receiver sent a nack packet to the sender.
... syntax var nackcount = rtcrtpstreamstats.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.
... note: this value is only available on the
receiver.
RTCRtpStreamStats.pliCount - Web APIs
syntax var plicount = rtcrtpstreamstats.plicount; value an integer value indicating the number of times a pli packet was sent by the stream's
receiver to the sender.
... this may trigger the sender to send a full frame in order to allow the
receiver to re-synchronize, since lost data may be an irrecoverable situation for decoding media.
... note: this value is only available on the
receiver, and only for video media.
RTCStats - Web APIs
rtcstats is the foundation of all webrtc statistics objects rtcrtpstreamstats 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) rtcreceivedrtpstreamstats further adds statistics measured at the receiving end of an rtp stream, regardless of whether it's local or remote.
... rtcinboundrtpstreamstats contains statistics that can only be measured on a
receiver at the local end of the rtp connection.
... rtcoutboundrtpstreamstats contains statistics related to the
receiver at the remote end of the rtp stream.
RTCTrackEvent.transceiver - Web APIs
the transceiver pairs the track's
receiver with an rtcrtpsender.
... 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.
... note: the rtcrtp
receiver referred to by this rtcrtp
receiver's
receiver property will always be the same as the rtctrackevent's
receiver property.
RTCTrackEventInit.transceiver - Web APIs
the transceiver pairs the track's
receiver with an rtcrtpsender to allow bidirectional communication.
... syntax var trackeventinit = {
receiver: rtp
receiver, track: mediastreamtrack, streams: [videostream], 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.
... note: the rtcrtp
receiver referred to by this rtcrtp
receiver's
receiver property will always be the same as the rtctrackevent's
receiver property.
Using XMLHttpRequest - Web APIs
*/ var oajaxreq = new xmlhttprequest(); oajaxreq.submitteddata = odata; oajaxreq.onload = ajaxsuccess; if (odata.technique === 0) { /* method is get */ oajaxreq.open("get", odata.
receiver.replace(/(?:\?.*)?$/, odata.segments.length > 0 ?
... "?" + odata.segments.join("&") : ""), true); oajaxreq.send(null); } else { /* method is post */ oajaxreq.open("post", odata.
receiver, true); if (odata.technique === 3) { /* enctype is multipart/form-data */ var sboundary = "---------------------------" + date.now().tostring(16); oajaxreq.setrequestheader("content-type", "multipart\/form-data; boundary=" + sboundary); oajaxreq.sendasbinary("--" + sboundary + "\r\n" + odata.segments.join("--" + sboundary + "\r\n") + "--" + sboundary + "--\r\n"); } else { /* enctype is application/x-www-form-urlencoded or text/plain */ oajaxreq.setrequestheader("content-type", odata.contenttype); oajaxreq.send(odata.segments.join(odata.technique === 2 ?
...2 : 1 : 0; this.
receiver = otarget.action; this.status = 0; this.segments = []; var ffilter = this.technique === 2 ?
handler.get() - JavaScript
syntax const p = new proxy(target, { get: function(target, property,
receiver) { } }); parameters the following parameters are passed to the get() method.
...
receiver either the proxy or an object that inherits from the proxy.
... const p = new proxy({}, { get: function(target, property,
receiver) { console.log('called: ' + property); return 10; } }); console.log(p.a); // "called: a" // 10 the following code violates an invariant.
Reflect.get() - JavaScript
syntax reflect.get(target, propertykey[,
receiver]) parameters target the target object on which to get the property.
...
receiver optional the value of this provided for the call to target if a getter is encountered.
... examples using reflect.get() // object let obj = { x: 1, y: 2 } reflect.get(obj, 'x') // 1 // array reflect.get(['zero', 'one'], 1) // "one" // proxy with a get handler let x = {p: 1}; let obj = new proxy(x, { get(t, k, r) { return k + 'bar' } }) reflect.get(obj, 'foo') // "foobar" //proxy with get handler and
receiver let x = {p: 1, foo: 2}; let y = {foo: 3}; let obj = new proxy(x, { get(t, prop,
receiver) { return
receiver[prop] + 'bar' } }) reflect.get(obj, 'foo', y) // "3bar" specifications specification ecmascript (ecma-262)the definition of 'reflect.get' in that specification.
nsIDragDropHandler
hookupto() attaches drag handlers to a specified
receiver, setting up callbacks to let built-in behaviors be overridden.
... void hookupto( in nsidomeventtarget attachpoint, in nsiwebnavigation navigator ); parameters attachpoint the
receiver to which to attach drag handlers.
nsISmsDatabaseService
to create an instance, use: var smsservice = components.classes["@mozilla.org/sms/smsdatabaseservice;1"] .createinstance(components.interfaces.nsismsdatabaseservice); method overview long savereceivedmessage(in domstring asender, in domstring abody, in unsigned long long adate); long savesentmessage(in domstring a
receiver, in domstring abody, in unsigned long long adate); void getmessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void deletemessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void createmessagelist(in nsidommozsmsfilter filter, in boolean reverse, in long requestid, [optional] in unsigned long long processid); vo...
... savesentmessage() void savesentmessage( in domstring a
receiver, in domstring abody, in unsigned long long adate ); parameters a
receiver a domstring with the
receiver of the text message.
RTCIceCandidate.usernameFragment - Web APIs
to avoid including candidates obsoleted by an ice restart, we can use code like this: const ssnewcandidate = signalmsg => { let candidate = new rtcicecandidate(signalmsg.candidate); let
receivers = pc.get
receivers();
receivers.foreach(
receiver => { let parameters =
receiver.transport.getparameters(); if (parameters.usernamefragment === candidate.usernamefragment) { return; } }); pc.addicecandidate(candidate) .catch(reporterror); } this walks through the list of the rtcrtp
receiver objects being used to receive ice data, and looks to see if the usernamefrag...
...otherwise, after checking every
receiver, it adds the new candidate to the connection.
RTCInboundRtpStreamStats.nackCount - Web APIs
the nackcount property of the rtcinboundrtpstreamstats dictionary is a numeric value indicating the number of times the
receiver sent a nack packet to the sender.
... syntax var nackcount = rtcinboundrtpstreamstats.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.
RTCInboundRtpStreamStats.trackId - Web APIs
the trackid property of the rtcinboundrtpstreamstats dictionary indicates the id of the rtc
receiveraudiotrackattachmentstats or rtc
receivervideotrackattachmentstats object representing the mediastreamtrack which is receiving the incoming media.
... syntax var trackstatsid = rtcinboundrtpstreamstats.trackid; value a domstring containing the id of the rtc
receiveraudiotrackattachmentstats or rtc
receivervideotrackattachmentstats object representing the track which is receiving the media from this rtp session.
RTCOutboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcoutboundrtpstreamstats dictionary specifies the id of the rtcremoteinboundrtpstreamstats object representing the remote peer's rtcrtp
receiver which is sending the media to the local peer for this ssrc.
... syntax var remotestatsid = rtcoutboundrtpstreamstats.remoteid; value a domstring containing the id of the rtcremoteinboundrtpstreamstats object that represents the remote peer's rtcrtp
receiver for the synchronization source represented by this stats object.
RTCPeerConnection.ontrack - Web APIs
the function receives as input the event object, of type rtctrackevent; this event is sent when a new incoming mediastreamtrack has been created and associated with an rtcrtp
receiver object which has been added to the set of
receivers on connection.
...this information includes the mediastreamtrack object representing the new track, the rtcrtp
receiver and rtcrtptransceiver, and a list of mediastream objects which indicates which stream or streams the track is part of..
RTCRtcpParameters - Web APIs
it's used as the value of the rtcp property of the parameters of an rtcrtpsender or rtcrtp
receiver.
... examples this example obtains the canonical name (cname) being used for rtcp on an rtcrtpsender or rtcrtp
receiver.
RTCRtpCapabilities - Web APIs
the rtcrtpcapabilities dictionary is a data type used to describe the capabilities of an rtcrtpsender or rtcrtp
receiver in response to a call to the rtcrtpsender.getcapabilities() or rtcrtp
receiver.getcapabilities() static functions, both of which return an array of rtcrtpcapabilities objects.
... properties codecs an array of rtcrtpcodeccapability objects, each describing one of the codecs supported by the rtcrtpsender or rtcrtp
receiver.
RTCRtpEncodingParameters - Web APIs
it's used in the rtcrtpsendparameters describing the configuration of an rtp sender's encodings; rtcrtpdecodingparameters is used to describe the configuration of an rtp
receiver's encodings.
...that is, for rtp senders, the encoding is currently being used to send data, while for
receivers, the encoding is being used to decode received data.
RTCRtpStreamStats.sliCount - Web APIs
syntax var slicount = rtcrtpstreamstats.slicount; value an unsigned long integer indicating the number of sli packets the sender received from the
receiver due to lost runs of macroblocks.
... note: this value is sent by the sender to the
receiver and is only present for video media.
RTCRtpTransceiver.currentDirection - Web APIs
each describes how the transceiver's associated rtcrtpsender and rtcrtp
receiver behave as shown in the table below.
... value rtcrtpsender behavior rtcrtp
receiver behavior "sendrecv" offers to send rtp data, and will do so if the other peer accepts the connection and at least one of the sender's encodings is active1.
RTCRtpTransceiver.stop() - Web APIs
the stop() method in the rtcrtptransceiver interface permanently stops the transceiver by stopping both the associated rtcrtpsender and rtcrtp
receiver.
...the
receiver then stops receiving media; the
receiver's track is stopped, and the transceiver's direction is changed to stopped, and renegotiation is triggered by sending a negotiationneeded event to the rtcpeerconnection.
RTCRtpTransceiver.stopped - Web APIs
the read-only stopped property on the rtcrtptransceiver interface indicates whether or not the transceiver's associated sender and
receiver have both been stopped.
... syntax var isstopped = rtcrtptransceiver.stopped; value a boolean value which is true if the transceiver's sender will no longer send data, and its
receiver will no longer receive data.
RTCRtpTransceiverDirection - Web APIs
each describes how the transceiver's associated rtcrtpsender and rtcrtp
receiver behave as shown in the table below.
... value rtcrtpsender behavior rtcrtp
receiver behavior "sendrecv" offers to send rtp data, and will do so if the other peer accepts the connection and at least one of the sender's encodings is active1.
RTCStatsType - Web APIs
receiver provides statistics about a specific rtcrtp
receiver.
... the statistics object is an rtcaudio
receiverstats object if kind is audio; if kind is video, the object is an rtcvideo
receiverstats object.
WebRTC API - Web APIs
rtcrtp
receiver manages the reception and decoding of data for a mediastreamtrack on an rtcpeerconnection.
... rtctrackevent the interface used to represent a track event, which indicates that an rtcrtp
receiver object was added to the rtcpeerconnection object, indicating that a new incoming mediastreamtrack was created and added to the rtcpeerconnection.
Using Web Workers - Web APIs
var results = []; function result
receiver(event) { results.push(parseint(event.data)); if (results.length == 2) { postmessage(results[0] + results[1]); } } function error
receiver(event) { throw event.data; } onmessage = function(event) { var n = parseint(event.data); if (n == 0 || n == 1) { postmessage(n); return; } for (var i = 1; i <= 2; i++) { var worker = new worker('fibonacci.js'); worker.onme...
...ssage = result
receiver; worker.onerror = error
receiver; worker.postmessage(n - i); } }; the worker sets the property onmessage to a function which will receive messages sent when the worker object's postmessage() is called (note that this differs from defining a global variable of that name, or defining a function with that name.
Proxy - JavaScript
= {}; const proxy1 = new proxy(target, handler1); because the handler is empty, this proxy behaves just like the original target: console.log(proxy1.message1); // hello console.log(proxy1.message2); // everyone to customise the proxy, we define functions on the handler object: const target = { message1: "hello", message2: "everyone" }; const handler2 = { get: function(target, prop,
receiver) { return "world"; } }; const proxy2 = new proxy(target, handler2); here we've provided an implementation of the get() handler, which intercepts attempts to access properties in the target.
...the very simple trap in handler2 above redefines all property accessors: console.log(proxy2.message1); // world console.log(proxy2.message2); // world with the help of the reflect class we can give some accessors the original behavior and redefine others: const target = { message1: "hello", message2: "everyone" }; const handler3 = { get: function (target, prop,
receiver) { if (prop === "message2") { return "world"; } return reflect.get(...arguments); }, }; const proxy3 = new proxy(target, handler3); console.log(proxy3.message1); // hello console.log(proxy3.message2); // world constructor proxy() creates a new proxy object.
Reflect.set() - JavaScript
syntax reflect.set(target, propertykey, value[,
receiver]) parameters target the target object on which to set the property.
...
receiver optional the value of this provided for the call to target if a setter is encountered.
Reflect - JavaScript
reflect.get(target, propertykey[,
receiver]) returns the value of the property.
... reflect.set(target, propertykey, value[,
receiver]) a function that assigns values to properties.
Communicating using "postMessage" - Archive of obsolete content
now we have to embed the event type in the message payload, and implement a switch function in the
receiver to dispatch the message: var pagemodscript = "window.addeventlistener('mouseover', function(event) {" + " self.postmessage({" + " kind: 'mouseover'," + " element: event.target.tostring()" + " });" + "}, false);" + "window.addeventlistener('mouseout', function(event) {" ...
Mozilla accessibility architecture
accessible events accessible events are dom events translated into the event mechanism of the given platform, using the enumerated event numbers listed in nsiaccessibleevent
receiver.idl.
Mozilla DOM Hacking Guide
we can see that the nseventrecieversh helper class inherits from nsdomgenericsh: class nseventrecieversh : public nsdomgenericsh and nsdomgenericsh is typedef'ed to nsdomclassinfo: typedef nsdomclassinfo nsdomgenericsh; another example is nswindowsh, which inherits from nsevent
receiversh, thus inheriting from nsdomclassinfo.
JIT Optimization Outcomes
accessnottypedarray accessnotstring statictypedarrayuint32 statictypedarraycantcomputemask outofbounds getelemstringnotcached nonnative
receiver indextype setelemnondensenontanotcached nosimdjitsupport optimization failed because simd jit support was not enabled.
JS::CallArgs
methods inherited from js::detail::call
receiverbase method description jsobject &callee() const returns the function being called, as an object.
JS_ForwardGetPropertyTo
onbehalfof is
receiver in [[get]] internal method of proxy, defined in es2015 draft spec (rev 29, 9.5.8).
JS_IsConstructing
use callargs::isconstructing or call
receiver::isconstructing instead.
SpiderMonkey 31
obsolete apis js_convertarguments "j" type deleted apis js_newgrowablestring (can be replaced with js_newucstring) js_isconstructing (can be replaced with callargs::isconstructing or call
receiver::isconstructing) js_valuetoboolean (replaced by js::toboolean) js_valuetonumber (can be replaced with js::tonumber) js_valuetoint64 (replaced by js::toint64) js_valuetouint64 (replaced by js::touint64) js_valuetoecmauint32 (replaced by js::touint32) js_valuetoecmaint32 (replaced by js::toint32) js_valuetoint32 (can be replaced with js::toint32, which has a different behavior!) js_valuetou...
nsIMessageSender
throws ns_error_failure when the message
receiver cannot be found.
Declaring and Using Callbacks
if two arguments are passed to the callback constructor, the second is used as the this parameter: function myjscallback() { alert(this.message); }; var
receiver = { message: 'hi there!' }; var callback = funcptrtype(myjscallback,
receiver); // alerts with 'hi there' when the callback is invoked if three arguments are passed to the callback constructor, the third argument is used as a sentinel value which the callback returns if an exception is thrown.
FetchEvent - Web APIs
it contains information about the fetch, including the request and how the
receiver will treat the response.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
const messagequeue = []; let sendmessage = message => { messagequeue.push(message); if (messagequeue.length === 1) { queuemicrotask(() => { const json = json.stringify(messagequeue); messagequeue.length = 0; fetch("url-of-
receiver", json); }); } }; when sendmessage() gets called, the specified message is first pushed onto the message queue array.
Key Values - Web APIs
keyboardevent.key value description virtual keycode windows mac linux android "avrinput" [3] changes the input mode on an external audio/video
receiver (avr) unit.
MessagePort: message event - Web APIs
this is only needed when using the addeventlistener() method: if the
receiver uses onmessage instead, start() is called implicitly: window.addeventlistener('message', (event) => { const myport = event.ports[0]; myport.onmessage = (event) => { received.textcontent = event.data; }; }); specifications specification status html living standard living standard ...
MessagePort: messageerror event - Web APIs
this is only needed when using the addeventlistener() method: if the
receiver uses onmessage instead, start() is called implicitly: window.addeventlistener('message', (event) => { const myport = event.ports[0]; myport.onmessage = (event) => { received.textcontent = event.data; }; myport.onmessageerror = (event) => { console.error(event.data); }; }); specifications specification status html living standard li...
RTCIceTransport: gatheringstatechange event - Web APIs
bubbles no cancelable no interface event event handler property ongatheringstatechange the key difference between gatheringstatechange and icegatheringstatechange is that the latter represents the overall state of the connection including every rtcicetransport used by every rtcrtpsender and every rtcrtp
receiver on the entire connection.
RTCPeerConnection.createOffer() - Web APIs
the implementation of the signaling server is independent from the webrtc specification, so it doesn't matter how the offer is sent as long as both the caller and potential
receiver are using the same one.
RTCPeerConnection.getStats() - Web APIs
exceptions this method does not throw exceptions; instead, it rejects the returned promise with one of the following errors: invalidaccesserror there is no rtcrtpsender or rtcrtp
receiver whose track matches the specified selector, or selector matches more than one sender or
receiver.
RTCRtpCodecCapability - Web APIs
an array of objects of this type is returned in the codecs property of the rtcrtpcapabilities object returned in response to a call to either of the static functions rtcrtpsender.getcapabilities() or rtcrtp
receiver.getcapabilities().
RTCRtpCodecParameters - Web APIs
note: on an rtcrtp
receiver, the format-specific parameters come from the sdp sent by the remote peer, while for rtcrtpsender, they're provided by the local description.
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 mediastreamtrack specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpcontributingsource' in that specification.
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.
RTCRtpTransceiverInit - Web APIs
streams optional a list of mediastream objects to add to the transceiver'srtcrtp
receiver; when the remote peer's rtcpeerconnection's track event occurs, these are the streams that will be specified by that event.
RTCTrackEvent() - Web APIs
this object has the following properties:
receiver the rtcrtp
receiver which is being used to receive the track's media.
RTCTrackEventInit.streams - Web APIs
syntax var trackeventinit = {
receiver: rtp
receiver, track: mediastreamtrack, streams: [videostream], transceiver: rtptransceiver }; var streamlist = trackeventinit.streams; value an array of mediastream objects, one for each stream which make up the track.
RTCTrackEventInit.track - Web APIs
syntax var trackeventinit = {
receiver: rtp
receiver, track: mediastreamtrack, streams: [videostream], transceiver: rtptransceiver }; var track = trackeventinit.track; value a mediastreamtrack representing the track with which the event is associated.
RTCTrackEventInit - Web APIs
properties rtctrackeventinit inherits properties from the eventinit dictionary, and also includes the following properties:
receiver the rtcrtp
receiver which is being used to receive the track's media.
WebRTC connectivity - Web APIs
after setlocaldescription(), the caller asks stun servers to generate the ice candidates the caller uses the signaling server to transmit the offer to the intended
receiver of the call.
Signaling and video calling - Web APIs
sdp the sdp (session description protocol) string describing the local end of the connection from the perspective of the sender (or the remote end of the connection from the
receiver's point of view).
Window: message event - Web APIs
ples suppose a script sends a message to a different browsing context, such as another <iframe>, using code like this: const targetframe = window.top.frames[1]; const targetorigin = 'https://example.org'; const windowmessagebutton = document.queryselector('#window-message'); windowmessagebutton.addeventlistener('click', () => { targetframe.postmessage('hello there', targetorigin); }); the
receiver can listen for the message using addeventlistener() with code like this: window.addeventlistener('message', (event) => { console.log(`received message: ${event.data}`); }); alternatively the listener could use the onmessage event handler property: window.onmessage = (event) => { console.log(`received message: ${event.data}`); }; specifications specification status ...
window.postMessage() - Web APIs
this mechanism provides control over where messages are sent; for example, if postmessage() was used to transmit a password, it would be absolutely critical that this argument be a uri whose origin is the same as the intended
receiver of the message containing the password, to prevent interception of the password by a malicious third party.
Web APIs
yevent rtcinboundrtpstreamstats rtcnetworktype rtcofferansweroptions rtcofferoptions rtcoutboundrtpstreamstats rtcpeerconnection rtcpeerconnectioniceerrorevent rtcpeerconnectioniceevent rtcremoteoutboundrtpstreamstats rtcrtcpparameters rtcrtpcapabilities rtcrtpcodeccapability rtcrtpcodecparameters rtcrtpcontributingsource rtcrtpencodingparameters rtcrtpparameters rtcrtpreceiveparameters rtcrtp
receiver rtcrtpsendparameters rtcrtpsender rtcrtpstreamstats rtcrtpsynchronizationsource rtcrtptransceiver rtcrtptransceiverdirection rtcrtptransceiverinit rtcsctptransport rtcsessiondescription rtcsessiondescriptioncallback rtcstats rtcstatsicecandidatepairstate rtcstatsreport rtcstatstype rtctrackevent rtctrackeventinit radionodelist range readablebytestreamcontroller readablestream readablestre...
TypeError: X.prototype.y called on incompatible type - JavaScript
message typeerror: 'this' is not a set object (edge) typeerror: function.prototype.tostring called on incompatible object (firefox) typeerror: function.prototype.bind called on incompatible target (firefox) typeerror: method set.prototype.add called on incompatible
receiver undefined (chrome) typeerror: bind must be called on a function (chrome) error type typeerror what went wrong?
Proxy() constructor - JavaScript
const target = { notproxied: "original value", proxied: "original value" }; const handler = { get: function(target, prop,
receiver) { if (prop === "proxied") { return "replaced value"; } return reflect.get(...arguments); } }; const proxy = new proxy(target, handler); console.log(proxy.notproxied); // "original value" console.log(proxy.proxied); // "replaced value" specifications specification ecmascript (ecma-262)the definition of 'proxy constructor' in that specification.
SharedArrayBuffer - JavaScript
in both cases, the sharedarraybuffer object is transmitted to the
receiver resulting in a new, private sharedarraybuffer object in the receiving agent (just as for arraybuffer).