Video Player Dart VLC is a platform interface for video player using dart_vlc to work on Windows and Linux. This interface allows you to play videos seamlessly in your flutter applications.
video_player
is the package used for playing videos on Android, iOS, and web platforms.
dart_vlc
is the package used for playing videos on Windows, Linux platforms.
To use Video Player Dart VLC in your application, follow the steps below:
Everything is already set up.
For using this plugin on Linux, you must have VLC & libVLC installed.
On Ubuntu/Debian:
sudo apt-get install vlc
sudo apt-get install libvlc-dev
On Fedora:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install vlc
sudo dnf install vlc-devel
- Add the Video Player Dart VLC dependency in your
pubspec.yaml
file:
dependencies:
video_player_dart_vlc: ^0.1.6
- Import the package in your Dart code
import 'package:video_player_dart_vlc/video_player_dart_vlc.dart';
- Initialize the Video Player Dart VLC interface in the main function of your app
void main() {
initVideoPlayerDartVlcIfNeeded();
runApp(MyApp());
}