Table of Contents

Method CastScreen

Namespace
DotNetBrowser.Cast
Assembly
DotNetBrowser.dll

CastScreen(IMediaReceiver)

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

Task<ICastSession> CastScreen(IMediaReceiver receiver)

Parameters

receiver IMediaReceiver

media receiver for casting.

Returns

Task<ICastSession>

The task that represents the result of the asynchronous start of the cast session. If the cast session has not been started, the task is completed with CastSessionStartFailedException. If the browser is closed during the casting start,the task will be canceled.

Remarks

The receiver should support the Screen cast mode.

Exceptions

MediaRoutingException

The media routing switch was not set for IEngine.

CastScreen(IMediaReceiver, ScreenCastOptions)

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

Task<ICastSession> CastScreen(IMediaReceiver receiver, ScreenCastOptions options)

Parameters

receiver IMediaReceiver

media receiver for casting.

options ScreenCastOptions

screen cast options for casting.

Returns

Task<ICastSession>

The task that represents the result of the asynchronous start of the cast session. If the cast session has not been started, the task is completed with CastSessionStartFailedException. If the browser is closed during the casting start,the task will be canceled.

Remarks

The receiver should support the Screen cast mode.

Exceptions

MediaRoutingException

The media routing switch was not set for IEngine.