We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34538a8 commit 7c8da3dCopy full SHA for 7c8da3d
1 file changed
packages/audioplayers/lib/src/audio_cache.dart
@@ -132,7 +132,10 @@ class AudioCache {
132
// by the system when the storage is almost full
133
// Android: https://developer.android.com/training/data-storage/app-specific#internal-remove-cache
134
// iOS: https://developer.apple.com/documentation/foundation/using-the-file-system-effectively#Store-short-lived-files
135
- if (!needsFetch && !fileSystem.file(loadedFiles[fileName]).existsSync()) {
+ // Web: Uses a data uri, the content is not present on the file system.
136
+ if (!kIsWeb &&
137
+ !needsFetch &&
138
+ !fileSystem.file(loadedFiles[fileName]).existsSync()) {
139
needsFetch = true;
140
}
141
0 commit comments