GoggleCastMediaStatus class
Constructors
-
GoggleCastMediaStatus({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?
-
optional If the playerState is IDLE and the reason it
became IDLE is known, this property is provided. If the
player is IDLE because it just started, this property
will not be provided; if the player is in any other
state this property should not be provided.
The following values apply:
final
-
isMuted
→ bool
-
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?
-
final
-
mediaSessionID
→ int
-
Unique ID for the playback of this specific session. This ID is
set by the receiver at LOAD and can be used to identify a
specific instance of a playback. For example, two playbacks of
"Wish you were here" within the same session would each have
a unique mediaSessionId.
final
-
playbackRate
→ num
-
Indicates whether the media time is progressing, and at what
rate. This is independent of the player state since the media
time can stop in any state. 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.
If this a live stream content, then this
field represents the time in seconds from
the beginning of the event that should be
known to the player.
Stream volume
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