12. Event summary
This section is non-normative.
The following events fire on RTCDataChannel
objects:
Event name | Interface | Fired when… |
---|---|---|
open | Event | The object’s underlying data transport has been established (or re-established). |
message | MessageEvent [html] | A message was successfully received. |
bufferedamountlow | Event | The object’s decreases from above its to less than or equal to its . |
error |
| An error occurred on the data channel. |
closing | Event | The object transitions to the “ “ state |
close | Event | The object’s underlying data transport has been closed. |
The following events fire on RTCPeerConnection
objects:
Event name | Interface | Fired when… |
---|---|---|
track |
| New incoming media has been negotiated for a specific , and that receiver’s has been added to any associated remote MediaStream s. |
negotiationneeded | Event | The browser wishes to inform the application that session negotiation needs to be done (i.e. a createOffer call followed by setLocalDescription). |
signalingstatechange | Event | The signaling state has changed. This state change is the result of either or being invoked. |
iceconnectionstatechange | Event | The ‘s ICE connection state has changed. |
icegatheringstatechange | Event | The ‘s ICE gathering state has changed. |
icecandidate |
| A new is made available to the script. |
connectionstatechange | Event | The . has changed. |
icecandidateerror |
| A failure occured when gathering ICE candidates. |
datachannel |
| A new is dispatched to the script in response to the other peer creating a channel. |
The following events fire on RTCDTMFSender
objects:
Event name | Interface | Fired when… |
---|---|---|
tonechange |
| The object has either just begun playout of a tone (returned as the attribute) or just ended the playout of tones in the (returned as an empty value in the attribute). |
The following events fire on RTCIceTransport
objects:
Event name | Interface | Fired when… |
---|---|---|
statechange | Event | The state changes. |
gatheringstatechange | Event | The gathering state changes. |
selectedcandidatepairchange | Event | The ‘s selected candidate pair changes. |
The following events fire on RTCDtlsTransport
objects:
Event name | Interface | Fired when… |
---|---|---|
statechange | Event | The state changes. |
error |
| An error occurred on the (either “ “ or “ “). |
The following events fire on RTCSctpTransport
objects:
Event name | Interface | Fired when… |
---|---|---|
statechange | Event | The state changes. |