Click or drag to resize

ICast Methods

The ICast type exposes the following members.

Methods
  NameDescription
Public methodCastContent
Starts casting the browser content to IMediaReceiver.
Public methodCastScreen(IMediaReceiver)
Starts casting screen's content by selecting the screen in the picker dialog.
Public methodCastScreen(IMediaReceiver, ScreenCastOptions)
Starts casting the screen's content to the media receiver.
Public methodDefaultPresentationRequest
The default JavaScript PresentationRequest specified on the page.

Usually, the default PresentationRequest is specified on resources like YouTube. The developer can specify it this way:

const presentationRequest = new PresentationRequest(['receiver/index.html']);
navigator.presentation.defaultRequest = presentationRequest;

Top
See Also