M3u8Task class

Constructors

M3u8Task({required String taskId, required String movieId, required String lid, required String name, required String coverImg, required SourceKind kind, required String url, required String dir, TaskStatus status = TaskStatus.queued, int completed = 0, int? persistedTotal, String? error, required List<Segment> segments, required KeyInfo? key, String? hlsLocalM3u8Path, int? contentLength, int downloaded = 0, String? eTag, String? tmpPath, String? localPath, String? mp4Path, bool albumSaved = false, bool saveToAlbum = true, String? albumError, int remuxBytes = 0, int postAttempts = 0})
M3u8Task.fromMeta({required String taskId, required String movieId, required SourceKind kind, required String lid, required String name, required String coverImg, required String url, required String dir, bool saveToAlbum = true})
factory

Properties

albumError String?
保存相册失败原因(不会影响任务 completed)
getter/setter pair
albumSaved bool
是否已经保存过系统相册(防重复)
getter/setter pair
completed int
getter/setter pair
contentLength int?
getter/setter pair
coverImg String
final
dir String
final
downloaded int
getter/setter pair
effectiveTotal int
no setter
error String?
getter/setter pair
eTag String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasPlayableLocal bool
是否已经有可播放产物(本地 mp4 或本地 m3u8)
no setter
hlsLocalM3u8Path String?
下载完成后写出来的本地 m3u8 绝对路径(一般是 local.m3u8)
getter/setter pair
isActive bool
no setter
isFinished bool
no setter
key KeyInfo?
getter/setter pair
kind SourceKind
getter/setter pair
lid String
final
localPath String?
App 内播放的入口(最终建议这里:HLS 成功 remux 后也写成 mp4Path)
getter/setter pair
movieId String
final
mp4Path String?
HLS remux 成功后的 mp4 绝对路径(Android remux / iOS ffmpeg remux)
getter/setter pair
name String
final
persistedTotal int?
getter/setter pair
postAttempts int
postProcess 重试次数
getter/setter pair
remuxBytes int
remux 阶段的“进度字节”
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveToAlbum bool
是否自动保存到系统相册(可由 UI 创建任务时传入)
getter/setter pair
segments List<Segment>
getter/setter pair
status TaskStatus
getter/setter pair
taskId String
final
tmpPath String?
getter/setter pair
total int
no setter
url String
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