GoogleCastMediaInformation class
Constructors
-
GoogleCastMediaInformation({String? atvEntity, List<CastBreakClips>? breakClips, required String contentId, required CastMediaStreamType streamType, required String contentType, GoogleCastMediaMetadata? metadata, Duration? duration, Map<String, dynamic>? customData, List<CastBreak>? breaks, Uri? contentUrl, String? entity, CastHlsSegmentFormat? hlsSegmentFormat, HlsVideoSegmentFormat? hlsVideoSegmentFormat, DateTime? startAbsoluteTime, TextTrackStyle? textTrackStyle, List<GoogleCastMediaTrack>? tracks, List<UserActionState>? userActionStates, VastAdsRequest? vmapAdsRequest})
-
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().
final
-
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, instead of sending whole list of
clips. This is to avoid overflow of MediaStatus message.
final
-
breaks
→ List<CastBreak>?
-
List of breaks.
final
-
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
final
-
contentType
→ String
-
MIME content type of the media being played
final
-
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.
final
-
customData
→ Map<String, dynamic>?
-
optional Application-specific blob of data defined by either the sender application or the receiver application
final
-
duration
→ Duration?
-
optional Duration of the currently playing stream in seconds
final
-
entity
→ String?
-
Optional media entity, commonly a Google Assistant deep link.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hlsSegmentFormat
→ CastHlsSegmentFormat?
-
The format of the HLS audio segment.
final
-
hlsVideoSegmentFormat
→ HlsVideoSegmentFormat?
-
The format of the HLS video segment.
final
-
metadata
→ GoogleCastMediaMetadata?
-
The media metadata object, one of the following:
0 GenericMediaMetadata
1 MovieMediaMetadata
2 TvShowMediaMetadata
3 MusicTrackMediaMetadata
4 PhotoMediaMetadata
final
-
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.
final
-
streamType
→ CastMediaStreamType
-
Describes the type of media artifact as one of the following:
NONE
BUFFERED
LIVE
final
-
textTrackStyle
→ TextTrackStyle?
-
The requested text track style. If not provided,
the device style preferences (if existing) will be used.
final
-
tracks
→ List<GoogleCastMediaTrack>?
-
Array of Track objects.
final
-
userActionStates
→ List<UserActionState>?
-
Indicates the user action state for media.
Indicate user like, dislike, or
follow actions for the media.
final
-
vmapAdsRequest
→ VastAdsRequest?
-
VMAP ad request configuration. Used if breaks and breakClips are not provided.
final