cached_video_player_plus 4.0.0
cached_video_player_plus: ^4.0.0 copied to clipboard
The video_player plugin that went to therapy, worked on its commitment issues, and now actually remembers your videos!
4.0.0 #
We Marie Kondo'd the entire API! Everything that didn't spark joy got yeeted into the digital void! ✨🗑️
BREAKING CHANGES
- Complete API restructure:
CachedVideoPlayerPlusControllerreplaced with class-basedCachedVideoPlayerPlusapproach - Widget usage changed: Use
VideoPlayer(player.controller)instead ofCachedVideoPlayerPlus(controller) - Controller access: Video control methods now accessed through
.controllerproperty (e.g.,player.controller.play()) - Storage migration: Switched from
get_storagetoshared_preferencesfor cache metadata storage - Method renames:
removeCurrentFileFromCache()→removeFromCache() - Parameter type changes:
removeFileFromCache()now takesUriinstead ofString - Cache key prefix changed internally (handled automatically by migration utility)
- Default cache duration increased from 30 days to 69 days (Nice! 😎)
- Removed deprecated
CachedVideoPlayerPlusController.network()constructor - Removed classes:
CachedVideoPlayerPlusValue,CachedVideoPlayerPluswidget,ClosedCaptionFileimplementations
Features
- feat: Pre-cache videos without creating player instances using
CachedVideoPlayerPlus.preCacheVideo() - feat: Custom cache key support via
cacheKeyparameter for cleaner cache management (because sometimes URLs are longer than a CVS receipt) - feat: Custom cache manager support via
cacheManagerparameter - feat: Separate download headers via
downloadHeadersparameter for authentication purposes - feat: Cache removal by custom cache key using
removeFileFromCacheByKey() - feat: Automatic migration utility to preserve existing cached video data from v3.x.x
- feat: Convenience property
player.isInitializedfor easier state checking
Fixes
- fix: Web platform cannot play cached videos - improved web compatibility
- fix: Race condition in cache file removal by making it awaitable (no more cache file musical chairs!)
- fix: StateError exception handling for uninitialized controller access
Chores
- chore: Updated dependencies to latest versions with Flutter 3.32 support
- chore: Restructured from plugin to package architecture
- chore: Enhanced documentation with migration guide and comprehensive examples (now with 42% more humor!)
- chore: Updated example app to showcase full v4.0.0 feature set
3.0.3 #
- refactor: lowered sdk constraints to support dart 3.0.0 and above
3.0.2 #
- chore: updated dependency constraints to support lower bounds
3.0.1 #
BREAKING CHANGES
- Using plugin specific cache manager from
flutter_cache_manager - Using plugin specific
get_storagecontainer for storing cache information
Features
- feat: added cache removal support using static method or instance method. Thanks @chorauoc
- feat: option to
skipCachewhen initializing the player. Thanks @chorauoc
Chores
- chore: updated all dependencies to latest versions
- chore: updated shared code from
video_playerplugin
2.0.0 #
BREAKING CHANGES
- Using
flutter_cache_managerfor caching and removed all caching related code from this package - Using platform specific
video_playerplugin asdefault_packageand removed all video related code from this package
Features
- feat: added support to invalidate cache if older than a specified duration
- feat: added support for
macOSplatform
1.0.1 #
- fix: compiler linking issues while running on simulator
- docs: added instructions for web platform
1.0.0 #
- Initial Stable release