NativeVideoPlayerSubtitleTrack class

Represents a subtitle/closed caption track in the video player

Constructors

NativeVideoPlayerSubtitleTrack({required int index, required String language, required String displayName, bool isSelected = false, SubtitleTrackSource source = SubtitleTrackSource.embedded})
const
NativeVideoPlayerSubtitleTrack.fromMap(Map map)
factory
NativeVideoPlayerSubtitleTrack.off()
Represents an "Off" or "None" subtitle option
factory

Properties

displayName String
The display name for the subtitle track (e.g., "English", "Spanish (Latin America)")
final
hashCode int
The hash code for this object.
no setteroverride
index int
The index of the subtitle track (platform-specific identifier)
final
isOff bool
Whether this is the "Off" option
no setter
isSelected bool
Whether this subtitle track is currently selected
final
language String
The language code (e.g., "en", "es", "fr", "en-US")
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source SubtitleTrackSource
Whether the track is embedded in the media or a sidecar source (defaults to embedded for backward compatibility).
final

Methods

copyWith({int? index, String? language, String? displayName, bool? isSelected, SubtitleTrackSource? source}) NativeVideoPlayerSubtitleTrack
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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