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.
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.
80Compare
Works with
Packages commonly used together with omni_video_player: ones it builds on, ones built on it, and its own family.
- webomni_video_player depends on itLightweight bindings for browser APIs via JS interop
- synchronizedomni_video_player depends on itLock mechanism to prevent concurrent access to asynchronous code.
- video_playeromni_video_player depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- video_player_androidomni_video_player depends on itAndroid implementation of the video_player plugin
- wakelock_plusomni_video_player depends on itKeep the device screen awake across mobile, desktop, and web platforms.
- flutter_inappwebviewomni_video_player depends on itAdd inline WebViews, headless WebViews, and in-app browser windows.
- volume_controlleromni_video_player depends on itControl and observe system volume on Android, iOS, macOS, Windows, and Linux.
- visibility_detectoromni_video_player depends on itWidget that reports visibility changes of its child