Skip to content
pubscout

flutter_vlc_player

7.4.4, released a year ago by solid.software

A VLC-powered video player alternative for Flutter, supporting multiple players.

Quiet but busy
$ flutter pub add flutter_vlc_player
Source repository

What it does

Provides a VLC-powered widget and controller for playing audio and video streams or files on Android and iOS. Supports multiple players on a single screen and features like video recording and external display casting.

AI-written summary of version 7.4.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a robust video player with extensive format support via VLC.
  • You need to display multiple video players simultaneously on one screen.
  • Flutter's default video_player lacks necessary features or format support.

Skip it when

  • You need web or desktop support (the package supports Android and iOS only).
  • You want a lightweight alternative and the full libVLC binary footprint is too large for your app.

Strengths

  • Supports multiple players on a single screen.
  • Works fully on iOS simulators, unlike Flutter's default video_player.
  • Built-in video recording and chromecast external display support.

Weaknesses

  • Limited platform support (Android and iOS only).
  • Video recording has known issues if the video reaches its end while recording.
  • Requires manual configuration for network security policies and permissions on Android and iOS.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Requires platform configuration: internet/storage permissions and cleartext traffic flags on Android, and AppTransportSecurity or local network/Bonjour keys on iOS.

import 'package:flutter/material.dart';
import 'package:flutter_vlc_player/vlc_player_flutter.dart';

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  late VlcPlayerController _videoPlayerController;

  @override
  void initState() {
    super.initState();
    _videoPlayerController = VlcPlayerController.network(
      'https://media.w3.org/2010/05/sintel/trailer.mp4',
      hwAcc: HwAcc.FULL,
      autoPlay: false,
      options: VlcPlayerOptions(),
    );
  }

  @override
  void dispose() async {
    super.dispose();
    await _videoPlayerController.stopRendererScanning();
    await _videoPlayerController.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: VlcPlayer(
          controller: _videoPlayerController,
          aspectRatio: 16 / 9,
          placeholder: Center(child: CircularProgressIndicator()),
        ),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace flutter_vlc_player.

  • video_player

    You want the official Flutter team's video player plugin using native platform primitives.

  • just_audio

    You need a feature-rich, highly customizable audio player rather than a video player.

Works with

Packages commonly used together with flutter_vlc_player: ones it builds on, ones built on it, and its own family.