A
object is used to initiate or reconnect to a presentation made by a controlling browsing context. The PresentationRequest
object MUST be implemented in a controlling browsing context provided by a controlling user agent.PresentationRequest
When a
is constructed, the given PresentationRequest
urls
MUST be used as the list of presentation request URLs which are each a possible presentation URL for the
instance.PresentationRequest
PresentationRequest()
None
PresentationRequest.onconnectionavailable
PresentationRequest.start()
or PresentationRequest.join()
. This method provides a object with a reference to the created or joined object.PresentationRequest.start()
Promise
that resolves with a PresentationConnection
after the user agent prompts the user to select a display and grant permission to use that display.PresentationRequest.reconnect()
reconnect(presentationId)
method is called on a PresentationRequest
presentationRequest, the user agent MUST run the following steps to reconnect to a presentation.PresentationRequest.getAvailability()
getAvailability()
method is called, the user agent MUST run the steps as the link.Specification | Status | Comment |
---|---|---|
Presentation API The definition of 'PresentationRequest interface' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 48 | ? | 51
|
? | 35 | ? |
Secure context required (HTTPS) | 61 | ? | ? | ? | 48 | ? |
PresentationRequest() constructor
|
48 | ? | 51
|
? | 35 | ? |
getAvailability
|
48 | ? | 51
|
? | 35 | ? |
onconnectionavailable
|
48 | ? | 51
|
? | 35 | ? |
reconnect
|
48 | ? | 51
|
? | 35 | ? |
start
|
48 | ? | 51
|
? | 35 | ? |
startWithDevice
|
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 | ? | ? |
Secure context required (HTTPS) | 61 | 61 | ? | ? | 48 | ? | ? |
PresentationRequest() constructor
|
48 | 48 | ? | 51
|
35 | ? | ? |
getAvailability
|
48 | 48 | ? | 51
|
35 | ? | ? |
onconnectionavailable
|
48 | 48 | ? | 51
|
35 | ? | ? |
reconnect
|
48 | 48 | ? | 51
|
35 | ? | ? |
start
|
48 | 48 | ? | 51
|
35 | ? | ? |
startWithDevice
|
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