Interface ICastSession
- Namespace
- DotNetBrowser.Cast
- Assembly
- DotNetBrowser.dll
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.
public interface ICastSession
Properties
- Description
Gets the description of the session. Examples: "Mirroring tab (www.example.com)", "Casting media", "Casting YouTube".
- IsAlive
Indicates whether this cast session is alive.
- MediaReceiver
Gets the media receiver of this session.
- Mode
Gets the mode of the session.
Methods
- Stop()
Stops the cast session.
Events
- Stopped
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.