LockCachingAudioSource constructor
Creates a LockCachingAudioSource to that provides uri to the player
while simultaneously caching it to cacheFile
. If no cache file is
supplied, just_audio will allocate a cache file internally.
If headers are set, just_audio will create a cleartext local HTTP proxy on your device to forward HTTP requests with headers included.
Implementation
LockCachingAudioSource(
this.uri, {
this.headers,
File? cacheFile,
dynamic tag,
}) : cacheFile =
cacheFile != null ? Future.value(cacheFile) : _getCacheFile(uri),
super(tag: tag) {
_init();
}