audioplayers icon indicating copy to clipboard operation
audioplayers copied to clipboard

UnimplementedError on web (iOS Safari)

Open ma-pe opened this issue 3 years ago • 6 comments

When instantiating the AudioPlayer the Application does not load (error screen in debug mode; white screen when built) and the console shows an UnimplementedError. This only happens on iOS Safari. It works for Mac OS Safari, iPadOS Safari (uses the MacOS Safari Rendering Engine), Chrome and Firefox.

Code to Reproduce

class _MyHomePageState extends State<MyHomePage> {
  AudioPlayer _audioPlayer = AudioPlayer();
  // ...
}

Screenshots image

Platforms Does not work on:

  • OS: iOS Safari
  • OS version: iOS 14.4
  • Device: Physical iPhone 11 Pro
  • flutter version: 2.0.3
  • audioplayers version: 0.18.0
  • release or not release: debug web and also built web

ma-pe avatar Mar 22 '21 22:03 ma-pe

has this problem been resolved ??

rakafajars avatar Apr 25 '21 16:04 rakafajars

No

ma-pe avatar Apr 27 '21 07:04 ma-pe

is there a solution to using what library to handle sound in iOS safari?

Pada tanggal Sel, 27 Apr 2021 pukul 14.26 Malte Peters < @.***> menulis:

No

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/luanpotter/audioplayers/issues/813#issuecomment-827379912, or unsubscribe https://github.com/notifications/unsubscribe-auth/ART24UOV4KVXLW3K2LFPA4TTKZRJRANCNFSM4ZUAA45A .

rakafajars avatar Apr 28 '21 17:04 rakafajars

I switched over to just_audio which also works for iOS Safari 🙌

ma-pe avatar Apr 29 '21 17:04 ma-pe

can you retest with audioplayers: ^1.1.0 and current flutter version (3.x.x)?

Gustl22 avatar Sep 27 '22 14:09 Gustl22

audioplayers 1.1.1 on stable Flutter 3.3 still doesn't work on iOS Safari.

FeodorFitsner avatar Jan 04 '23 18:01 FeodorFitsner