This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The start()
property of the PresentationRequest
interface returns a Promise
that resolves with a PresentationConnection
after the user agent prompts the user to select a display and grant permission to use that display.
var promise = presentationRequest.start() promise.then(function(PresentationConnection) { ... }) .catch(function(error) { ...})
None.
A Promise
that resolves with a PresentationConnection
.
Specification | Status | Comment |
---|---|---|
Presentation API The definition of 'start()' in that specification. | Candidate Recommendation | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 48 | ? | ? | 35 | ? |
Secure contexts only | 61 | ? | ? | 48 | ? |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | 48 | 48 | ? | ? | ? | 35 | ? |
Secure contexts only | 61 | 61 | ? | ? | ? | 48 | ? |
© 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/start