GoogleCastIOSMediaStatus class
Represents the media status for a Google Cast session on iOS.
This class extends GoggleCastMediaStatus and provides additional iOS-specific mapping and construction from platform channel data.
- Inheritance
-
- Object
- GoggleCastMediaStatus
- GoogleCastIOSMediaStatus
Constructors
-
GoogleCastIOSMediaStatus.new({required int mediaSessionID, required CastMediaPlayerState playerState, required num playbackRate, required num volume, required bool isMuted, required GoogleCastMediaRepeatMode repeatMode, List<
int> ? activeTrackIds, GoogleCastBrakeStatus? adBreakStatus, int? currentItemId, GoogleCastMediaIdleReason? idleReason, GoogleCastMediaLiveSeekableRange? liveSeekableRange, GoogleCastMediaInformation? mediaInformation}) - Creates a new GoogleCastIOSMediaStatus instance.
-
GoogleCastIOSMediaStatus.fromMap(Map<
String, dynamic> map) -
Creates a GoogleCastIOSMediaStatus from a map received from the platform channel.
factory
Properties
-
activeTrackIds
→ List<
int> ? -
List of IDs corresponding to the active Tracks.
finalinherited
- 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.
finalinherited
- 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.
finalinherited
- 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.
finalinherited
- isMuted → bool
-
The stream muted state.
finalinherited
- 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.
finalinherited
- mediaInformation → GoogleCastMediaInformation?
-
The media information for the current session.
finalinherited
- mediaSessionID → int
-
Unique ID for the playback of this specific session.
finalinherited
- playbackRate → num
-
Indicates whether the media time is progressing, and at what rate.
1.0 is regular time, 0.5 is slow motion.
finalinherited
- playerState → CastMediaPlayerState
-
Describes the state of the player as one of the following: CastMediaPlayerState.
finalinherited
- repeatMode → GoogleCastMediaRepeatMode
-
The repeat mode for playing the queue.
finalinherited
- 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.
finalinherited
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