Canardoux / flutter_sound

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

[BUG]: Can't play AAC stream on Nvidia Shield TV #768

Open LastxTemplar opened 3 years ago

LastxTemplar commented 3 years ago

Flutter Sound Version :

FULL

Result of the command : flutter pub deps | grep flutter_sound

|-- flutter_sound 8.3.12
|   |-- flutter_sound_platform_interface 8.3.12
|   |-- flutter_sound_web 8.3.12
|   |   |-- flutter_sound_platform_interface...

Severity

Stream not playing on Nvidia Shield, works on other android devices


Platforms you faced the error


Describe the bug I am trying to play audio live streams from radio stations. They do work on real android devices, but on the nvidia shield device some stations don't play, and I noticed that the ones that don't play are not in mp3 format, but with an .aac extension. When I analyze the streams in VLC player, I can see in the Codec tab it says MPEG AAC Audio (mp4a)

To Reproduce Here is the full code to reproduce the error, it's the same code from the example of this package but there are more sources now, the last 2 sources don't work on Nvidia Shield:

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter_sound/flutter_sound.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SimplePlayback(),
    );
  }
}

final _exampleAudioFilePathMP3 =
    // 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3';
    // 'http://live.topfm.hu:8000/comedy.mp3';
    // 'https://stream.zeno.fm/b2d7b20gx4zuv';
    'https://live.guerrillaradio.ro:8443/guerrilla.aac';

///
typedef Fn = void Function();

/// Example app.
class SimplePlayback extends StatefulWidget {
  @override
  _SimplePlaybackState createState() => _SimplePlaybackState();
}

class _SimplePlaybackState extends State<SimplePlayback> {
  FlutterSoundPlayer? _mPlayer = FlutterSoundPlayer();
  bool _mPlayerIsInited = false;

  @override
  void initState() {
    super.initState();
    _mPlayer!.openAudioSession().then((value) {
      setState(() {
        _mPlayerIsInited = true;
        // play();
      });
    });
  }

  @override
  void dispose() {
    stopPlayer();
    // Be careful : you must `close` the audio session when you have finished with it.
    _mPlayer!.closeAudioSession();
    _mPlayer = null;

    super.dispose();
  }

  // -------  Here is the code to playback a remote file -----------------------

  void play() async {
    await _mPlayer!.startPlayer(
        fromURI: _exampleAudioFilePathMP3,
        // codec: Codec.aacADTS,
        whenFinished: () {
          setState(() {});
        });
    setState(() {});
  }

  Future<void> stopPlayer() async {
    if (_mPlayer != null) {
      await _mPlayer!.stopPlayer();
    }
  }

  // --------------------- UI -------------------

  Fn? getPlaybackFn() {
    if (!_mPlayerIsInited) {
      return null;
    }
    return _mPlayer!.isStopped
        ? play
        : () {
            stopPlayer().then((value) => setState(() {}));
          };
  }

  @override
  Widget build(BuildContext context) {
    Widget makeBody() {
      return Column(
        children: [
          Container(
            margin: const EdgeInsets.all(3),
            padding: const EdgeInsets.all(3),
            height: 80,
            width: double.infinity,
            alignment: Alignment.center,
            decoration: BoxDecoration(
              color: Color(0xFFFAF0E6),
              border: Border.all(
                color: Colors.indigo,
                width: 3,
              ),
            ),
            child: Row(children: [
              ElevatedButton(
                onPressed: getPlaybackFn(),
                //color: Colors.white,
                //disabledColor: Colors.grey,
                child: Text(_mPlayer!.isPlaying ? 'Stop' : 'Play'),
              ),
              SizedBox(
                width: 20,
              ),
              Text(_mPlayer!.isPlaying
                  ? 'Playback in progress'
                  : 'Player is stopped'),
            ]),
          ),
        ],
      );
    }

    return Scaffold(
      backgroundColor: Colors.blue,
      appBar: AppBar(
        title: const Text('Simple Playback'),
      ),
      body: makeBody(),
    );
  }
}

Logs!!!!

Restarted application in 1,460ms.
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   new FlutterSoundPlayer
I/flutter (30879): │ #1   new _SimplePlaybackState
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 ctor: FlutterSoundPlayer()
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._openAudioSession
I/flutter (30879): │ #1   FlutterSoundPlayer.openAudioSession.<anonymous closure>
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:---> openAudioSession
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._openAudioSession
I/flutter (30879): │ #1   FlutterSoundPlayer.openAudioSession.<anonymous closure>
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 Resetting flutter_sound Player Plugin
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
E/MediaPlayerNative(30879): stop called in state 0, mPlayer(0x2a51fea640)
E/MediaPlayerNative(30879): error (-38, 0)
V/MediaPlayer(30879): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(30879): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(30879): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(30879): cleanDrmObj: mDrmObj=null mDrmSessionId=null
E/MethodChannel#com.dooboolab.flutter_sound_player(30879): Failed to handle method call
E/MethodChannel#com.dooboolab.flutter_sound_player(30879): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:164)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:238)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at com.dooboolab.fluttersound.FlutterSoundManager.resetPlugin(FlutterSoundManager.java:88)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at com.dooboolab.fluttersound.FlutterSoundPlayerManager.onMethodCall(FlutterSoundPlayerManager.java:66)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:865)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at android.app.ActivityThread.main(ActivityThread.java:6721)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#com.dooboolab.flutter_sound_player(30879):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/DartMessenger(30879): Uncaught exception in binary message listener
E/DartMessenger(30879): java.lang.IllegalStateException: Reply already submitted
E/DartMessenger(30879):     at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:164)
E/DartMessenger(30879):     at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:253)
E/DartMessenger(30879):     at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
E/DartMessenger(30879):     at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:865)
E/DartMessenger(30879):     at android.os.MessageQueue.nativePollOnce(Native Method)
E/DartMessenger(30879):     at android.os.MessageQueue.next(MessageQueue.java:326)
E/DartMessenger(30879):     at android.os.Looper.loop(Looper.java:160)
E/DartMessenger(30879):     at android.app.ActivityThread.main(ActivityThread.java:6721)
E/DartMessenger(30879):     at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(30879):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/DartMessenger(30879):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer.openPlayerCompleted
I/flutter (30879): │ #1   MethodChannelFlutterSoundPlayer.channelMethodCallHandler
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 ---> openPlayerCompleted: true
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer.openPlayerCompleted
I/flutter (30879): │ #1   MethodChannelFlutterSoundPlayer.channelMethodCallHandler
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 <--- openPlayerCompleted: true
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._openAudioSession
I/flutter (30879): │ #1   <asynchronous suspension>
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:<--- openAudioSession
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._startPlayer
I/flutter (30879): │ #1   FlutterSoundPlayer.startPlayer.<anonymous closure>
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:---> startPlayer
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._stop
I/flutter (30879): │ #1   FlutterSoundPlayer._startPlayer
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:---> _stop
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer.stopPlayerCompleted
I/flutter (30879): │ #1   MethodChannelFlutterSoundPlayer.channelMethodCallHandler
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 ---> stopPlayerCompleted: true
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer.stopPlayerCompleted
I/flutter (30879): │ #1   MethodChannelFlutterSoundPlayer.channelMethodCallHandler
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 <--- stopPlayerCompleted: true
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._stop
I/flutter (30879): │ #1   <asynchronous suspension>
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:<--- _stop
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._convert
I/flutter (30879): │ #1   FlutterSoundPlayer._startPlayer
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:---> _convert
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._needToConvert
I/flutter (30879): │ #1   FlutterSoundPlayer._convert
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:---> needToConvert
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._needToConvert
I/flutter (30879): │ #1   FlutterSoundPlayer._convert
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:<--- needToConvert
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer._convert
I/flutter (30879): │ #1   FlutterSoundPlayer._startPlayer
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ 🐛 FS:<--- _convert
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
V/MediaHTTPService(30879): MediaHTTPService(android.media.MediaHTTPService@4a421a8): Cookies: null
V/MediaHTTPService(30879): makeHTTPConnection: CookieHandler (java.net.CookieManager@42ea9ef) exists.
V/MediaHTTPService(30879): makeHTTPConnection(android.media.MediaHTTPService@4a421a8): cookieHandler: java.net.CookieManager@42ea9ef Cookies: null
E/MediaPlayerNative(30879): error (1, -2147483648)
I/flutter (30879): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (30879): │ #0   FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:500:13)
I/flutter (30879): │ #1   MethodChannelFlutterSoundPlayer.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:161:19)
I/flutter (30879): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (30879): │ ⛔ startPlayer() exception
I/flutter (30879): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
E/flutter (30879): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(ERR_UNKNOWN, ERR_UNKNOWN, startPlayer() error, null)
E/flutter (30879): #0      StandardMethodCodec.decodeEnvelope
E/flutter (30879): #1      MethodChannel._invokeMethod
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #2      MethodChannelFlutterSoundPlayer.invokeMethod
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #3      FlutterSoundPlayer._startPlayer
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #4      FlutterSoundPlayer.startPlayer.<anonymous closure>
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #5      BasicLock.synchronized
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #6      FlutterSoundPlayer.startPlayer
E/flutter (30879): <asynchronous suspension>
E/flutter (30879): #7      _SimplePlaybackState.play
E/flutter (30879): <asynchronous suspension>
E/flutter (30879):

I am not too good when it comes to Codecs, but from what I found in other sources it sometimes says the Nvidia Shield cannot play AAC, some say it's not true, but I really need these sources to work and I can't find a solution since I don't even know where to start with solving this.

Thank you!

github-actions[bot] commented 9 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.