When the reconnect(presentationId)
method is called on a PresentationRequest
presentationRequest, the user agent MUST run the following steps to reconnect to a presentation:
PresentationRequest
object that reconnect
()
was called on."Prohibits Mixed Security Contexts"
and the presentation request URL of presentationRequest is an a priori unauthenticated URL, then return a Promise rejected with a SecurityError
and abort these steps.SecurityError
and abort these steps.PresentationConnection
that meets the following criteria: its controlling browsing context is the current browsing context, its presentation connection state is not terminated
, its presentation URL is equal to one of the presentation request URLs of presentationRequest and its presentation identifier is equal to presentationId.PresentationConnection
exists, run the following steps: PresentationConnection
.connecting
or connected
, then abort all remaining steps.connecting
.PresentationConnection
that meets the following criteria: its presentation connection state is not terminated
, its presentation URL is equal to one of the presentation request URLs of presentationRequest, and its presentation identifier is equal to presentationId.PresentationConnection
exists, let E be that PresentationConnection
, and run the following steps: PresentationConnection
S.connecting
.connectionavailable
, that uses the PresentationConnectionAvailableEvent
interface with the connection
attribute initialized to S, at presentationRequest. The event must not bubble and cancelable and should have no default action.NotFoundError
exception.Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 48 | ? | 51
|
? | 35 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 48 | 48 | ? | 51
|
35 | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/reconnect