Search completed in 1.21 seconds.
RTCDataChannel - Web APIs
the rtc
datachannel interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
... to create a data channel and ask a remote peer to join you, call the rtcpeerconnection's create
datachannel() method.
... the peer being invited to exchange data receives a
datachannel event (which has type rtc
datachannelevent) to let it know the data channel has been added to the connection.
...And 14 more matches
A simple RTCDataChannel sample - Web APIs
the rtc
datachannel interface is a feature of the webrtc api which lets you open a channel between two peers over which you may send and receive arbitrary data.
... in this example, we will open an rtc
datachannel connection linking two elements on the same page.
... set up the local peer localconnection = new rtcpeerconnection(); sendchannel = localconnection.create
datachannel("sendchannel"); sendchannel.onopen = handlesendchannelstatuschange; sendchannel.onclose = handlesendchannelstatuschange; the first step is to create the "local" end of the connection.
...And 10 more matches
RTCPeerConnection.createDataChannel() - Web APIs
the create
datachannel() method on the rtcpeerconnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
... syntax
datachannel = rtcpeerconnection.create
datachannel(label[, options]); parameters label a human-readable name for the channel.
... options optional an rtc
datachannelinit dictionary providing configuration options for the data channel rtc
datachannelinit dictionary the rtc
datachannelinit dictionary provides the following fields, any of which may be included in the object passed as the options parameter in order to configure the data channel to suit your needs: ordered optional indicates whether or not messages sent on the rtc
datachannel are required to arrive at their destination in the same order in which they were sent (true), or if they're allowed to arrive out-of-order (false).
...And 9 more matches
RTCDataChannel.close() - Web APIs
the rtc
datachannel.close() method closes the rtc
datachannel.
... the sequence of events which occurs in response to this method being called: rtc
datachannel.readystate is set to "closing".
... the rtc
datachannel.readystate property is set to "closed".
...And 5 more matches
RTCDataChannelEvent() - Web APIs
the rtc
datachannelevent() constructor creates a new rtc
datachannelevent.
... you will rarely if ever construct an rtc
datachannelevent by hand; these events are normally created and sent by the webrtc layer itself.
... syntax var event = new rtc
datachannelevent(type, rtc
datachanneleventinit); parameters type a domstring which specifies the name of the event.
...And 5 more matches
RTCDataChannelEvent - Web APIs
the rtc
datachannelevent() constructor returns a new rtc
datachannelevent object, which represents a
datachannel event.
... these events sent to an rtcpeerconnection when its remote peer is asking to open an rtc
datachannel between the two peers.
... you will rarely if ever construct an rtc
datachannelevent by hand; instead, the webrtc layer will generate and deliver them to you at the appropriate time.
...And 5 more matches
RTCDataChannel.readyState - Web APIs
the read-only rtc
datachannel property readystate returns an enum of type rtc
datachannelstate which indicates the state of the data channel's underlying data connection.
... syntax var state = a
datachannel.readystate; values a string which is one of the values in the rtc
datachannelstate enum, indicating the current state of the underlying data transport.
... rtc
datachannelstate enum the rtc
datachannelstate enum defines string constants which reflect the current status of the rtc
datachannel's underlying data connection.
...And 4 more matches
RTCPeerConnection.ondatachannel - Web APIs
the rtcpeerconnection.on
datachannel property is an eventhandler which specifies a function which is called when the
datachannel event occurs on an rtcpeerconnection.
... this event, of type rtc
datachannelevent, is sent when an rtc
datachannel is added to the connection by the remote peer calling create
datachannel().
... at the time this event is received, the rtc
datachannel it indicates may not yet actually be open.
...And 3 more matches
RTCDataChannel.bufferedAmount - Web APIs
the read-only rtc
datachannel property bufferedamount returns the number of bytes of data currently queued to be sent over the data channel.
... syntax var amount = a
datachannel.bufferedamount; value the number of bytes of data currently queued to be sent over the data channel but have not yet been sent.
... example the snippet below includes a function which changes the contents of a block with the id "buffersize" to a string indicating the number of bytes currently buffered on an rtc
datachannel.
...And 2 more matches
RTCDataChannel.label - Web APIs
the read-only rtc
datachannel property label returns a domstring containing a name describing the data channel.
... a data channel's label is set when the channel is created by calling rtcpeerconnection.create
datachannel().
... syntax var name = a
datachannel.label; value a string identifier assigned by the web site or app when the data channel was created, as specified when rtcpeerconnection.create
datachannel() was called to create the channel.
...And 2 more matches
RTCDataChannel.onbufferedamountlow - Web APIs
the rtc
datachannel.onbufferedamountlow property is an eventhandler which specifies a function the browser calls when the bufferedamountlow event is sent to the rtc
datachannel.
... syntax rtc
datachannel.onbufferedamountlow = function; value a function which the browser will call to handle the bufferedamountlow event.
... example this example responds to the bufferedamountlow event by fetching up to 64kb of a file represented by an object source and calling rtc
datachannel.send() to queue up the retrieved data for sending on the data channel.
...And 2 more matches
RTCDataChannel.onclosing - Web APIs
the rtc
datachannel.onclosing property is an eventhandler which specifies a function to be called by the browser when the closing event is received by the rtc
datachannel.
... this is a simple event which indicates that the data channel is being closed, that is, rtc
datachannel transitions to "closing" state.
... for example, after rtc
datachannel.close() was called but the underlying data transport might not have been closed yet.
...And 2 more matches
RTCDataChannel.stream - Web APIs
the deprecated (and never part of the official specification) read-only rtc
datachannel property stream returns an id number (between 0 and 65,535) which uniquely identifies the rtc
datachannel.
... this id is set at the time the data channel is created, either by the user agent (if rtc
datachannel.negotiated is false) or by the site or app script (if negotiated is true).
... this property has been replaced with the rtc
datachannel.id property.
...And 2 more matches
RTCDataChannel.id - Web APIs
the read-only rtc
datachannel property id returns an id number (between 0 and 65,534) which uniquely identifies the rtc
datachannel.
... this id is set at the time the data channel is created, either by the user agent (if rtc
datachannel.negotiated is false) or by the site or app script (if negotiated is true).
... syntax var id = a
datachannel.id; value an unsigned short value (that is, an integer between 0 and 65,535) which uniquely identifies the data channel.
... example var pc = new rtcpeerconnection(); var dc = pc.create
datachannel("my channel"); console.log("channel id: " + dc.id); specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.id' in that specification.
RTCDataChannel.maxPacketLifeTime - Web APIs
the read-only rtc
datachannel property maxpacketlifetime returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or null.
... syntax var lifetime = a
datachannel.maxpacketlifetime; value the number of milliseconds over which the browser may continue to attempt to transmit the message until it either succeeds or gives up.
... if not set when rtcpeerconnection.create
datachannel() was called to create the data channel, this value is null.
... example // tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.maxpacketlifetime' in that specification.
RTCDataChannel.maxRetransmits - Web APIs
the read-only rtc
datachannel property maxretransmits returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or null, which indicates that there is no maximum.
... this can only be set when the rtc
datachannel is created by calling rtcpeerconnection.create
datachannel(), using the maxretransmits field in the specified options.
... syntax var tries = a
datachannel.maxretransmits; value the maximum number of times the browser will try to retransmit a message before giving up, or null if not set when rtcpeerconnection.create
datachannel() was called.
... example // tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.maxretransmits' in that specification.
RTCDataChannel.onclose - Web APIs
the rtc
datachannel.onclose property is an eventhandler which specifies a function to be called by the browser when the close event is received by the rtc
datachannel.
... syntax rtc
datachannel.onclose = function; value a function which the browser will call to handle the close event.
... let pc = new rtcpeerconnection(); let dc = pc.create
datachannel("messagechannel")}}; dc.onopen = function(event) { document.getelementbyid("messagebox").disabled = false; document.getelementbyid("sendbutton").disabled = false; }; dc.onclose = function(event) { document.getelementbyid("messagebox").disabled = true; document.getelementbyid("sendbutton").disabled = true; } /* now negotiate the connection, etc...
... */ specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.onclose' in that specification.
RTCDataChannel.onerror - Web APIs
the rtc
datachannel.onerror property is an eventhandler which specifies a function to be called when the error event is received.
... syntax rtc
datachannel.onerror = function; value a function which the browser will call to handle the error event when it occurs on the data channel.
... let pc = new rtcpeerconnection(); let dc = pc.create
datachannel("playercontrol"); dc.onerror = function(event) { myuilibrary.doalertbox({ 'network error', // alert title 'the error "' + event.message + '" occurred while handling player control network messages.', event.filename, event.lineno, event.colno }); } /* ...
... */ specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.onerror' in that specification.
RTCDataChannel.ordered - Web APIs
the read-only rtc
datachannel property ordered indicates whether or not the data channel guarantees in-order delivery of messages; the default is true, which indicates that the data channel is indeed ordered.
... this is set when the rtc
datachannel is created, by setting the ordered property on the rtc
datachannelinit object passed as rtcpeerconnection.create
datachannel()'s options parameter.
... syntax var ordered = a
datachannel.ordered; a boolean value which is true if in-order delivery is guaranteed and is otherwise false.
... example var pc = new rtcpeerconnection(); var dc = pc.create
datachannel("my channel"); if (!dc.ordered) { // handle unordered messaging } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.ordered' in that specification.
RTCDataChannel.send() - Web APIs
the send() method of the rtc
datachannel interface sends data across the data channel to the remote peer.
... syntax rtc
datachannel.send(data); parameters data the data to transmit across the connection.
... example in this example, a routine called sendmessage() is created; it accepts an object as input and sends to the remote peer, over the rtc
datachannel, a json string with the specified object and a time stamp.
... var pc = new rtcpeerconnection(); var dc = pc.create
datachannel("backchannel"); function sendmessage(msg) { let obj = { "message": msg, "timestamp": new date() } dc.send(json.stringify(obj)); } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.send()' in that specification.
RTCDataChannelEvent.channel - Web APIs
the read-only property rtc
datachannelevent.channel returns the rtc
datachannel associated with the event.
... syntax var channel = rtc
datachannelevent.channel; value a rtc
datachannel object representing the data channel linking the receiving rtcpeerconnection to its remote peer.
... example the first line of code in the
datachannel event handler shown below takes the channel from the event object and saves it locally for use by the code handling data traffic.
... pc.on
datachannel = function(event) { inbound
datachannel = event.channel; inbound
datachannel.onmessage = handleincomingmessage; inbound
datachannel.onopen = handlechannelopen; inbound
datachannel.onclose = handlechannelclose; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannelevent.channel' in that specification.
RTCPeerConnection: datachannel event - Web APIs
a
datachannel event is sent to an rtcpeerconnection instance when an rtc
datachannel has been added to the connection, as a result of the remote peer calling rtcpeerconnection.create
datachannel().
... bubbles no cancelable no interface rtc
datachannelevent event handler property on
datachannel examples this example sets up a function that handles
datachannel events by gathering the information needed to communicate with the newly added rtc
datachannel and by adding event handlers for the events that occur on that channel.
... pc.addeventlistener("
datachannel", ev => { receivechannel = ev.channel; receivechannel.onmessage = myhandlemessage; receivechannel.onopen = myhandleopen; receivechannel.onclose = myhandleclose; }, false); receivechannel is set to the value of the event's channel property, which specifies the rtc
datachannel object representing the data channel linking the remote peer to the local one.
... this same code can also instead use the rtcpeerconnection interface's on
datachannel event handler property, like this: pc.on
datachannel = ev => { receivechannel = ev.channel; receivechannel.onmessage = myhandlemessage; receivechannel.onopen = myhandleopen; receivechannel.onclose = myhandleclose; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of '
datachannel' in that specification.
RTCDataChannel.binaryType - Web APIs
the property binarytype on the rtc
datachannel interface is a domstring which specifies the type of javascript object which should be used to represent binary data received on the rtc
datachannel.
... syntax var type = a
datachannel.binarytype; a
datachannel.binarytype = type; value a domstring that can have one of these values: "blob" received binary messages' contents will be contained in blob objects.
... var dc = peerconnection.create
datachannel("binary"); dc.binarytype = "arraybuffer"; dc.onmessage = function(event) { let bytearray = new uint8array(event.data); let hexstring = ""; bytearray.foreach(function(byte) { hexstring += byte.tostring(16) + " "; }); }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.binarytype' in that specification.
RTCDataChannel.bufferedAmountLowThreshold - Web APIs
the rtc
datachannel property bufferedamountlowthreshold is used to specify the number of bytes of buffered outgoing data that is considered "low." the default value is 0.
... syntax var threshold = a
datachannel.bufferedamountlowthreshold; a
datachannel.bufferedamountlowthreshold = threshold; value the number of queued outgoing data bytes below which the buffer is considered to be "low." example in this snippet of code, bufferedamountlowthreshold is set to 64kb, and a handler for the bufferedamountlow event is established by setting the rtc
datachannel.onbufferedamountlow property to a function which...
... var dc = peerconnection.create
datachannel("file transfer"); dc.bufferedamountlowthreshold = 65535; dc.onbufferedamountlow = function() { /* use send() to queue more data to be sent */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.bufferedamountlowthreshold' in that specification.
RTCDataChannel: close event - Web APIs
the close event is sent to the onclose event handler on an rtc
datachannel instance when the data transport being used for the data channel has closed.
... before any further data can be transferred using rtc
datachannel, a new data channel instance must be created.
... bubbles no cancelable no interface event event handler property rtc
datachannel.onclose examples this example sets up a handler for the close event for the rtc
datachannel named dc; its responsibility in this example is to update user interface elements to reflect that there is no longer an ongoing call, and to allow a new call to be started.
RTCDataChannel: message event - Web APIs
the webrtc message event is sent to the onmessage event handler on an rtc
datachannel object when a message has been received from the remote peer.
... examples for a given rtc
datachannel, dc, created for a peer connection using its create
datachannel() method, this code sets up a handler for incoming messages and acts on them by adding the data contained within the message to the current document as a new <p> (paragraph) element.
... you can also use an rtc
datachannel object's onmessage event handler property to set the event handler: dc.onmessage = ev => { let newparagraph = document.createelement("p"); let textnode = document.createtextnode(event.data); newparagraph.appendchild(textnode); document.body.appendchild(newparagraph); } specifications specification status comment webrtc 1.0: real-time communication between brow...
RTCDataChannel.negotiated - Web APIs
the read-only rtc
datachannel property negotiated indicates whether the rtc
datachannel's connection was negotiated by the web app (true) or by the webrtc layer (false).
... syntax var negotiated = a
datachannel.negotiated; value true if the rtc
datachannel's connection was negotiated by the web app itself; false if the negotiation was handled by the webrtc layer.
... if (
datachannel.negotiated) { shutdownremotechannel(
datachannel.id); } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.negotiated' in that specification.
RTCDataChannel.onmessage - Web APIs
the rtc
datachannel.onmessage property stores an eventhandler which specifies a function to be called when the message event is fired on the channel.
... syntax rtc
datachannel.onmessage = function; value a function which the browser will call to handle the message event.
... let pc = new rtcpeerconnection(); let dc = pc.create
datachannel(); dc.onmessage = function(event) { var el = document.createelement("p"); var txtnode = document.createtextnode(event.data); el.appendchild(txtnode); receivebox.appendchild(el); } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.onmessage' in that specification.
RTCDataChannel.onopen - Web APIs
the rtc
datachannel.onopen property is an eventhandler which specifies a function to be called when the open event is fired; this is a simple event which is sent when the data channel's underlying data transport—the link over which the rtc
datachannel's messages flow—is established or re-established.
... syntax rtc
datachannel.onopen = function; value a function which the browser will call to handle the open event.
... let dc = mypeerconnection.create
datachannel("message channel"); dc.onopen = function(event) { let messagebox = document.getelementbyid("messagebox"); let sendbutton = document.getelementbyid("sendbutton"); messagebox.disabled = false; messagebox.focus(); sendbutton.disabled = false; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.onopen' in t...
RTCDataChannel.protocol - Web APIs
the read-only rtc
datachannel property protocol returns a domstring containing the name of the subprotocol in use.
... syntax var subprotocol = a
datachannel.protocol; value a string identifying the app-defined subprotocol being used for exchanging data on the channel.
... example var pc = new rtcpeerconnection(); var dc = pc.create
datachannel("my channel", { protocol: "json" }); function handlechannelmessage(
datachannel, msg) { switch(
datachannel.protocol) { case "json": /* process json data */ break; case "raw": /* process raw binary data */ break; } } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtc
datachannel.protocol' in that specification.
RTCDataChannel.reliable - Web APIs
the read-only rtc
datachannel property reliable indicates whether or not the data channel is reliable.
...use rtc
datachannel.ordered instead in any new code, and update existing code as soon as possible.
... syntax var reliable = a
datachannel.reliable; value true if the rtc
datachannel's connection is reliable; false if it isn't.
RTCDataChannel: bufferedamountlow event - Web APIs
a bufferedamountlow event is sent to an rtc
datachannel when the number of bytes currently in the outbound data transfer buffer falls below the threshold specified in bufferedamountlowthreshold.
... let pc = new rtcpeerconnection(); let dc = pc.create
datachannel("sendfile"); let source = /* source data object */ dc.bufferedamountlowthreshold = 65536; pc.addeventlistener("bufferedamountlow", ev => { if (source.position <= source.length) { dc.send(source.readfile(65536)); } }, false); after creating the rtcpeerconnection, this calls rtcpeerconnection.create
datachannel() to create the data channel.
RTCDataChannel: error event - Web APIs
a webrtc error event is sent to an rtc
datachannel object's onerror error handler when an error occurs on the data channel.
... you can also set up an event handler for error events using the rtc
datachannel interface's onerror event handler property: dc.onerror = ev => { const err = ev.error; /* ...
RTCDataChannel: open event - Web APIs
the webrtc open event is sent to an rtc
datachannel object's onopen event handler when the underlying transport used to send and receive the data channel's messages is opened or re-opened.
... bubbles no cancelable no interface rtc
datachannelevent event handler property onopen examples this example adds to the rtc
datachannel dc a handler for the open event that adjusts the user interface to indicate that a chat window is ready to be used after a connection has been established.
Index - Web APIs
3228 rtc
datachannel api, communication, data transfer, experimental, interface, media, networking, rtc
datachannel, reference, webrtc, webrtc api the rtc
datachannel interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
... 3229 rtc
datachannel.binarytype experimental, property, rtc
datachannel, reference, webrtc, binarytype the property binarytype on the rtc
datachannel interface is a domstring which specifies the type of javascript object which should be used to represent binary data received on the rtc
datachannel.
... 3230 rtc
datachannel.bufferedamount experimental, property, rtc
datachannel, read-only, reference, webrtc, bufferedamount the read-only rtc
datachannel property bufferedamount returns the number of bytes of data currently queued to be sent over the data channel.
...And 33 more matches
Using WebRTC data channels - Web APIs
since all webrtc components are required to use encryption, any data transmitted on an rtc
datachannel is automatically secured using datagram transport layer security (dtls).
... creating a data channel the underlying data transport used by the rtc
datachannel can be created in one of two ways: let webrtc create the transport and announce it to the remote peer for you (by causing it to receive a
datachannel event).
... automatic negotiation often, you can allow the peer connection to handle negotiating the rtc
datachannel connection for you.
...And 11 more matches
WebRTC API - Web APIs
once a connection has been established and opened using rtcpeerconnection, media streams (mediastreams) and/or data channels (rtc
datachannels) can be added to the connection.
... you can also use the connection between two peers to exchange arbitrary binary data using the rtc
datachannel interface.
... rtc
datachannel represents a bi-directional data channel between two peers of a connection.
...And 8 more matches
RTCPeerConnection - Web APIs
this happens whenever the aggregate state of the connection changes.on
datachannel the rtcpeerconnection.on
datachannel property is an eventhandler which specifies a function which is called when the
datachannel event occurs on an rtcpeerconnection.
... this event, of type rtc
datachannelevent, is sent when an rtc
datachannel is added to the connection by the remote peer calling create
datachannel().onicecandidatethe rtcpeerconnection property onicecandidate property is an eventhandler which specifies a function to be called when the icecandidate event occurs on an rtcpeerconnection instance.
...the answer is delivered to the returned promise, and should then be sent to the source of the offer to continue the negotiation process.create
datachannel() the create
datachannel() method on the rtcpeerconnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.createoffer()the createoffer() method of the rtcpeerconnection interface initiates the creation of an sdp offer for the purpose of starting a new webrtc connection to a remote peer.generatecertificate()the generatecertificate() meth...
...And 2 more matches
RTCError - Web APIs
examples in this example, a handler is established for an rtc
datachannel's error event.
...
datachannel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let errline = error.sdplinenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting line ${errline} of the sdp: ${errmessage}`; showmyalertmessage("data channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is constructed to present the error message and the line number within the sdp at which the error occurred.
...you can also use the rtc
datachannel object's onerror event handler property, like this:
datachannel.onerror = (event) => { let error = event.error; /* and so forth */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcerror' in that specification.
RTCErrorEvent.error - Web APIs
examples in this example, a handler is established for an rtc
datachannel's error event.
...
datachannel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let errline = error.sdplinenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting line ${errline} of the sdp: ${errmessage}`; showmyalertmessage("data channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is constructed to present the error message and the line number within the sdp at which the error occurred.
...you can also use the rtc
datachannel object's onerror event handler property, like this:
datachannel.onerror = (event) => { let error = event.error; /* and so forth */ }; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcerrorevent.error' in that specification.
RTCDtlsTransport - Web APIs
when not using bundle when the connection is created without using bundle, each rtp or rtcp component of each rtcrtptransceiver has its own rtcdtlstransport; that is, every rtcrtpsender and rtcrtpreceiver, has its own transport, and all rtc
datachannel objects share a transport dedicated to sctp.
... data channels rtc
datachannels use sctp to communicate.
RTCPeerConnection.sctp - Web APIs
the sctp transport is used for transmitting and receiving data for any and all rtc
datachannels on the peer connection.
... example var pc = new rtcpeerconnection(); var channel = pc.create
datachannel("mydata"); channel.onopen = function(event) { channel.send('sending a message'); } channel.onmessage = function(event) { console.log(event.data); } // determine the largest message size that can be sent var sctp = pc.sctp; var maxmessagesize = sctp.maxmessagesize; specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.sctp' in that specification.
RTCSctpTransport - Web APIs
properties also inherits properties from: eventtarget rtcsctptransport.maxchannelsread only an integer value indicating the maximum number of rtc
datachannels that can be open simultaneously.
... rtcsctptransport.maxmessagesizeread only an integer value indicating the maximum size, in bytes, of a message which can be sent using the rtc
datachannel.send() method.
WebRTC Statistics API - Web APIs
rtcrtpcontributingsourcestats rtcstats data-channel statistics related to one rtc
datachannel on the connection.
... rtc
datachannelstats rtcstats ice-server statistics about the connection to an ice server (stun or turn.
Event - Web APIs
event domtransactionevent dragevent editingbeforeinputevent errorevent fetchevent focusevent gamepadevent hashchangeevent idbversionchangeevent inputevent keyboardevent mediastreamevent messageevent mouseevent mutationevent offlineaudiocompletionevent overconstrainederror pagetransitionevent paymentrequestupdateevent pointerevent popstateevent progressevent relatedevent rtc
datachannelevent rtcidentityerrorevent rtcidentityevent rtcpeerconnectioniceevent sensorevent storageevent svgevent svgzoomevent timeevent touchevent trackevent transitionevent uievent userproximityevent webglcontextevent wheelevent constructor event() creates an event object, returning it to the caller.
RTCPeerConnection.close() - Web APIs
example var pc = new rtcpeerconnection(); var dc = pc.create
datachannel("my channel"); dc.onmessage = function (event) { console.log("received: " + event.data); pc.close(); // we decided to close after the first received message }; dc.onopen = function () { console.log("
datachannel open"); }; dc.onclose = function () { console.log("
datachannel close"); }; specifications specification status comment webrtc 1.0: real-time commun...
RTCRtpTransceiver - Web APIs
each sdp media section describes one bidirectional srtp ("secure real time protocol") stream (excepting the media section for rtc
datachannel, if present).
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 rtc
datachannel.
RTCStatsReport - Web APIs
data-channel an rtc
datachannelstats object which contains statistics about each rtc
datachannel on the connection.
RTCStatsType - Web APIs
data-channel an rtc
datachannelstats object which contains statistics about each rtc
datachannel on the connection.
Web APIs
plugin pluginarray point pointerevent popstateevent positionoptions processinginstruction progressevent promiserejectionevent publickeycredential publickeycredentialcreationoptions publickeycredentialrequestoptions pushevent pushmanager pushmessagedata pushregistrationmanager pushsubscription r rtcansweroptions rtccertificate rtcconfiguration rtcdtmfsender rtcdtmftonechangeevent rtc
datachannel rtc
datachannelevent rtcdtlstransport rtcerror rtcerrorevent rtcicecandidate rtcicecandidateinit rtcicecandidatepair rtcicecandidatepairstats rtcicecandidatestats rtcicecandidatetype rtcicecomponent rtcicecredentialtype rtcicegathererstate rtciceparameters rtciceprotocol rtcicerole rtciceserver rtcicetcpcandidatetype rtcicetransport rtcicetransportstate rtcidentityassertion rtcidentityer...