Click or drag to resize

ICast Interface

A service that provides access for casting media on receivers.

Namespace:  DotNetBrowser.Cast
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.3
Syntax
C#
public interface ICast

The ICast type exposes the following members.

Properties
  NameDescription
Public propertyStartPresentationHandler
Gets or sets a handler that is used when a presentation has been requested via the JavaScript Presentation API.
Top
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