Closed Larpoux closed 3 months ago
9.3.7
Describe the bug Cannot play a Remote File or an Asset with Codec=PCM16/AIFF on Android
To Reproduce Steps to reproduce the behavior:
(This is very important. Most of the time we cannot do anything if we do not have information on your bug). I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:777:13) I/flutter (21359): │ #1 FlutterSoundPlayer.startPlayer. (package:flutter_sound/public/flutter_sound_player.dart:757:17) I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 🐛 FS:---> startPlayer I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1097:13) I/flutter (21359): │ #1 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:804:11) I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 🐛 FS:---> _stop I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── E/MediaPlayerNative(21359): stop called in state 0, mPlayer(0xb400007962d3f460) E/MediaPlayerNative(21359): error (-38, 0) V/MediaPlayer(21359): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false V/MediaPlayer(21359): cleanDrmObj: mDrmObj=null mDrmSessionId=null V/MediaPlayer(21359): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false V/MediaPlayer(21359): cleanDrmObj: mDrmObj=null mDrmSessionId=null I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:294:13) I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:101:19) I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 🐛 ---> stopPlayerCompleted: true I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:309:13) I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:101:19) I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 🐛 <--- stopPlayerCompleted: true I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1124:13) I/flutter (21359): │ #1 I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 🐛 FS:<--- _stop I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── E/MediaPlayerNative(21359): error (1, -2147483648) I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:358:13) I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:125:19) I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ 💡 startPlayer() exception I/flutter (21359): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 _MyAppState.startPlayer (package:example/demo/demo.dart:585:27) I/flutter (21359): │ #1 I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21359): │ ⛔ error: PlatformException(ERR_UNKNOWN, ERR_UNKNOWN, startPlayer() error, null) I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
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.
Flutter Sound Version :
9.3.7
Severity
Platforms you faced the error
Describe the bug Cannot play a Remote File or an Asset with Codec=PCM16/AIFF on Android
To Reproduce Steps to reproduce the behavior:
Hit the Playback Button
Logs!!!!
(This is very important. Most of the time we cannot do anything if we do not have information on your bug). I/flutter (21359): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21359): │ #0 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:777:13) I/flutter (21359): │ #1 FlutterSoundPlayer.startPlayer. (package:flutter_sound/public/flutter_sound_player.dart:757:17)
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 🐛 FS:---> startPlayer
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1097:13)
I/flutter (21359): │ #1 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:804:11)
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 🐛 FS:---> _stop
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
E/MediaPlayerNative(21359): stop called in state 0, mPlayer(0xb400007962d3f460)
E/MediaPlayerNative(21359): error (-38, 0)
V/MediaPlayer(21359): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(21359): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(21359): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(21359): cleanDrmObj: mDrmObj=null mDrmSessionId=null
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:294:13)
I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:101:19)
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 🐛 ---> stopPlayerCompleted: true
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:309:13)
I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:101:19)
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 🐛 <--- stopPlayerCompleted: true
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1124:13)
I/flutter (21359): │ #1
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 🐛 FS:<--- _stop
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
E/MediaPlayerNative(21359): error (1, -2147483648)
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:358:13)
I/flutter (21359): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:125:19)
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ 💡 startPlayer() exception
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (21359): │ #0 _MyAppState.startPlayer (package:example/demo/demo.dart:585:27)
I/flutter (21359): │ #1
I/flutter (21359): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (21359): │ ⛔ error: PlatformException(ERR_UNKNOWN, ERR_UNKNOWN, startPlayer() error, null)
I/flutter (21359): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────