GoogleCastMediaTrack class
Describes track metadata information.
- Implementers
Constructors
-
GoogleCastMediaTrack({Map<
String, dynamic> ? customData, RFC5646_LANGUAGE? language, String? name, TextTrackType? subtype, String? trackContentId, required String trackContentType, required int trackId, required TrackType type}) - GoogleCastMediaTrack.fromJson(String source)
-
factory
-
GoogleCastMediaTrack.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
customData
→ Map<
String, dynamic> ? -
Custom application data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → RFC5646_LANGUAGE?
-
Language tag as per RFC 5646. Mandatory when the subtype is SUBTITLES.
final
- name → String?
-
A descriptive, human-readable name for the track.
For example, “Spanish”. This can be used by the sender
UI for example, to create a selection dialog.
If the name is empty the dialog would contain an empty slot.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtype → TextTrackType?
-
For text tracks, the type of text track.
final
- trackContentId → String?
-
Identifier of the track’s content. It can be the
URL of the track or any other identifier that
allows the receiver to find the content
(when the track is not inband or included in the manifest).
For example it can be the URL of a vtt file.
final
- trackContentType → String
-
The MIME type of the track content. For example
if the track is a vtt file it will be ‘text/vtt’.
This field is needed for out of band tracks,
so it is usually provided if a trackContentId
has also been provided. It is not mandatory
if the receiver has a way to identify the
content from the trackContentId, but recommended.
The track content type, if provided, must be
consistent with the track type.
final
- trackId → int
-
final
- type → TrackType
-
The type of track.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited