Skip to content
pubscout

omni_video_player

6.1.0, released 3 weeks ago by leonardmatasel.it

A unified Flutter widget for playing videos from YouTube, Vimeo, network, and local files.

$ flutter pub add omni_video_player
Source repository

What it does

omni_video_player is an all-in-one Flutter video solution wrapping specialized extractors and webviews into a single controller. It handles YouTube, Vimeo, HLS, local assets, and network sources with smart fallback options and built-in quality selectors.

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

Use it when

  • You need to play videos from multiple sources like YouTube, Vimeo, and HLS using a single controller.
  • You want built-in UI features like quality selection, playlists, and responsive video scaling.

Skip it when

  • You only need basic local file playback and want to minimize dependency size.
  • You are building for platforms or formats unsupported by the underlying extractors (e.g. certain WebM constraints on iOS).

Strengths

  • Unified API across YouTube, Vimeo, HLS, and local video sources.
  • Automatic WebView fallback for YouTube when primary extraction fails.
  • Built-in quality selection for YouTube and HLS streams.
  • Playlist support for queuing multiple videos.

Weaknesses

  • Quality selection for YouTube is limited or disabled on iOS due to native stream limitations.
  • WebM seeking is disabled on iOS due to WebKit limitations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
10

Optional configuration for Android INTERNET permission and cleartext traffic, or iOS arbitrary loads if using HTTP streams.

OmniVideoPlayer(
  callbacks: VideoPlayerCallbacks(),
  configuration: VideoPlayerConfiguration(
    videoSourceConfiguration: VideoSourceConfiguration.youtube(
      videoUrl: Uri.parse('https://www.youtube.com/watch?v=dQw4w9WgXcQ'),
      preferredQualities: [OmniVideoQuality.high720],
    ),
  ),
)

Alternatives

Packages that do the same job and could replace omni_video_player.

  • just_audio

    If your primary focus is advanced audio playback or complex audio streaming rather than video.

Works with

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