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 PresentationRequesturls MUST be used as the list of presentation request URLs which are each a possible presentation URL for the instance.PresentationRequest
Constructor
PresentationRequest()- Creates a PresentationRequest.
Properties
None
Event handlers
PresentationRequest.onconnectionavailable- Fires on a successful call to
PresentationRequest.start()orPresentationRequest.join(). This method provides a object with a reference to the created or joined object.
Methods
PresentationRequest.start()- Returns a
Promisethat resolves with aPresentationConnectionafter the user agent prompts the user to select a display and grant permission to use that display. PresentationRequest.reconnect()- When the
reconnect(presentationId)method is called on aPresentationRequestpresentationRequest, the user agent MUST run the following steps to reconnect to a presentation. PresentationRequest.getAvailability()- When the
getAvailability()method is called, the user agent MUST run the steps as the link.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Presentation API The definition of 'PresentationRequest interface' in that specification. |
Candidate Recommendation | Initial definition. |
Browser Compatibility
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
| 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 | ? |

