PipFlutterPlayerSubtitlesSource class

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

Constructors

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

Properties

asmsIsSegmented → bool?
Is ASMS segmented source (more than 1 subtitle file). This shouldn't be configured manually.
final
asmsSegments → List<PipFlutterPlayerAsmsSubtitleSegment>?
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 → PipFlutterPlayerSubtitlesSourceType?
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({PipFlutterPlayerSubtitlesSourceType? type, String name = "Default subtitles", String? url, String? content, bool? selectedByDefault, Map<String, String>? headers}) → List<PipFlutterPlayerSubtitlesSource>
Creates list with only one subtitles