Track class

Constructors

Track({required num? id, required bool? active, required String? type, required num? bandwidth, required String? language, String? label, String? kind, num? width, num? height, required num? frameRate, String? pixelAspectRatio, String? hdr, String? mimeType, String? audioMimeType, String? videoMimeType, String? codecs, String? audioCodec, String? videoCodec, required bool? primary, required List? roles, required List? audioRoles, required dynamic accessibilityPurpose, required bool? forced, num? videoId, num? audioId, num? channelsCount, num? audioSamplingRate, String? tilesLayout, required bool? spatialAudio, num? audioBandwidth, num? videoBandwidth, String? originalVideoId, String? originalAudioId, String? originalTextId, String? originalImageId, String? originalLanguage})
Track.fromJson(String source)
factory
Track.fromMap(Map<String, dynamic> map)
factory

Properties

accessibilityPurpose ↔ dynamic
The DASH accessibility descriptor, if one was provided for this track. For text tracks, this describes the text; otherwise, this is for the audio.
getter/setter pair
active bool?
If true, this is the track being streamed (another track may be visible/audible in the buffer).
getter/setter pair
audioBandwidth num?
nullable (only for variant tracks) The audio stream's bandwidth if known.
getter/setter pair
audioCodec String?
The audio codecs string provided in the manifest, if present.
getter/setter pair
audioId num?
getter/setter pair
audioMimeType String?
The audio MIME type of the content provided in the manifest.
getter/setter pair
audioRoles List?
Array.
getter/setter pair
audioSamplingRate num?
getter/setter pair
bandwidth num?
The bandwidth required to play the track, in bits/sec.
getter/setter pair
channelsCount num?
getter/setter pair
codecs String?
The audio/video codecs string provided in the manifest, if present.
getter/setter pair
forced bool?
indicates that this in the forced text language for the content. This flag is based on signals from the manifest.
getter/setter pair
frameRate num?
The video framerate provided in the manifest, if present.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hdr String?
The video HDR provided in the manifest, if present.
getter/setter pair
height num?
number
getter/setter pair
id num?
The unique ID of the track.
getter/setter pair
kind String?
nullable (only for text tracks) The kind of text track, either 'caption' or 'subtitle'.
getter/setter pair
label String?
The track label, which is unique text that should describe the track.
getter/setter pair
language String?
The language of the track, or 'und' if not given. This value is normalized as follows - language part is always lowercase and translated to ISO-639-1 when possible, locale part is always uppercase, i.e. 'en-US'.
getter/setter pair
mimeType String?
The MIME type of the content provided in the manifest.
getter/setter pair
originalAudioId String?
nullable (variant tracks only) The original ID of the audio part of the track, if any, as it appeared in the original manifest.
getter/setter pair
originalImageId String?
nullable (image tracks only) The original ID of the image track, if any, as it appeared in the original manifest.
getter/setter pair
originalLanguage String?
nullable The original language of the track, if any, as it appeared in the original manifest. This is the exact value provided in the manifest; for normalized value use language property.
getter/setter pair
originalTextId String?
nullable (text tracks only) The original ID of the text track, if any, as it appeared in the original manifest.
getter/setter pair
originalVideoId String?
nullable (variant tracks only) The original ID of the video part of the track, if any, as it appeared in the original manifest.
getter/setter pair
pixelAspectRatio String?
The video pixel aspect ratio provided in the manifest, if present.
getter/setter pair
primary bool?
True indicates that this in the primary language for the content. This flag is based on signals from the manifest. This can be a useful hint about which language should be the default, and indicates which track Shaka will use when the user's language preference cannot be satisfied.
getter/setter pair
roles List?
roles Array.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spatialAudio bool?
True indicates that the content has spatial audio. This flag is based on signals from the manifest.
getter/setter pair
tilesLayout String?
The value is a grid-item-dimension consisting of two positive decimal integers in the format: column-x-row ('4x3'). It describes the arrangement of Images in a Grid. The minimum valid LAYOUT is '1x1'.
getter/setter pair
toJS → dynamic
no setter
type String?
The type of track, either 'variant' or 'text' or 'image'.
getter/setter pair
videoBandwidth num?
nullable(only for variant tracks) The video stream's bandwidth if known.
getter/setter pair
videoCodec String?
The video codecs string provided in the manifest, if present.
getter/setter pair
videoId num?
nullable (only for variant tracks) The video stream id.
getter/setter pair
videoMimeType String?
The video MIME type of the content provided in the manifest.
getter/setter pair
width num?
The video width provided in the manifest, if present.
getter/setter pair

Methods

copyWith({num? id, bool? active, String? type, num? bandwidth, String? language, String? label, String? kind, num? width, num? height, num? frameRate, String? pixelAspectRatio, String? hdr, String? mimeType, String? audioMimeType, String? videoMimeType, String? codecs, String? audioCodec, String? videoCodec, bool? primary, List<String>? roles, List<String>? audioRoles, bool? forced, num? videoId, num? audioId, num? channelsCount, num? audioSamplingRate, String? tilesLayout, bool? spatialAudio, num? audioBandwidth, num? videoBandwidth, String? originalVideoId, String? originalAudioId, String? originalTextId, String? originalImageId, String? originalLanguage}) Track
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.
override

Operators

operator ==(Object other) bool
The equality operator.
override