simple_youtube_player 0.1.1
simple_youtube_player: ^0.1.1 copied to clipboard
A simple and easy-to-use YouTube video player widget for Flutter. Just provide a URL and size, and you're ready to go! Supports all YouTube URL formats with auto-play, mute, loop, and control options.
Changelog #
All notable changes to Simple YouTube Player will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2025-12-06 #
๐ Initial Release #
The first public release of Simple YouTube Player! A lightweight, easy-to-use YouTube video player widget for Flutter.
โจ Added #
Core Features
- ๐ฅ SimpleYoutubePlayer Widget: Main widget for embedding YouTube videos
- ๐ Smart URL Parser: Automatically detects and handles multiple YouTube URL formats
- Standard format:
youtube.com/watch?v=VIDEO_ID - Short format:
youtu.be/VIDEO_ID - Embed format:
youtube.com/embed/VIDEO_ID - Mobile format:
m.youtube.com/watch?v=VIDEO_ID - Direct video ID support
- Standard format:
Customization Options
- ๐ Size Control: Configurable width and height
- โถ๏ธ Auto-play: Option to start video automatically
- ๐ Mute Control: Start videos with or without sound
- ๐ Loop Mode: Infinite video looping
- ๐ฎ Controls Toggle: Show or hide YouTube player controls
Advanced Features
- ๐ฎ Player Controller:
SimpleYoutubePlayerControllerfor advanced control- State monitoring (isPlaying, isLoading)
- Error tracking and handling
- Listener support for state changes
UI/UX
- ๐จ Loading Indicators: Beautiful loading state with progress indicator
- ๐ก๏ธ Error Handling: User-friendly error messages with icons
- โจ Rounded Corners: Aesthetic 8px border radius
- ๐ฑ Responsive Design: Works perfectly on all screen sizes
Platform Support
- โ Android - Full support
- โ iOS - Full support
- โ Web - Full support
- โ macOS - Full support
- โ Windows - Full support
- โ Linux - Full support
๐ Documentation #
- ๐ Comprehensive README: Complete usage guide with 8+ code examples
- ๐ก Multiple Examples:
- Basic usage
- Advanced controller usage
- Responsive layouts
- Video lists
- Styled players
- Background videos
- ๐ฏ Best Practices: DO's and DON'Ts guide
- ๐ Troubleshooting: Common issues and solutions
- ๐ Parameter Reference: Complete API documentation
๐ง Technical #
-
Dependencies:
webview_flutter: ^4.4.2- For video rendering- Flutter SDK:
>=3.0.0 - Dart SDK:
>=3.0.0 <4.0.0
-
Architecture:
- Clean separation of concerns
- Modular code structure
- Well-documented codebase
- Null-safe implementation
๐ฆ Example App #
- ๐ฌ Complete Demo Application: Showcases all features
- ๐จ Multiple Screens: Different use cases demonstrated
- ๐ฑ Production-Ready: Can be used as reference implementation
๐ License #
- MIT License - Free for personal and commercial use
[Unreleased] #
๐ Planned Features for Future Releases #
v0.2.0
- โก Playback Speed: Control video playback speed
- ๐ฅ Quality Selection: Choose video quality (360p, 720p, 1080p, etc.)
- ๐บ Picture-in-Picture: Floating video window support
- ๐ฅ๏ธ Fullscreen Mode: Native fullscreen support
v0.3.0
- ๐ Subtitle Support: Enable/disable captions
- ๐ Progress Tracking: Track video watch progress
- ๐๏ธ Volume Control: Programmatic volume adjustment
- โธ๏ธ Player Events: onPlay, onPause, onEnded callbacks
v1.0.0 (Stable Release)
- ๐ฏ Performance Optimizations: Faster loading and better memory management
- ๐ Private Video Support: Handle authentication for private videos
- ๐ Localization: Multi-language error messages
- ๐ฑ Offline Caching: Cache videos for offline viewing
๐ก Feature Requests #
Have an idea? Open an issue with the label enhancement!
Version Naming Convention #
This project follows Semantic Versioning:
- MAJOR version (1.0.0): Incompatible API changes
- MINOR version (0.1.0): New features, backwards compatible
- PATCH version (0.0.1): Bug fixes, backwards compatible
Examples: #
0.0.1โ0.0.2: Bug fix0.0.1โ0.1.0: New feature added0.9.0โ1.0.0: First stable release or breaking changes
How to Report Issues #
Found a bug? Please help us improve!
- ๐ Search existing issues to avoid duplicates
- ๐ Create new issue with:
- Clear title
- Step-by-step reproduction
- Expected vs actual behavior
- Flutter/Dart version
- Platform (iOS/Android/Web/etc.)
- Screenshots if applicable
Contributing #
Want to contribute? Check out:
- CONTRIBUTING.md - Contribution guidelines
- CODE_OF_CONDUCT.md - Community guidelines
- Open Issues - Find something to work on
Special Thanks #
Thanks to everyone who contributed to this release:
- ๐จ Designers who inspired the simple API
- ๐งช Beta testers who found early bugs
- ๐ฌ Community members who provided feedback
- โญ Everyone who starred the repository!
Note: This is an initial release. Expect rapid improvements and feature additions based on community feedback. Please report any issues you encounter!
Quick Links #
- ๐ฆ Package on pub.dev
- ๐ป Source Code
- ๐ Documentation
- ๐ Issue Tracker
Made with for the Flutter community