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
- mediaQueue ↔ MediaQueue
-
Returns the associated MediaQueue.
read / write
-
mediaStatusStream
↔ Stream<
MediaStatus> -
read / write
- onAdBreakClipProgressUpdated ↔ AdBreakClipProgressListener?
-
Callback to get updates on the progess of the currently playing ad break clip
read / write
- onAdBreakStatusUpdated ↔ MediaStatusListener?
-
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
-
progressStream
↔ Stream<
ProgressInfo> -
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
dispatchMediaStatusUpdate(
MediaStatus mediaStatus) → void - Internal method that shouldn't be visible
-
dispatchPlayerStateUpdate(
PlayerState playerState) → void - Internal method that shouldn't be visible
-
dispatchProgressUpdate(
int progressMs, int durationMs) → void - Internal method that shouldn't be visible
-
dispose(
) → void -
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.
-
queueAppendItem(
MediaQueueItem item) → void - Appends a new media item to the end of the queue.
-
queueNext(
) → void - Jumps to the next item in the queue.
-
queuePrev(
) → void - Jumps to the previous item in the queue.
-
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