0 purchases
windows audio
windows_audio #
A simple windows audio plugin for flutter
Implementation #
Add the flutter plugin to your pubspec.yaml file
dependencies:
windows_audio: ^1.0.0
copied to clipboard
Firstly, import the flutter plugin
import "package:windows_audio/windows_audio.dart";
copied to clipboard
Then create an instance of the player
final Player = WindowsAudio();
copied to clipboard
Finally load the audio and play it
Player.load("assets/audio/filename");
Player.play();
copied to clipboard
Make sure that you have added the audio to the pubspec.yaml file
assets:
- assets/audio/filename
copied to clipboard
This plugin supports wav, mp3 and ogg files.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.