GoogleCastMediaInformationAndroid class

Android-specific extension of GoogleCastMediaInformation.

Inheritance

Constructors

GoogleCastMediaInformationAndroid({required String contentId, required CastMediaStreamType streamType, required String contentType, String? atvEntity, List<CastBreakClips>? breakClips, List<CastBreak>? breaks, Uri? contentUrl, Map<String, dynamic>? customData, Duration? duration, String? entity, CastHlsSegmentFormat? hlsSegmentFormat, HlsVideoSegmentFormat? hlsVideoSegmentFormat, GoogleCastMediaMetadata? metadata, DateTime? startAbsoluteTime, TextTrackStyle? textTrackStyle, List<GoogleCastMediaTrack>? tracks, List<UserActionState>? userActionStates, VastAdsRequest? vmapAdsRequest})
Creates a new GoogleCastMediaInformationAndroid instance.
GoogleCastMediaInformationAndroid.fromMap(Map<String, dynamic> map)
Creates a GoogleCastMediaInformationAndroid from a map.
factory

Properties

atvEntity → String?
Alternate entity to be used to load the media in Android TV app. If set, this will override the value set in entity if the receiver is an Android TV app. On the receiver side, the entity can be accessed from MediaInfo#getEntity().
finalinherited
breakClips → List<CastBreakClips>?
Partial list of break clips that includes current break clip that receiver is playing or ones that receiver will play shortly after. This is to avoid overflow of MediaStatus message.
finalinherited
breaks → List<CastBreak>?
List of breaks.
finalinherited
contentId → String
Service-specific identifier of the content currently loaded by the media player. This is a free form string and is specific to the application. In most cases, this will be the URL to the media, but the sender can choose to pass a string that the receiver can interpret properly. Max length: 1k
finalinherited
contentType → String
MIME content type of the media being played.
finalinherited
contentUrl → Uri?
Optional media URL, to allow using contentId for real ID. If contentUrl is provided, it will be used as media URL, otherwise the contentId will be used as the media URL.
finalinherited
customData → Map<String, dynamic>?
Optional application-specific blob of data defined by either the sender application or the receiver application
finalinherited
duration → Duration?
Optional duration of the currently playing stream in seconds.
finalinherited
entity → String?
Optional media entity, commonly a Google Assistant deep link.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
hlsSegmentFormat → CastHlsSegmentFormat?
The format of the HLS audio segment.
finalinherited
hlsVideoSegmentFormat → HlsVideoSegmentFormat?
The format of the HLS video segment.
finalinherited
metadata → GoogleCastMediaMetadata?
The media metadata object, one of the following: 0 GenericMediaMetadata 1 MovieMediaMetadata 2 TvShowMediaMetadata 3 MusicTrackMediaMetadata 4 PhotoMediaMetadata
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startAbsoluteTime → DateTime?
Provides absolute time (Epoch Unix time in seconds) for live streams. For live event it would be the time the event started, otherwise it will be start of the seekable range when the streaming started.
finalinherited
streamType → CastMediaStreamType
Describes the type of media artifact as one of the following: NONE BUFFERED LIVE
finalinherited
textTrackStyle → TextTrackStyle?
The requested text track style. If not provided, the device style preferences (if existing) will be used.
finalinherited
tracks → List<GoogleCastMediaTrack>?
Array of Track objects.
finalinherited
userActionStates → List<UserActionState>?
Indicates the user action state for media. Indicate user like, dislike, or follow actions for the media.
finalinherited
vmapAdsRequest → VastAdsRequest?
VMAP ad request configuration. Used if breaks and breakClips are not provided.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts the object to a map for serialization.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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