GoogleCastRemoteMediaClientPlatformInterface class abstract
Platform interface for Google Cast remote media client functionality.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediaStatus → GoggleCastMediaStatus?
-
Current media status of the remote media client.
no setter
-
mediaStatusStream
→ Stream<
GoggleCastMediaStatus?> -
Stream of media status changes.
no setter
- playerPosition → Duration
-
Current player position.
no setter
-
playerPositionStream
→ Stream<
Duration> -
Stream of player position changes.
no setter
- queueHasNextItem → bool
-
Whether the queue has a next item.
no setter
- queueHasPreviousItem → bool
-
Whether the queue has a previous item.
no setter
-
queueItems
→ List<
GoogleCastQueueItem> -
Current list of queue items.
no setter
-
queueItemsStream
→ Stream<
List< GoogleCastQueueItem> > -
Stream of queue items changes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadMedia(
GoogleCastMediaInformation mediaInfo, {bool autoPlay = true, Duration playPosition = Duration.zero, double playbackRate = 1.0, List< int> ? activeTrackIds, String? credentials, String? credentialsType}) → Future<void> - Loads media on the remote media client.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - Pauses media playback.
-
play(
) → Future< void> - Starts or resumes media playback.
-
queueInsertItemAndPlay(
GoogleCastQueueItem item, {required int beforeItemWithId}) → Future< void> - Inserts an item into the queue and plays it.
-
queueInsertItems(
List< GoogleCastQueueItem> items, {int? beforeItemWithId}) → Future<void> - Inserts items into the queue.
-
queueJumpToItemWithId(
int itemId) → Future< void> - Jumps to a specific item in the queue by its ID.
-
queueLoadItems(
List< GoogleCastQueueItem> queueItems, {GoogleCastQueueLoadOptions? options}) → Future<void> - Loads queue items on the remote media client.
-
queueNextItem(
) → Future< void> - Plays the next item in the queue.
-
queuePrevItem(
) → Future< void> - Plays the previous item in the queue.
-
queueRemoveItemsWithIds(
List< int> itemIds) → Future<void> - Removes items from the queue by their IDs.
-
queueReorderItems(
{required List< int> itemsIds, required int? beforeItemWithId}) → Future<void> - Reorders items in the queue.
-
seek(
GoogleCastMediaSeekOption option) → Future< void> - Seeks to a specific position in the media.
-
setActiveTrackIDs(
List< int> activeTrackIDs) → Future<void> - Sets the active track IDs.
-
setPlaybackRate(
double rate) → Future< void> - Sets the playback rate.
-
setTextTrackStyle(
TextTrackStyle textTrackStyle) → Future< void> - Sets the text track style.
-
stop(
) → Future< void> - Stops media playback.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited