youtube_player_pro 1.0.4
youtube_player_pro: ^1.0.4 copied to clipboard
A Flutter package for playing YouTube videos with fullscreen support, custom controls, and WebView integration.
Changelog #
All notable changes to this project will be documented in this file.
1.0.3 - 2025-01-11 #
Added #
- 🚫 Enhanced Share button hiding with comprehensive CSS and JavaScript
- Added extensive CSS selectors to hide all YouTube UI elements
- Added JavaScript function that runs every 100ms to force-hide elements
- Covers all possible YouTube player overlays and buttons
- Includes wildcard selectors for dynamic class names
- Works in both normal and fullscreen modes
Improved #
- 🎯 More reliable element hiding - Now uses multiple hiding strategies:
- CSS
display: none !important - CSS
visibility: hidden !important - CSS
opacity: 0 !important - CSS
pointer-events: none !important - CSS positioning off-screen (
left: -9999px) - JavaScript interval checking every 100ms
- CSS
- 🛡️ Future-proof hiding - Uses wildcard selectors to catch new YouTube UI elements
1.0.2 - 2025-01-11 #
Changed #
- 🎯 BREAKING CHANGE: Changed default value of
showControlsfromtruetofalse- This hides YouTube's native controls (including Share button) by default
- Encourages using the beautiful custom controls instead
- Users can still enable YouTube controls by setting
showControls: true
- 📝 Updated documentation to reflect the new default
- 💡 Added helpful tip about custom controls in README
Added #
- 🚫 Force-hide YouTube Share button using CSS
- Added custom CSS rules to hide Share, Watch Later, and other YouTube buttons
- Works even when
showControls: true - Hides: Share button, Watch Later, Cards, Watermark, Title overlay
- Provides cleaner player interface
- 🎨 Enhanced player appearance with removed YouTube branding elements
Why This Change? #
- ✅ Removes YouTube's Share button completely (as requested by users)
- ✅ Provides cleaner, more customizable UI
- ✅ Custom controls are more beautiful and feature-rich
- ✅ Users have full control over the player appearance
- ✅ No unwanted YouTube UI elements interfering with custom design
1.0.1 - 2025-01-11 #
1.0.0 - 2025-01-11 #
🎉 First Stable Release #
This is the first stable release of YouTube Player Pro!
Features #
- ✅ Stable and production-ready
- ✅ Full documentation and examples
- ✅ Comprehensive error handling
- ✅ Cross-platform support (iOS, Android, Web, macOS, Linux, Windows)
Changed #
- Updated version to 1.0.0 (stable release)
- Finalized API and documentation
0.1.0 - 2025-01-11 (Beta) #
Added #
- Initial release of YouTube Player Pro package
- YouTube video playback with WebView integration
- Fullscreen mode support with landscape orientation
- Custom player controls with beautiful UI
- Volume control (mute/unmute)
- Playback controls (play, pause, stop)
- Seek controls (forward/backward 10 seconds)
- Progress bar with real-time position tracking
- Player state management (playing, paused, buffering, etc.)
- Video thumbnail generation
- Video ID extraction from YouTube URLs
- Error handling and loading states
- Customizable player controls visibility
- YouTube native controls customization options
- Always-visible exit button in fullscreen mode
- Support for iOS, Android, Web, macOS, Linux, and Windows
Features #
- Fullscreen Support: Seamless fullscreen experience with landscape orientation
- Custom Controls: Beautiful, customizable player controls
- Volume Control: Easy mute/unmute functionality
- Progress Tracking: Real-time video position and duration display
- YouTube Settings: Control native YouTube player features
- Cross-Platform: Works on all Flutter-supported platforms
Dependencies #
webview_flutter: ^4.10.0webview_flutter_android: ^4.0.0webview_flutter_wkwebview: ^3.16.0
Known Issues #
- None at this time
Coming Soon #
- Playlist support
- Quality selection
- Playback speed control
- Picture-in-picture mode
- Chromecast support