Comments (3)
Hey @Patresko, I still need to do the error logging a bit more robust for others, but that would likely require breaking changes, so I had pushed this aside so far.
There should be debug info though in the console before you get this error. Can you look for text there starting with failed to load due to:
? The part after the colon will be the localizedDescription
of the original error.
My best guess is that the format of the file is not supported. What format does it have? Is it possible to share the file causing the issue here?
from dswaveformimage.
Its .mp4 file
file:///var/mobile/Containers/Data/Application/6CC937DA-402D-45F2-9A74-5F0B906B7931/Library/Caches/vocalMessage_00:00_15-05-2023_92645.mp4 ERROR loading asset Error Domain=AVFoundationErrorDomain Code=-11829 "Nie je možné otvoriť" UserInfo={NSUnderlyingError=0x282827780 {Error Domain=NSOSStatusErrorDomain Code=-12848 "(null)"}, NSLocalizedFailureReason=Médium je pravdepodobne poškodené., NSURL=file:///var/mobile/Containers/Data/Application/6CC937DA-402D-45F2-9A74-5F0B906B7931/Library/Caches/vocalMessage_00:00_15-05-2023_92645.mp4, NSLocalizedDescription=Nie je možné otvoriť} DholRainbow/ProgressWaveformView.swift:52: Fatal error: 'try!' expression unexpectedly raised an error: DSWaveformImage.WaveformImageDrawer.GenerationError.generic 2023-05-16 11:59:24.478067+0200 DholRainbow[19678:6467172] DholRainbow/ProgressWaveformView.swift:52: Fatal error: 'try!' expression unexpectedly raised an error: DSWaveformImage.WaveformImageDrawer.GenerationError.generic
from dswaveformimage.
So there you have it. AVFoundationErrorDomain Code=-11829 "Nie je možné otvoriť"
and NSLocalizedFailureReason=Médium je pravdepodobne poškodené.
. These error messages are coming from iOS itself, so they are OS level messages, indicating that AVFoundation
cannot read the file.
"Something" is not good with your audio file for iOS to read it. What that is I cannot tell, but the problem sits outside of the library.
Maybe you are storing the file wrong, writing it wrong, using a wrong file extension (ie if it is an mp3 but your ending declares it an mp4 file - this happened to a few people here before already that had downloaded audio from the internet, iOS's audio classes only look for file endings when trying to open them), or the file is genuinely corrupted.
from dswaveformimage.
Related Issues (20)
- Waveform is changing every time I scroll my chat message's table view how to manage it ? HOT 3
- Two identical waveform views don't always line up HOT 3
- WaveForm for the http local file without downloading HOT 2
- Wavegeneration stopped when scroll tableview HOT 3
- Dampening vs. damping HOT 1
- Left to right instead of right to left HOT 2
- Wavefrom form Data in SwiftUI HOT 7
- WaveformLiveView for Local Path HOT 13
- There's many different ways this could be achieved. HOT 3
- Current amplitude HOT 1
- Empty audio not displayed even with Should Draw Silence HOT 6
- Compile error in Xcode 15 beta. HOT 2
- Missing Pause Functionality HOT 1
- -11800 Error code when generation samples on iOS 17 beta HOT 10
- mp3 File not support HOT 8
- xcode 15 not support. Stored properties cannot be marked unavailable with '@available' HOT 1
- Striped style with gradient HOT 2
- Stored properties cannot be marked unavailable with '@available' HOT 3
- Stored properties cannot be marked unavailable with '@available' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dswaveformimage.