Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
sufiyanas opened this issue Mar 28, 2024 · 3 comments
Open
2 tasks done
Labels

Comments

@sufiyanas
Copy link

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

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

@sufiyanas sufiyanas added the bug label Mar 28, 2024
@Gustl22
Copy link
Collaborator

Gustl22 commented Mar 29, 2024

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

@sufiyanas
Copy link
Author

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
Copy link
Collaborator

Gustl22 commented Mar 29, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants