LocalVideoServer class

全局唯一的本地HTTP服务,用于让 iOS 播放本地m3u8/ts

Constructors

LocalVideoServer()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isRunning bool
no setter
port int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ensureRunning() Future<void>
确保服务运行
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
启动服务,只启动一次
toString() String
A string representation of this object.
inherited
urlForAbsPath(String absPath) Future<String>
urlForFile(String absPath) String
拼接成完整访问 URL(注意:path 要传绝对路径
urlForLocalM3u8(String localM3u8AbsPath) Future<String>

Operators

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