Files
flutter-elinux-plugins/packages/video_player
Hidenori Matsubayashi 8587b2bd27 Update README: fix pubspec.yaml (#18)
Fixed wrong usage
2021-08-03 17:31:58 +09:00
..
2021-07-29 13:20:33 +09:00
2021-07-29 13:20:33 +09:00
2021-07-29 13:20:33 +09:00
2021-07-29 13:20:33 +09:00
2021-07-29 13:20:33 +09:00
2021-07-29 13:20:33 +09:00

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.

image

Required libraries

This plugin uses GStreamer internally.

$ 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

Usage

pubspec.yaml

dependencies:
  video_player: ^2.1.12
  video_player_elinux:
    git:
      url: https://github.com/sony/flutter-elinux-plugins.git
      path: packages/video_player
      ref: main

Source code

Import video_player in your Dart code:

import 'package:video_player/video_player.dart';