bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
2.01k stars 844 forks source link

PlatformException(DarwinAudioError, setSourceBytes is not currently implemented on iOS, #1782

Open sufiyanas opened 7 months ago

sufiyanas commented 7 months ago

Checklist

Current bug behaviour

#3 AudioPlayer.setSourceBytes (package:audioplayers/src/audioplayer.dart:370:5) #4 AudioPlayer.setSource (package:audioplayers/src/audioplayer.dart:300:5) #5 AudioPlayer.play (package:audioplayers/src/audioplayer.dart:195:5) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(DarwinAudioError, setSourceBytes is not currently implemented on iOS, null, null) #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7) #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:322:18) #2 AudioPlayer._completePrepared (package:audioplayers/src/audioplayer.dart:320:5) ### Expected behaviour i am trying to create a voice chat application , When i run the application in ios i am facing this issue. ### Steps to reproduce 1. Execute `flutter run` on the code sample 2. ... 3. ... ### Code sample
Code sample ```dart void main() { } ```
### Affected platforms iOS ### Platform details _No response_ ### AudioPlayers Version audioplayers: ^5.2.1 ### Build mode _No response_ ### Audio Files/URLs/Sources _No response_ ### Screenshots image ### Logs ``` my relevant logs ```
Full Logs ``` my full logs or a link to a gist ``` Flutter doctor: ``` Output of: flutter doctor -v ```
### Related issues / more information _No response_ ### Working on PR no way
Gustl22 commented 7 months ago

Hi there, plz upgrade to v6.0.0. Also make sure to run it with XCode 15.

sufiyanas commented 7 months ago

Hi, thank you for your response. I have updated both , My current Xcode version is 15.3 and audio player V6.0.0 Still i am facing same issue

Gustl22 commented 7 months ago

That's weird. Did you try a flutter clean and a flutter pub upgrade? Make sure the version also changes im the pubspec.lock. Can you fill the steps to reproduce please?