You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Is there any way to play mp3s written by the FileSystem plugin / base64 in memory? According to an older report it was possible in the following way, however i presume there might have been changes since.
To Reproduce
Write base64 mp3 data to documents folder
await Filesystem.writeFile({ path: fileName, data: base64Data.split(",")[1], directory: Directory.Data })
Get uri of mp3 in documents folder
let uri = await Filesystem.getUri({ directory: Directory.Data, path: fileName });
App crashes with
file:///var/mobile/Containers/Data/Application/E407FE9D-3D44-446E-A002-F1A790E41221/Documents/test2.mp3
⚡️ To Native -> NativeAudio preload 59491661
CapacitorCommunityNativeAudio/Plugin.swift:233: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2023-11-19 19:38:21.772021+0700 App[660:33869] CapacitorCommunityNativeAudio/Plugin.swift:233: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Expected behavior
The app plays the mp3 file
Smartphone (please complete the following information):
Device: iPhone 11 Pro
OS: iOS 16.4.1
Capacitor Version: 5
The text was updated successfully, but these errors were encountered:
Describe the bug
Is there any way to play mp3s written by the FileSystem plugin / base64 in memory? According to an older report it was possible in the following way, however i presume there might have been changes since.
To Reproduce
await Filesystem.writeFile({ path: fileName, data: base64Data.split(",")[1], directory: Directory.Data })
let uri = await Filesystem.getUri({ directory: Directory.Data, path: fileName });
const preloadRes = await NativeAudio.preload({
assetId: "test",
assetPath: uri.uri,
audioChannelNum: 1,
isUrl: true
});
file:///var/mobile/Containers/Data/Application/E407FE9D-3D44-446E-A002-F1A790E41221/Documents/test2.mp3
⚡️ To Native -> NativeAudio preload 59491661
CapacitorCommunityNativeAudio/Plugin.swift:233: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2023-11-19 19:38:21.772021+0700 App[660:33869] CapacitorCommunityNativeAudio/Plugin.swift:233: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Expected behavior
The app plays the mp3 file
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: