RemoteMediaClient class Null safety

Class for controlling a media player application running on a receiver.

Constructors

RemoteMediaClient(CastHostApi _hostApi)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onAdBreakClipProgressUpdated AdBreakClipProgressListener?
Callback to get updates on the progess of the currently playing ad break clip
read / write
onAdBreakStatusUpdated VoidCallback?
Called when updated ad break status information is received.
read / write
onMediaError VoidCallback?
Called when receiving media error message.
read / write
onMetadataUpdated VoidCallback?
Called when updated media metadata is received.
read / write
onPreloadStatusUpdated VoidCallback?
Called when updated player queue preload status information is received, for example, the next item to play has been preloaded.
read / write
onProgressUpdated ProgressListener?
Callback to get updates on the progress of the currently playing media.
read / write
onQueueStatusUpdated VoidCallback?
Called when updated player queue status information is received.
read / write
onSendingRemoteMediaRequest VoidCallback?
Called when there is an outgoing request to the receiver.
read / write
playerState ValueListenable<PlayerState>
Listenable state of the remote media player
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispatchPlayerStateUpdate(PlayerState playerState) → void
Internal method that shouldn't be visible
getMediaInfo() Future<MediaInfo>
Returns the current media information
load(MediaLoadRequestData request) → void
Loads a new media item with specified options.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pause() → void
Pauses playback of the current media item.
play() → void
Begins (or resumes) playback of the current media item.
showTracksChooserDialog() → void
A Dialog to show the available tracks (Text and Audio) for user to select.
skipAd() → void
Skips the playing ad.
stop() → void
Stops playback of the current media item.
toString() String
A string representation of this object. [...]
inherited

Operators

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