An open API service indexing awesome lists of open source software.

https://github.com/pvm-harshavardhan/music-player

A modern, responsive music player๐ŸŽต with glassmorphism UI. Features audio controls, playlist management, keyboard shortcuts, and file upload.
https://github.com/pvm-harshavardhan/music-player

bootstrap css3 es6 fontawesome git github github-pages glassmorphism html5 javascritpt musci-player

Last synced: 4 months ago
JSON representation

A modern, responsive music player๐ŸŽต with glassmorphism UI. Features audio controls, playlist management, keyboard shortcuts, and file upload.

Awesome Lists containing this project

README

          

# ๐ŸŽต Beautiful Music Player

A modern, responsive music player built with HTML, CSS, JavaScript, and Bootstrap. Features a beautiful glassmorphism UI with smooth animations and full audio control functionality.

> ๐ŸŒ **Live Demo:** [View the Music Player App](https://pvm-harshavardhan.github.io/music-player/)

![App Screenshot](/project_screenshot.png)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![HTML5](https://img.shields.io/badge/HTML5-E34F26?logo=html5&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/HTML)
[![CSS3](https://img.shields.io/badge/CSS3-1572B6?logo=css&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/CSS)
[![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?logo=javascript&logoColor=black)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
[![Bootstrap](https://img.shields.io/badge/Bootstrap-563D7C?logo=bootstrap&logoColor=white)](https://getbootstrap.com/)
[![Bootstrap](https://img.shields.io/badge/Font_Awesome-538dd7?logo=fontawesome&logoColor=white)](https://getbootstrap.com/)
[![Git](https://img.shields.io/badge/Git-F05032?logo=git&logoColor=white)](https://git-scm.com/)
[![GitHub](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white)](https://github.com/)
[![GitHub Pages](https://img.shields.io/badge/GitHub_Pages-121013?logo=github&logoColor=white)](https://pages.github.com/)

---

## โœจ Features

- **๐ŸŽจ Modern Design**: Beautiful gradient background with glassmorphism effects
- **๐ŸŽต Full Audio Controls**: Play, pause, skip, volume control
- **๐Ÿ“ฑ Responsive**: Works perfectly on desktop, tablet, and mobile devices
- **โŒจ๏ธ Keyboard Shortcuts**: Space (play/pause), Arrow keys (navigation & volume)
- **๐ŸŽฏ Interactive Progress Bar**: Click to seek through songs
- **๐Ÿ“‹ Playlist Management**: Easy song selection from playlist
- **๐Ÿ”„ Auto-play Next**: Automatically plays next song when current ends
- **๐ŸŽจ Visual Effects**: Album art rotation, hover effects, and smooth animations
- **๐Ÿ“ File Upload**: Add your own audio files directly through the interface

## ๐ŸŽฎ Usage Guide

### Basic Controls

#### **Mouse Controls**
- **Play/Pause**: Click the center button
- **Previous/Next**: Use the arrow buttons
- **Volume**: Drag the volume slider
- **Seek**: Click on the progress bar
- **Playlist**: Click any song in the playlist

#### **Keyboard Shortcuts**
| Key | Action |
|-----|--------|
| `Space` | Play/Pause |
| `โ†` | Previous song |
| `โ†’` | Next song |
| `โ†‘` | Increase volume |
| `โ†“` | Decrease volume |
| `Ctrl + โ†` | Volume 0 (mute) |
| `Ctrl + โ†’` | Volume 100 (max) |

### Adding Music

#### **Method 1: File Upload**
1. Click "Add Audio Files" button
2. Select your audio files
3. Files are automatically added to playlist

#### **Method 2: Manual Setup**
1. Place audio files in `audio/` folder
2. Update `script.js` with song information:
```javascript
{
title: "Your Song Title",
artist: "Your Artist Name",
src: "audio/your-song.mp3",
duration: "0:00", // Auto-detected
albumArt: "images/your-album.jpg" // Optional
}
```

## ๐Ÿ”ง Tech Stack

### **Technologies Used**
- **HTML5**: Semantic markup with Bootstrap 5
- **CSS3**: Modern styling with animations and responsive design
- **JavaScript ES6+**: Class-based architecture with event handling
- **Bootstrap 5**: Responsive grid system and components
- **Font Awesome**: Beautiful icons throughout the interface
- **Git** โ€“ Version control
- **GitHub** โ€“ Code hosting and collaboration
- **GitHub Pages** โ€“ Static webPage Hosting

## ๐Ÿ› ๏ธ Getting Started

1. **Clone the repository:**
```bash
git clone https://github.com/pvm-harshavardhan/music-player.git
```
2. **Change to the project directory:**
```bash
cd music-player
```
3. **Open the app:**
- Open `index.html` in your web browser.

4. **Enjoy your music!** ๐ŸŽ‰

## ๐Ÿ“ Project Structure

```
music-player/
โ”œโ”€โ”€ ๐Ÿ“„ index.html # Main HTML structure
โ”œโ”€โ”€ ๐ŸŽจ styles.css # CSS styling and animations
โ”œโ”€โ”€ โšก script.js # JavaScript functionality
โ”œโ”€โ”€ ๐Ÿ“ audio/ # Audio files directory
โ””โ”€โ”€๐Ÿ“ images/ # Album art directory
```

## ๐Ÿ“ฑ Browser Compatibility

- โœ… Chrome (recommended)
- โœ… Firefox
- โœ… Safari
- โœ… Edge
- โš ๏ธ Internet Explorer (limited support)

## ๐Ÿ› Troubleshooting

### **Audio Not Playing?**
1. Check if audio files are in the correct location
2. Ensure audio files are not corrupted
3. Check browser console for errors
4. Verify file paths in the JavaScript code

### **Styling Issues?**
1. Make sure all CSS files are loaded
2. Check if Bootstrap CDN is accessible
3. Clear browser cache

### **Mobile Issues?**
1. The player is fully responsive
2. Touch controls work on mobile devices
3. Audio autoplay may be restricted on mobile (user interaction required)

## ๐Ÿ“„ License

This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.

## ๐Ÿ“ž Contact

Your Name - [@pvm_harsha](https://x.com/pvm_harsha)
Project Link: [Music Player Web App Project](https://github.com/pvm-harshavardhan/music-player)

---

**Made with โค๏ธ by P VM Harsha**

**Enjoy your music! ๐ŸŽต๐ŸŽ‰โœจ**