ChromeCastController class

Controller for a single ChromeCastButton instance running on the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
The id for this controller
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addSessionListener() Future<void>
Add listener for receive callbacks.
isConnected() Future<bool?>
Returns true when a cast session is connected, false otherwise.
isPlaying() Future<bool?>
Returns true when a cast session is playing, false otherwise.
loadMedia(String url) Future<void>
Load a new media by providing an url.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses the video playback.
play() Future<void>
Plays the video playback.
removeSessionListener() Future<void>
Remove listener for receive callbacks.
seek({bool relative = false, double interval = 10.0}) Future<void>
If relative is set to false sets the video position to an interval from the start.
stop() Future<void>
Stop the current video.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

init(int id) Future<ChromeCastController>
Initialize control of a ChromeCastButton with id.