BetterPlayerCacheConfiguration class Null safety

Cache configuration for Better 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

BetterPlayerCacheConfiguration({bool useCache = false, int maxCacheSize = 10 * 1024 * 1024, int maxCacheFileSize = 10 * 1024 * 1024, int preCacheSize = 3 * 1024 * 1024})
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
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.
final
preCacheSize int
The size to download.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useCache bool
Enable cache for network data source
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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