Click or drag to resize

ICastSession Interface

A session of casting media content to a media IMediaReceiver receiver.

The session is Discovered discovered when the user starts casting the browser/screen content or a presentation of media content via the DotNetBrowser API, or another application, i.e.Google Chrome. To indicate that the cast session has been started by another profile and, accordingly, a Chromium instance the IsLocal property is provided.

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

The ICastSession type exposes the following members.

Properties
  NameDescription
Public propertyDescription
Gets the description of the session. Examples: "Mirroring tab (www.example.com)", "Casting media", "Casting YouTube".
Public propertyIsAlive
Indicates whether this cast session is alive.
Public propertyIsLocal
Indicates whether this cast session is initiated and managed by the current IProfile.
Public propertyMediaReceiver
Gets the media receiver of this session.
Public propertyMode
Gets the mode of the session.
Top
Methods
  NameDescription
Public methodStop
Stops the cast session.
Top
Events
  NameDescription
Public eventStopped
Occurs when a ICastSession session has been stopped.

Also, the cast session is stopped when the user starts a new cast session to the MediaReceiver receiver of this cast session.

Top
See Also