AssetVideoSource class

Flutter assets 来源;首次使用时自动抽取到临时目录并缓存。 Flutter asset media source; extracted to the temp directory on first use.

Inheritance

Constructors

AssetVideoSource(String assetPath, {AssetBundle? bundle})
const

Properties

assetPath String
Asset 路径(与 rootBundle.load(...) 相同)。 Asset key (same as rootBundle.load(...)).
final
bundle AssetBundle?
自定义 asset bundle,默认 rootBundle。 Custom asset bundle, defaults to rootBundle.
final
hashCode int
The hash code for this object.
no setteroverride
identity String
用作历史记录、mime 探测的稳定标识。 Stable identity used for history keys and mime sniffing.
no setteroverride
isNetwork bool
是否可走 HTTP 缓存代理。只有 NetworkVideoSource 为 true。 Whether this source is eligible for the HTTP caching proxy.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveToNativeUrl() Future<String>
将来源解析为原生播放器可直接消费的 URL。
override
toString() String
A string representation of this object.
inherited

Operators

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