universal_video_controls
2.0.2, released 3 months ago by zcreations.info
Universal video player controls compatible with any video player backend.
What it does
Provides customizable video player controls (Material, Cupertino, and desktop themes) that can be abstracted to work with different video player backends such as video_player.
AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want consistent video player controls across multiple platforms.
- You need custom theming for video play/pause, volume, seek bar, and fullscreen buttons.
- You want to use video controls with players other than media_kit.
Skip it when
- You only need a bare video player surface without any UI controls.
- You are using a video player backend that does not support the required interface abstraction.
Strengths
- Supports multiple control themes (Material, Material Desktop, Cupertino, Adaptive).
- Works across Android, iOS, web, Windows, macOS, and Linux.
- Provides built-in desktop keyboard shortcuts.
Weaknesses
- Requires integration wrappers for specific video player backends.
- Requires minimum Flutter >=3.41.0 and Dart SDK ^3.11.0.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 10
Add the package and compatible player wrappers to pubspec.yaml.
Scaffold(
body: VideoControls(
controller: controller,
controls: MaterialVideoControls,
),
);Alternatives
Packages that do the same job and could replace universal_video_controls.
- video_player
If you prefer official, lightweight basic video playback without advanced universal controls.
93Compare - just_audio
If your primary focus is advanced audio playback features.
80Compare
Works with
Packages commonly used together with universal_video_controls: ones it builds on, ones built on it, and its own family.
- webuniversal_video_controls depends on itLightweight bindings for browser APIs via JS interop
- plugin_platform_interfaceuniversal_video_controls depends on itReusable base class for platform interfaces of Flutter federated plugins.
- synchronizeduniversal_video_controls depends on itLock mechanism to prevent concurrent access to asynchronous code.
- wakelock_plusuniversal_video_controls depends on itKeep the device screen awake across mobile, desktop, and web platforms.
- universal_platformuniversal_video_controls depends on itPlatform detection across Flutter, Dart web, and desktop without errors
- window_manageruniversal_video_controls depends on itFlutter desktop window resizing, moving, showing, hiding via nativeapi.
- screen_brightnessuniversal_video_controls depends on itA Flutter plugin for controlling screen brightness with application lifecycle reset.
- volume_controlleruniversal_video_controls depends on itControl and observe system volume on Android, iOS, macOS, Windows, and Linux.