Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krtirtho/mpv_dart
MPV player's JSON IPC binding for Dart
https://github.com/krtirtho/mpv_dart
dart flutter mpv mpv-player
Last synced: 25 days ago
JSON representation
MPV player's JSON IPC binding for Dart
- Host: GitHub
- URL: https://github.com/krtirtho/mpv_dart
- Owner: KRTirtho
- License: mit
- Created: 2021-12-31T07:47:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T07:53:52.000Z (almost 3 years ago)
- Last Synced: 2024-10-09T00:29:56.803Z (about 1 month ago)
- Topics: dart, flutter, mpv, mpv-player
- Language: Dart
- Homepage:
- Size: 49.8 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## MPV Dart
[MPV](https://mpv.io) Player's JSON-IPC binding for Dart (Flutter Supported)
### Installation
Install in your Dart/Flutter project with:
```bash
$ dart pub add dart_mpv
``````bash
$ 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](https://mpv.io/installation/)
### Usage
Create an MPVPlayer instance
```dart
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](/CHANGELOG.md)