DVCaptionTrack class final
One language's captions.
Constructors
-
DVCaptionTrack.cues(String language, List<
DVCaptionCue> cues, {String? label}) - Captions the application already holds.
- DVCaptionTrack.source(String language, DVMediaSource source, {String? label})
-
Captions in a WebVTT (
.vtt) or SubRip (.srt) file, read when the track is first shown.
Properties
-
cues
→ List<
DVCaptionCue> -
The cues, in time order. Empty until loaded.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoaded → bool
-
no setter
- label → String
-
What the caption menu shows. The language tag when none is given.
final
- language → String
-
A BCP 47 tag:
en,pt-BR.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → DVMediaSource?
-
Where the cues come from, for a track that has not been read yet.
final
Methods
-
cueAt(
Duration position) → DVCaptionCue? -
The cue showing at
position, or null. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withCues(
List< DVCaptionCue> cues) → DVCaptionTrack -
This track with
cuesread.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited