PipFlutterPlayerCacheConfiguration class

Cache configuration for PipFlutter Player. To enable cache on Android, useCache must be true and maxCacheSize > 0 and maxCacheFileSize > 0. On iOS maxCacheSize and maxCacheFileSize take no effect, so useCache is used only.

Constructors

PipFlutterPlayerCacheConfiguration({bool useCache = false, int maxCacheSize = 10 * 1024 * 1024, int maxCacheFileSize = 10 * 1024 * 1024, int preCacheSize = 3 * 1024 * 1024, String? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String?
Cache key to re-use same cached data between app sessions.
final
maxCacheFileSize int
The maximum size of each individual file in bytes. Android only option.
final
maxCacheSize int
The maximum cache size to keep on disk in bytes. This value is used only when first video access. cache. This value is used for all players within your app. It can't be changed during app work. Android only option.
final
preCacheSize int
The size to download.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useCache bool
Enable cache for network data source
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