VideoTrack class

Represents a video track in a video with its metadata.

For HLS/DASH adaptive streams, each VideoTrack represents a different quality level (e.g., 1080p, 720p, 480p). For non-adaptive videos, platform implementations may return a single track or no tracks, depending on the metadata that is available.

Annotations

Constructors

VideoTrack({required String id, required bool isSelected, String? label, int? bitrate, int? width, int? height, double? frameRate, String? codec})
Constructs an instance of VideoTrack.
const

Properties

bitrate → int?
Bitrate of the video track in bits per second.
final
codec → String?
Video codec used (e.g., "avc1", "hevc", "vp9").
final
frameRate → double?
Frame rate in frames per second.
final
hashCode → int
The hash code for this object.
no setteroverride
height → int?
Video height in pixels.
final
id → String
Unique identifier for the video track.
final
isSelected → bool
Whether this track is currently selected.
final
label → String?
Human-readable label for the track (e.g., "1080p", "720p").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int?
Video width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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