just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

Gapless Looping Issue on iOS 17+

Open DeclanShine opened this issue 1 year ago • 3 comments

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):

  • Device: iPhone 12 Pro Max
  • OS: iOS 17

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.

DeclanShine avatar Dec 27 '23 08:12 DeclanShine