Add video player (#2)

https://github.com/sony/flutter-embedded-linux/issues/124
This commit is contained in:
Hidenori Matsubayashi
2021-07-29 13:20:33 +09:00
committed by GitHub
parent e6d61c00af
commit 0fe779fc3a
40 changed files with 3214 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
# video_player_elinux
The implementation of the Video Player plugin for flutter elinux. APIs are designed to be API compatible with the the official [`video_player`](https://github.com/flutter/plugins/tree/master/packages/video_player).
![image](https://user-images.githubusercontent.com/62131389/124210378-43f06400-db26-11eb-8723-40dad0eb67b0.png)
## Required libraries
This plugin uses [GStreamer](https://gstreamer.freedesktop.org/) internally.
```Shell
$ sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-0 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
```
## Getting Started
### `pubspec.yaml`
```yaml
dependencies:
video_player: ^2.1.12
video_player_elinux:
git:
url: https://github.com/sony/flutter-elinux-plugins/tree/main/packages/video_player/video_player
ref: ^0.9.0
```
### Source code
Import `video_player` in your Dart code:
```dart
import 'package:video_player/video_player.dart';
```