cache_audio_player_plus 1.2.0
cache_audio_player_plus: ^1.2.0 copied to clipboard
A lightweight audio player that streams and caches audio files for seamless playback. Prevents redundant downloads by storing audio locally, ensuring efficient performance and offline support.
1.2.0 #
Backwards-compatible feature release — no breaking changes.
- Added
CacheAudioPlayerPlus.init()one-shot initializer for Hive. - Added
playLocalAudio()to play audio files from the device file system. - Added
playAssetAudio()to play audio bundled as a Flutter asset. - Added
preCacheAudio()to download and cache a URL without playing it (useful for pre-warming the next track in a playlist). - Added
onDownloadProgresscallback toplayerNetworkAudio()so you can show download progress the first time a file is fetched. - Added cache inspection APIs:
isCached(),getCachedFilePath(),getCachedKeys(),getCacheSize(). - Added cache mutation APIs:
clearCacheForUrl(),clearCache(). playerNetworkAudio()now verifies the cached file still exists on disk before replaying it, and falls back to re-downloading if it was removed.- Cache box is now lazily initialized, so callers that forgot to call
Hive.initFlutter()no longer crash. - Upgraded dependencies to the latest stable versions:
audioplayers^6.6.0dio^5.9.2flutter_lints^6.0.0
1.1.1 #
- Version for dependencies has been updated to latest.
1.0.0 #
- Initial Version of Cache Audio Player Plus