audioplayers
audioplayers copied to clipboard
Audio is playing with delay in iOS
Facing some delay before playing in iOS, in android is very quick
Code to Reproduce
AudioPlayer player=AudioPlayer();
await player?.play(url ?? widget.uri);
Files/URLs/Sources
If your issue or bug involves specific files, you must provide them. If they are URLs they should already be somewhere in the code provided but please replicate those here. If they are private URLs or actual files, please upload them somewhere accessible and add them here. If your issue is with a stream, for example, provide the stream link or if the stream is private, create a similar stream that also causes the problem and is public, and add that. If you don't know if your issue involves specific resources, please download a few of the mp3 sample files present in the example
app and test with those instead of whatever you are doing currently. If the issue persists, it does not involve specific files. Otherwise, this section is mandatory.
Screenshots If applicable, add screenshots or video recordings to help explain your problem. This is totally optional.
Platforms List in detail here all the platforms that you have tested, indicating which platforms the error occurs on. Please try to test on as many different platforms as possible to make our lives easier (this is optional). You must add at least one platform in which the problem occurs (evidently). For each platform listed, you must specify:
-
OS: ios
-
OS version: iOS 14.8
-
Device: iPhone 12 mini
-
flutter version: 2.5.1
-
audioplayers version: 0.20.1
-
does the error occur and does it have any peculiarities: of course if you only tested in one platform, clearly the error occurred there. But if you happened to test on several platforms, please include all of your tests, even the ones that succeeded here, as that info is super valuable. Add details of what was the result in each platform to the extent to which they differed.
-
Reference https://stackoverflow.com/questions/59425762/flutter-audio-play-delay/59579699?noredirect=1#comment123337757_59579699
Hello @erickzanardo @luanpotter can you please take a look here?
Thank you
I am having the same inconvenient right now in 'ios', more specically when playing sounds with the AudioCache class. Hope they fix it zoom.
same problem in ios. anyone can help me...
Same here.
Same issue
Does the problem still exist with AudioPlayers > 1.x.x
? Also we are happy if you provide any fix via PR! See also #994
The currently active developers on this project do not have any iOS devices to test your issue.