enableCache property
The SDK currently only supports caching for on-demand streams, not for on-demand streams transmitted via HLS protocol. Before caching, assign a value to uri, otherwise the player uses the media file's url as the cache index. After enabling real-time caching, the player pre-caches part of the currently playing media file locally. When you play the file again, the player loads data from the cache, saving network traffic. The statistics of the currently cached media file are updated every second after playback starts. See CacheStatistics. Whether to enable real-time caching for this playback: true : Enable real-time caching. false : (default) Disable real-time caching.
Implementation
@JsonKey(name: 'enableCache')
final bool? enableCache;