Table of Contents

Interface ICast

Namespace
DotNetBrowser.Cast
Assembly
DotNetBrowser.dll

A service that provides access for casting media on receivers.

public interface ICast

Properties

StartPresentationHandler

Gets or sets a handler that is used when a presentation has been requested via the JavaScript Presentation API.

Methods

CastContent(IMediaReceiver)

Starts casting the browser content to IMediaReceiver.

CastScreen(IMediaReceiver)

Starts casting screen's content by selecting the screen in the picker dialog.

CastScreen(IMediaReceiver, ScreenCastOptions)

Starts casting the screen's content to the media receiver.

DefaultPresentationRequest()

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;