ryanheise / just_audio

Audio Player
1.04k stars 662 forks source link

Gapless Looping Issue on iOS 17+ #1150

Open DeclanShine opened 9 months ago

DeclanShine commented 9 months ago

On Apple Devices above iOS 17, a clicking noise can be heard on each loop, when loopmode set to one.

On android devices and apple devices running iOS 15.5 no clicking noise can be heard. This is an iOS 17+ specific issue.

Minimal reproduction project

The example.

As per the instructions for contributing: https://github.com/ryanheise/just_audio/blob/minor/CONTRIBUTING.md

" If the only change to the example necessary to reproduce the bug is the audio source URL, it will be sufficient to supply that URL without forking the repository, as long as you clarify in your bug report what we should do with that URL."

AUDIO SOURCE:

https://firebasestorage.googleapis.com/v0/b/frequencies-44e38.appspot.com/o/assets%2Faudio%2F174.mp3?alt=media&token=928ab936-12f5-4321-b17a-4c4942bc6b58

The audio source linked above can be looped, with loopMode set to one.

` await player.setLoopMode(LoopMode.one); await player.play();

 `

To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:

  1. Play the audio file with loopMode set to one
  2. Observe clicking sound on each loop

Error messages

None

Expected behavior

Seamless gapless looping without clicking sounds.

Screenshots

None

Desktop (please complete the following information):

N/A

Smartphone (please complete the following information):

Flutter SDK version

[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5.1 22G90 darwin-x64, locale en-CH)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.85.1)
[✓] Connected device (2 available)
[✓] Network resources

Additional context I have attempted to find a workaround or a fix for three weeks without any success. I appreciate your assistance and look forward to hearing from you. If there are any further questions I am happy to help.

github-actions[bot] commented 9 months ago

Oops, it appears that your issue did not follow the template and is missing one or more required sections. Please open a new issue, and provide all required sections and information.

FAQ:

  1. Do I really need to submit a minimal reproduction project for a bug? A: Yes. I prioritise bugs secondarily on how many people are affected, and primarily on whether the bug report is complete, in the sense that it enables me to immediately reproduce it and start working on a fix. If a bug is important to you, the best thing you can do is to provide all requested information ASAP so that I can start looking into it ASAP.

  2. I think I supplied all required information, so did the bot make a mistake? A: The bot only checks the section headings, so when you post a new issue, make sure you leave the section headings intact. (Note that because of this, it is even possible to trick the bot by including only the section headings, and then not providing the requested information under each heading. This is frowned upon, and the issue will be closed manually.)

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.

ryanheise commented 17 hours ago

" If the only change to the example necessary to reproduce the bug is the audio source URL, it will be sufficient to supply that URL without forking the repository, as long as you clarify in your bug report what we should do with that URL."

Although the bot didn't like that you deleted and skipped the first section of the bug report. Reopening.