РЕПОЗИТОРИЙ УСТАРЕЛ
На примере плагина camera_aurora в pubspec.yaml нужно заменить:
audioplayers: ^6.1.0
audioplayers_aurora:
git:
url: https://gitlab.com/omprussia/flutter/flutter-community-plugins/audioplayers_aurora.git
ref: aurora-0.5.3
на:
audioplayers: ^6.1.0
audioplayers_aurora
The Aurora implementation of audioplayers (used directly by gstreamer-1.0 without QT dependencies).
A Flutter plugin to play multiple audio files simultaneously.
Usage
This package is not an endorsed implementation of audioplayers.
Therefore, you have to include audioplayers_aurora alongside audioplayers as dependencies in your pubspec.yaml file.
pubspec.yaml
dependencies:
audioplayers: ^6.1.0
audioplayers_aurora:
git:
url: https://gitlab.com/omprussia/flutter/flutter-community-plugins/audioplayers_aurora.git
ref: aurora-0.5.3
*.desktop
Permissions=Audio
*.spec
%global __requires_exclude ^lib(gstreamer-1.0)\\.so.*$
BuildRequires: pkgconfig(gstreamer-1.0)
*.dart
import 'package:audioplayers/audioplayers.dart';
final player = AudioPlayer();
await player.play(UrlSource('https://example.com/my-audio.wav'));