BetterPlayerSubtitlesSource class

Representation of subtitles source. Used to define subtitles in Better Player.

Constructors

BetterPlayerSubtitlesSource({BetterPlayerSubtitlesSourceType? type, String? name = "Default subtitles", List<String?>? urls, String? content, bool? selectedByDefault, Map<String, String>? headers, bool? asmsIsSegmented, int? asmsSegmentsTime, List<BetterPlayerAsmsSubtitleSegment>? asmsSegments})

Properties

asmsIsSegmented bool?
Is ASMS segmented source (more than 1 subtitle file). This shouldn't be configured manually.
final
asmsSegments List<BetterPlayerAsmsSubtitleSegment>?
List of segments (start,end,url of the segment). This shouldn't be configured manually.
final
asmsSegmentsTime int?
Max. time between segments in milliseconds. This shouldn't be configured manually.
final
content String?
Content of subtitles, used when type is memory
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
name String?
Name of the subtitles, default value is "Default subtitles"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedByDefault bool?
Subtitles selected by default, without user interaction
final
type BetterPlayerSubtitlesSourceType?
Source type
final
urls List<String?>?
Url of the subtitles, used with file or network subtitles
final

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.
inherited

Static Methods

single({BetterPlayerSubtitlesSourceType? type, String name = "Default subtitles", String? url, String? content, bool? selectedByDefault, Map<String, String>? headers}) List<BetterPlayerSubtitlesSource>
Creates list with only one subtitles