Open fabianhemmert opened 2 months ago
Trying to run the minimal example (https://pub.dev/packages/audioplayers/example) on Steam deck yields the following error:
flutter: AudioPlayers Exception: AudioPlayerException( AssetSource(path: ambient_c_motion.mp3, mimeType: null), PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null)
I was expecting the audio to play, but it didn`t.
Linux
Steam Deck (Steam OS 3.4.11)
6.1.0
release
No response
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(LinuxAudioError, Unknown GstGError. See details., Your GStreamer installation is missing a plug-in. (Domain: gst-core-error-quark, Code: 12), null) flutter: AudioPlayers Exception: AudioPlayerException( AssetSource(path: ambient_c_motion.mp3, mimeType: null), PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(LinuxAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, Internal data stream error. (Domain: gst-stream-error-quark, Code: 1), null)
no way
Checklist
Current bug behaviour
Trying to run the minimal example (https://pub.dev/packages/audioplayers/example) on Steam deck yields the following error:
Expected behaviour
I was expecting the audio to play, but it didn`t.
Steps to reproduce
Code sample
Code sample
```dart import 'dart:async'; import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MaterialApp(home: _SimpleExampleApp())); } class _SimpleExampleApp extends StatefulWidget { const _SimpleExampleApp(); @override _SimpleExampleAppState createState() => _SimpleExampleAppState(); } class _SimpleExampleAppState extends State<_SimpleExampleApp> { late AudioPlayer player = AudioPlayer(); @override void initState() { super.initState(); // Create the audio player. player = AudioPlayer(); // Set the release mode to keep the source after playback has completed. player.setReleaseMode(ReleaseMode.stop); // Start the player as soon as the app is displayed. WidgetsBinding.instance.addPostFrameCallback((_) async { await player.setSource(AssetSource('ambient_c_motion.mp3')); await player.resume(); }); } @override void dispose() { // Release all sources and dispose the player. player.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Simple Player'), ), body: PlayerWidget(player: player), ); } } // The PlayerWidget is a copy of "/lib/components/player_widget.dart". //#region PlayerWidget class PlayerWidget extends StatefulWidget { final AudioPlayer player; const PlayerWidget({ required this.player, super.key, }); @override StateAffected platforms
Linux
Platform details
Steam Deck (Steam OS 3.4.11)
AudioPlayers Version
6.1.0
Build mode
release
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
Related issues / more information
No response
Working on PR
no way