# HLMP **Repository Path**: codewuren/hlmp ## Basic Information - **Project Name**: HLMP - **Description**: 基于Flutter框架开发的跨平台音乐播放器 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-13 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HLMP - Hualiuting is a Local Music Player ## Project Overview HLMP (Hualiuting is a Local Music Player) is a modern, cross-platform music player built with Flutter. It provides a seamless music listening experience with advanced features like intelligent recommendations, play history tracking, and multi-platform support. ## Features - **Multi-format Audio Support**: Supports MP3, FLAC, AAC, and other popular audio formats - **Modern UI/UX**: Clean, intuitive interface with dark/light theme support - **Cross-platform**: Runs on macOS, Windows, Linux, iOS, and Android - **Smart Recommendations**: AI-powered music recommendations based on listening habits - **Play History**: Comprehensive tracking of listening history and statistics - **Playlist Management**: Create, edit, and manage custom playlists - **Audio Controls**: Full playback control with shuffle, repeat, and queue management - **Secure File Access**: Sandboxed file access with proper permissions - **Internationalization**: Support for multiple languages (English, Chinese) - **Local Database**: SQLite-based local storage for music metadata and preferences ## Installation Instructions ### Prerequisites - Flutter SDK (>=3.0.0) - Dart SDK (>=3.0.0) - Platform-specific development tools: - **macOS**: Xcode 14.0+ - **Windows**: Visual Studio 2022 - **Linux**: CMake, Ninja - **Android**: Android Studio, Android SDK - **iOS**: Xcode 14.0+ ### Setup Steps 1. **Clone the repository** ```bash git clone https://github.com/yourusername/hlmp.git cd hlmp ``` 2. **Install dependencies** ```bash flutter pub get ``` 3. **Generate localization files** ```bash flutter gen-l10n ``` 4. **Run the application** ```bash # For macOS flutter run -d macos # For Windows flutter run -d windows # For Linux flutter run -d linux # For Android flutter run -d android # For iOS flutter run -d ios ``` ## Usage Examples ### Basic Playback ```dart // Play a music file final musicProvider = Provider.of(context, listen: false); await musicProvider.playMusic(selectedMusic); // Control playback await musicProvider.pauseMusic(); await musicProvider.resumeMusic(); await musicProvider.stopMusic(); ``` ### Playlist Management ```dart // Create a new playlist final audioService = AudioPlayerService(); await audioService.setPlaylist(musicList); // Add music to playlist await audioService.addToPlaylist(newMusic); // Remove music from playlist await audioService.removeFromPlaylist(musicIndex); ``` ### Theme Switching ```dart // Toggle between light and dark themes final themeProvider = Provider.of(context, listen: false); themeProvider.toggleTheme(); ``` ## Configuration Options ### Audio Settings - **Audio Quality**: Configure bitrate and sample rate preferences - **Crossfade**: Set crossfade duration between tracks - **Equalizer**: Customize audio equalizer settings - **Volume**: Set default volume levels and volume curve ### UI Preferences - **Theme**: Choose between light, dark, or system theme - **Language**: Select interface language (English/Chinese) - **Layout**: Customize player layout and controls - **Animations**: Enable/disable UI animations ### Privacy & Security - **File Access**: Configure folder access permissions - **Data Collection**: Control analytics and usage data collection - **Cache Management**: Set cache size limits and cleanup policies ## Contribution Guidelines ### Getting Started 1. Fork the repository 2. Create a feature branch (`git checkout -b feature/amazing-feature`) 3. Make your changes 4. Add tests for new functionality 5. Ensure all tests pass (`flutter test`) 6. Commit your changes (`git commit -m 'Add amazing feature'`) 7. Push to the branch (`git push origin feature/amazing-feature`) 8. Open a Pull Request ### Code Standards - Follow Dart/Flutter style guidelines - Add comprehensive documentation for new features - Include unit tests for all new functionality - Ensure code passes static analysis (`flutter analyze`) - Use meaningful commit messages ### Bug Reports When reporting bugs, please include: - Operating system and version - Flutter/Dart version - Steps to reproduce the issue - Expected vs actual behavior - Screenshots or logs if applicable ## License Information This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ### Third-party Libraries - **just_audio**: Audio playback functionality - **sqflite**: Local database management - **provider**: State management - **file_picker**: File selection capabilities - **shared_preferences**: User preferences storage ## Contributing We welcome contributions from developers worldwide! ## Support If you encounter any issues or have questions, please feel free to open an issue on GitHub. ## Acknowledgments Thanks to all contributors and the Flutter community for making this project possible.