Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
877 stars 573 forks source link

[BUG]:Remote Url can't play in iOS and Andriod. #968

Open mozartee opened 1 year ago

mozartee commented 1 year ago

Flutter Sound Version : v9.2.13


Severity


Platforms you faced the error


Describe the bug There were two bugs I got:

  1. In iOS Simulator, it could't record with any type of aac、mp4 etc, but real device success. the log is: Unhandled Exception: PlatformException(Audio Player, startPlayer failure, null, null)
  2. It could't play remote url both of emulator and device, iOS or Andriod.

Logs!!!!

(This is very important. Most of the time we cannot do anything if we do not have information on your bug). To activate the logs, you must instantiate your modules with the Log Level set to Level.debug :

FlutterSoundPlayer myPlayer = FlutterSoundPlayer(logLevel: Level.debug);
FlutterSoundRecorder myRecorder = FlutterSoundRecorder(logLevel: Level.debug);

See this

some log like this: E/MediaPlayerNative( 3932): error (1, -2147483648) I/flutter ( 3932): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 3932): │ #0 FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:360:13) flutter_sound_player.dart:360 I/flutter ( 3932): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:137:19) method_channel_flutter_sound_player.dart:137 I/flutter ( 3932): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 3932): │ ⛔ startPlayer() exception I/flutter ( 3932): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

:)


mozartee commented 1 year ago

Pls ignore the second question,--!, the reason is the device was set proxy some days ago!!!

zhaoxu666 commented 1 year ago

I have encountered the same problem, have you resolved it?

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 365 days with no activity. Leave a comment or this will be closed in 7 days.