mpv_dart 0.0.1 mpv_dart: ^0.0.1 copied to clipboard
MPV player's JSON IPC binding for Dart (Flutter)
MPV Dart #
MPV Player's JSON-IPC binding for Dart (Flutter Supported)
Installation #
Install in your Dart/Flutter project with:
$ dart pub add dart_mpv
$ flutter pub add dart_mpv
mpv_dart requires mpv player to be installed in your System. To learn how to install for your operating system, go here
Usage #
Create an MPVPlayer instance
import 'package:mpv_dart/mpv_dart.dart';
void main() async {
MPVPlayer player = MPVPlayer();
// start the native player process
await player.start();
// load any file/url
await player.load("ytdl://www.youtube.com/watch?v=Fp8msa5uYsc")
// adjust volume (percentage)
await player.volume(50);
}
Changelog #
Too see changes go here