enableCache property

  1. @JsonKey(name: 'enableCache')
bool? enableCache
final

Whether to cache the media file when it is being played: true :Enables caching. false : (Default) Disables caching. Agora only supports caching on-demand audio and video streams that are not transmitted in HLS protocol. If you need to enable caching, pass in a value to uri; otherwise, caching is based on the url of the media file. If you enable this function, the Media Player caches part of the media file being played on your local device, and you can play the cached media file without internet connection. The statistics about the media file being cached are updated every second after the media file is played. See CacheStatistics.

Implementation

@JsonKey(name: 'enableCache')
final bool? enableCache;