GoggleCastMediaStatus class

Represents the status of a media session, including player state, volume, repeat mode, and more.

Implementers

Constructors

GoggleCastMediaStatus.new({required int mediaSessionID, required CastMediaPlayerState playerState, GoogleCastMediaIdleReason? idleReason, required num playbackRate, GoogleCastMediaInformation? mediaInformation, required num volume, required bool isMuted, required GoogleCastMediaRepeatMode repeatMode, int? currentItemId, List<int>? activeTrackIds, GoogleCastBrakeStatus? adBreakStatus, GoogleCastMediaLiveSeekableRange? liveSeekableRange})
Item ID of the item that is currently loading on the receiver. Null if no item is currently loading. Queue data

Properties

activeTrackIds List<int>?
List of IDs corresponding to the active Tracks.
final
adBreakStatus GoogleCastBrakeStatus?
Status of a break when a break is playing on the receiver. This field will be defined when the receiver is playing a break, empty when a break is not playing, but is present in the content, and undefined if the content contains no breaks.
final
currentItemId int?
Item ID of the item that was active in the queue (it may not be playing) at the time the media status change happened.
final
hashCode int
The hash code for this object.
no setterinherited
idleReason GoogleCastMediaIdleReason?
If the playerState is IDLE and the reason it became IDLE is known, this property is provided.
final
isMuted bool
The stream muted state.
final
liveSeekableRange GoogleCastMediaLiveSeekableRange?
Seekable range of a live or event stream. I t uses relative media time in seconds. It will be undefined for VOD streams.
final
mediaInformation GoogleCastMediaInformation?
The media information for the current session.
final
mediaSessionID int
Unique ID for the playback of this specific session.
final
playbackRate num
Indicates whether the media time is progressing, and at what rate. 1.0 is regular time, 0.5 is slow motion.
final
playerState CastMediaPlayerState
Describes the state of the player as one of the following: CastMediaPlayerState.
final
repeatMode GoogleCastMediaRepeatMode
The repeat mode for playing the queue.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume num
The current position of the media player since the beginning of the content, in seconds. For live streams, this is the time from the beginning of the event.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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