SimformSolutionsPvtLtd / audio_waveforms

Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms
https://pub.dev/packages/audio_waveforms
MIT License
275 stars 141 forks source link

PlatformException(AudioWaveforms, Failed to prepare player, The operation couldn’t be completed. (OSStatus error 2003334207.), null) #337

Open abbasihamed opened 3 weeks ago

abbasihamed commented 3 weeks ago

Describe the bug In ios, when the file address is given online, I get the following error

PlatformException(AudioWaveforms, Failed to prepare player, The operation couldn’t be completed. (OSStatus error 2003334207.), null) flutter:

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)

#2 AudioWaveformsInterface.preparePlayer (package:audio_waveforms/src/base/audio_waveforms_interface.dart:100:18) #3 PlayerController.preparePlayer (package:audio_waveforms/src/controllers/player_controller.dart:122:24) **This item works properly on Android** This is my code ``` final PlayerController controller = PlayerController(); controller.preparePlayer( path: "url", shouldExtractWaveform: true, ); ``` **Smartphone (please complete the following information):** - Device: [e.g. IPhone 15 pro max] - OS: [e.g. iOS17]
XCarlosEduardoX commented 3 weeks ago

same :C

abbasihamed commented 2 weeks ago

same :C

Did you find a solution for it?

XCarlosEduardoX commented 2 weeks ago

same :C

Did you find a solution for it?

nop, I have an error in PlayerController.preparePlayer, when playing the audio it shows me this error: playback error

Hvt261 commented 1 week ago

Same problem when file is large than 3mb

Hvt261 commented 1 week ago

With small file, it work normally. It happen on ios only

AtharvaChavan04 commented 1 week ago

@Hvt261 , how are you able to run small file? I am trying to run a 1mb mp3 file, that too is giving the same error.

Hvt261 commented 1 week ago

You should download and play the local file path