simple_player 3.1.0
simple_player: ^3.1.0 copied to clipboard
SimplePlayer offers all the essential tools for viewing videos in your mobile applications in a simplified way!
3.1.0 Muted autoplay π #
- New:
muteOnAutoPlay(bool, defaultfalse) starts the video silent whenautoPlayis on β the way a video behaves inside a feed. - While the sound is off the inline player shows a small muted badge. It stays put while the rest of the interface fades away, since it is the only way back to sound, and tapping it turns the sound on.
- Opening full screen turns the sound on by itself, so the badge never shows up there β and it stays on after coming back.
- New:
simpleController.setVolume(double).
3.0.1 Seek bar alignment fix π #
- Outside full screen the player no longer follows the device insets: the seek bar is glued to the bottom of the player box and the title sits back at the top, the way they already behaved in full screen. Inline, those insets belong to the host app.
3.0.0 New look, BoxFit support & project modernization π¬πΌοΈπ #
Interface #
- Redesigned around what current players look like: soft top/bottom gradients instead of a flat veil, one central play/pause button, elapsed/total time and a slim edge to edge seek bar that also shows the buffered range.
- The interface now auto hides 3 seconds after playback starts and comes back on a tap.
- A spinner replaces the play button while the video is buffering.
- Removed: the settings popup, along with the brightness slider, the
"comfort mode" tint and the speed buttons it carried. Playback speed is now
part of the controller API (
simpleController.setSpeed), and thescreen_brightnessdependency is gone. - Removed:
forceAspectRatio. Usefit/fullScreenFitinstead β the oldforceAspectRatio: trueisfit: BoxFit.fill. - New:
simpleController.seekTo(Duration).
Player #
- New:
fitandfullScreenFit(BoxFit, defaultBoxFit.contain) onSimplePlayerSettings. The scaling is applied to the video frame only β the controls live on a separate layer of theStackand are never cropped, clipped or distorted. - New:
expand(bool, defaultfalse) lets the player fill the parent box instead of forcing its ownaspectRatio. - Migrated to Flutter 3.29+/Dart 3.8+,
video_player^2.10 andflutter_lints^6.video_playeris now the package's only runtime dependency. - Example app migrated to the current Android (Gradle Kotlin DSL, AGP 9, Gradle 9.1,
Kotlin 2.3, Java 17,
namespace) and iOS (deployment target 13.0) templates. - Replaced deprecated APIs:
WillPopScopeβPopScopeandwithOpacityβwithValues. SimpleControllerposition/play-pause streams are now event driven instead of polling every 50ms, and are closed ondispose().- Fixed leaked listeners and stream subscriptions when the player is disposed.
- A failing video source no longer throws an unhandled exception nor spins forever.
- Added a test suite covering the fit resolution and the "controls are never clipped" rule.
2.1.0 CorreΓ§Γ£o de alertas de problemas e nova funΓ§Γ£o: delete() β¨πΊβ #
- Adjustment of the play and pause interface that was not hidden after playing the video
- Playback discard adjustment that was not working correctly
- Added .delete() method. (dipose)
2.0.2 Issues alerts fix πΊβ #
- Adjust the play button and pause in fullscreen.
2.0.1 Issues alerts fix πβ #
- Issues alerts fix.
2.0.0 Player fluidity ππ #
- FullScreen mode is now much more fluid.
- Optimized video loading.
- New Settings PopUp.
1.1.4 FullScreen adjustments πΊβ¨ #
- FullScreen mode now respects the Aspect Ratio of the played video: portrait and landscape.
1.1.1 adjustments π #
- documentation adjustments.
1.1.0 Options widget β¨οΈβ¨ #
- Improvements made to the scale and behavior of the playback adjustment widget.
1.0.8 Added controller and Adjust β¨ #
- Video loading screen
1.0.7 Added controller and Adjust β¨ #
- Now you can control your playback without using the interface directly!
- Adjusted autoplay
1.0.6 Added controller β¨ #
- Now you can control your playback without using the interface directly!
1.0.5 New settings screen #
- A simpler and more functional look than before, focused on usability and practicality!
1.0.4 SimplePlayer Add AspectRatio #
- Improvements to full screen and aspect ratio settings.
- AspectRatio gained more features
- Code optimization
1.0.3 Organizing SimplePlayer #
- Functional package accepts videos via network and via assets path.
- Edit Readme*
1.0.2 SimplePlayer BetaOn #
- Functional package accepts videos via network .
- Edit Readme
1.0.1 SimplePlayer #
- Functional package accepts videos via assets path.
1.0.0 Play videos #
- Basic interface ready.
0.0.1 #
- Initialize backstages.