Files
RadioPlayer-22/README.md

109 líneas
2.8 KiB
Markdown
Original Vista normal Histórico

2025-08-01 00:46:14 +00:00
# 🎵 Game! Radio Player
2022-12-24 18:30:54 +00:00
2025-08-01 00:46:14 +00:00
A modern, responsive web-based radio player with a beautiful Spotify-inspired interface. Stream your favorite radio station with real-time song information, lyrics, and playback history.
2023-06-18 21:49:17 +00:00
2025-08-01 00:50:14 +00:00
![Radio Player Preview](img/imageupdate.png)
2023-06-18 21:49:17 +00:00
2025-08-01 00:46:14 +00:00
## ✨ Features
- **🎧 Live Streaming**: Supports multiple streaming protocols (Icecast, Zeno, Shoutcast, Radiojar)
- **🎨 Modern UI**: Spotify-inspired interface with smooth animations
- **📱 Responsive Design**: Works perfectly on desktop, tablet, and mobile devices
- **🎵 Real-time Metadata**: Displays current song, artist, and album artwork
- **📜 Lyrics Integration**: Automatic lyrics lookup using Vagalume API
- **📚 Playback History**: Shows up to 5 recently played songs
- **🎛️ Volume Control**: Precise volume control with keyboard shortcuts
- **⌨️ Keyboard Shortcuts**: Full keyboard navigation support
## 🚀 Quick Start
1. **Clone the repository**
```bash
git clone https://github.com/yourusername/radio-player.git
cd radio-player
```
2025-08-01 00:50:14 +00:00
2. **Configure your radio stream**
2025-08-01 00:46:14 +00:00
- Open `js/script.js`
- Update the `URL_STREAMING` constant with your stream URL
2025-08-01 00:50:14 +00:00
- Get your API endpoint from [RadioAPI.me](https://radioapi.me)
2025-08-01 00:46:14 +00:00
2025-08-01 00:50:14 +00:00
3. **Serve the files**
2025-08-01 00:46:14 +00:00
```bash
python -m http.server 8000
```
2025-08-01 00:50:14 +00:00
4. **Open in browser**
2025-08-01 00:46:14 +00:00
```
http://localhost:8000
```
## ⚙️ Configuration
Edit `js/script.js` to configure your radio stream:
2023-06-18 21:49:17 +00:00
```javascript
2025-08-01 00:46:14 +00:00
const URL_STREAMING = "https://your-stream-url.com/stream"
2025-08-01 00:50:14 +00:00
const API_URL = "https://prod-api.radioapi.me/metadata/YOUR-API-KEY"
2025-08-01 00:46:14 +00:00
```
## 🎮 Keyboard Shortcuts
| Key | Action |
|-----|--------|
| `Space` or `P` | Play/Pause |
| `↑` | Volume Up |
| `↓` | Volume Down |
| `M` | Mute/Unmute |
| `0-9` | Set volume to 0-90% |
## 🎨 Customization
2025-08-01 00:50:14 +00:00
To change the number of history items displayed, edit `js/script.js` and modify the `HISTORY_ITEMS_COUNT` constant.
2023-06-21 20:28:06 +00:00
2025-08-01 00:46:14 +00:00
## 📱 Browser Support
2023-06-18 21:49:17 +00:00
2025-08-01 00:46:14 +00:00
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 12+
- ✅ Edge 79+
2023-06-18 21:49:17 +00:00
2025-08-01 00:50:14 +00:00
## 🔧 Project Structure
2023-12-10 01:34:23 +00:00
2025-08-01 00:46:14 +00:00
```
radio-player/
2025-08-01 00:50:14 +00:00
├── css/ # Stylesheets
├── fonts/ # Font Awesome fonts
├── img/ # Images and artwork
├── js/ # JavaScript files
├── index.html # Main HTML file
└── README.md # This file
2025-08-01 00:46:14 +00:00
```
2023-11-14 06:43:35 +00:00
2025-08-01 00:46:14 +00:00
## 🌐 API Integration
2023-06-18 21:49:17 +00:00
2025-08-01 00:50:14 +00:00
This player uses [RadioAPI.me](https://radioapi.me) for metadata. Get your API endpoint from their service.
2023-06-18 21:49:17 +00:00
2025-08-01 00:50:14 +00:00
For lyrics functionality, get a Vagalume API key from [Vagalume API](https://api.vagalume.com.br/docs/).
2024-08-08 06:41:19 +00:00
2025-08-01 00:46:14 +00:00
## 🐛 Troubleshooting
2024-10-16 13:09:02 +00:00
2025-08-01 00:46:14 +00:00
- Check browser console for errors
2025-08-01 00:50:14 +00:00
- Verify stream URL is accessible
- Ensure API endpoint is working
2023-09-09 17:52:44 +00:00
2025-08-01 00:46:14 +00:00
## 📄 License
2023-09-09 17:52:44 +00:00
2025-08-01 00:50:14 +00:00
MIT License
2023-07-25 01:33:25 +00:00
2025-08-01 00:46:14 +00:00
## 🤝 Contributing
2023-07-25 01:33:25 +00:00
2025-08-01 00:46:14 +00:00
1. Fork the repository
2025-08-01 00:50:14 +00:00
2. Create a feature branch
3. Commit your changes
4. Open a Pull Request
2023-08-21 01:06:16 +00:00
2025-08-01 00:46:14 +00:00
---
2023-08-21 01:02:42 +00:00
2025-08-01 00:46:14 +00:00
Made with ❤️ for radio lovers everywhere