Skip to content
pubscout

video_player_media_kit

2.0.0, released a year ago by media-kit.dev

package:video_player implementation for all platforms powered by package:media_kit.

WASM-readyQuiet but busy
$ flutter pub add video_player_media_kit
Source repository

What it does

Allows standard package:video_player code to run across Android, iOS, web, Windows, macOS, and Linux by using package:media_kit as the underlying backend. It provides support for more video and audio formats and codecs than the default platform implementations.

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

Use it when

  • You want to use the familiar package:video_player API but need broader platform support including Windows, macOS, and Linux.
  • You need better video and audio codec support across platforms than the default video_player implementations provide.

Skip it when

  • You prefer using package:media_kit directly without the video_player abstraction layer.
  • You want a dedicated media player package with specialized features not exposed by video_player.

Strengths

  • Enables package:video_player on desktop platforms (Windows, macOS, Linux) and web.
  • Leverages the robust media_kit backend for enhanced codec support.
  • Requires only a single-line initialization before normal video_player usage.

Weaknesses

  • Requires adding platform-specific media_kit dependency libraries for full functionality.
  • Inherits limitations of the package:video_player API wrapper.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add video_player_media_kit and corresponding media_kit_libs_* packages to pubspec.yaml, then call VideoPlayerMediaKit.ensureInitialized in main().

void main() {
  VideoPlayerMediaKit.ensureInitialized(
    android: true,
    iOS: true,
    macOS: true,
    windows: true,
    linux: true,
  );
  runApp(MyApp());
}

Alternatives

Packages that do the same job and could replace video_player_media_kit.

  • video_player

    The official plugin, though it may lack out-of-the-box desktop support on older versions compared to media_kit.

  • just_audio

    If you primarily need feature-rich audio playback with precise control.

Works with

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