This sample illustrates the use of
Presentation API,
which gives the ability to access external presentation-type displays and use
them for presenting web content. The PresentationRequest object
is associated with a request to initiate to a presentation made by a
controlling browsing context and it takes in a presentation request URL when
constructed. A presentation can be started by calling the
start() method on the PresentationRequest object.
Note that this demo uses a cast: URL to start the presentation
instead of the receiver page's URL. This will load the receiver page on a
Chromecast, but the sender page will be unable to communicate with it as the
Chromecast does not implement the Presentation Receiver API.