SubtitleTrack class

SubtitleTrack

A subtitle available in Media. This may be selected for output in Player.

Constructors

SubtitleTrack(String id, String? title, String? language, {bool? image, bool? albumart, String? codec, String? decoder, int? w, int? h, int? channelscount, String? channels, int? samplerate, double? fps, int? bitrate, int? rotate, double? par, int? audiochannels, bool uri = false, bool data = false})
SubtitleTrack
const
SubtitleTrack.auto()
Default subtitle track. Selects the first subtitle track.
factory
SubtitleTrack.data(String data, {String? title, String? language})
SubtitleTrack loaded with data.
factory
SubtitleTrack.no()
No subtitle track. Disables subtitle output.
factory
SubtitleTrack.uri(String uri, {String? title, String? language})
SubtitleTrack loaded with URI.
factory

Properties

albumart bool?
finalinherited
audiochannels int?
finalinherited
bitrate int?
finalinherited
channels String?
finalinherited
channelscount int?
finalinherited
codec String?
finalinherited
data bool
Whether the audio track is loaded from data.
final
decoder String?
finalinherited
fps double?
finalinherited
h int?
finalinherited
hashCode int
The hash code for this object.
no setter
id String
finalinherited
image bool?
finalinherited
language String?
finalinherited
par double?
finalinherited
rotate int?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
samplerate int?
finalinherited
title String?
finalinherited
uri bool
Whether the subtitle track is loaded from URI.
final
w int?
finalinherited

Methods

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

Operators

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