Click or drag to resize

ICast.CastScreen Method (IMediaReceiver, ScreenCastOptions)

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

Namespace:  DotNetBrowser.Cast
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.1
Syntax
C#
Task<ICastSession> CastScreen(
	IMediaReceiver receiver,
	ScreenCastOptions options
)

Parameters

receiver
Type: DotNetBrowser.Cast.IMediaReceiver
media receiver for casting.
options
Type: DotNetBrowser.Cast.ScreenCastOptions
screen cast options for casting.

Return Value

Type: 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.
Exceptions
ExceptionCondition
MediaRoutingException The media routing switch was not set for IEngine.
Remarks

The receiver should support the Screen cast mode.

See Also