Music Player
[中文 | English]
Music Player is an Obsidian sidebar plugin for playing local music files, combining local library management, lyrics display, playlists and favorites, and playback mode controls.
## Features
### Audio playback
- **Multiple formats**: MP3 / WAV / OGG / M4A / FLAC / AAC
- **Playback controls**: Play / pause, previous / next track
- **Progress and time**: Progress bar with current / total duration
- **Playback speed**: Adjustable from 0.5x to 2.0x
- **Volume**: Mute, 25%, 50%, 75%, 100%
- **Queue**: View the current queue and switch tracks quickly
### Playback modes
- **Sequential**: Play in list order; stop when the list ends
- **Loop list**: Restart from the beginning when the list ends
- **Loop one**: Repeat the current track
- **Shuffle**: Play tracks in random order
### Library management
- **All tracks**: Every scanned music file
- **Favorites**: One-tap favorites for quick access
- **Playlists**: Create / edit / delete custom playlists
- **Artists**: Tracks grouped by artist
- **Albums**: Tracks grouped by album
- **Search**: Search tracks, artists, and albums
### Lyrics
- **Source**: Lyrics are **read only from embedded metadata in audio files**. The plugin does not read external lyric files from disk and does not fetch lyrics online.
- **Standard lyrics**: Standard LRC-style lyrics in tags
- **Word-by-word lyrics**: Timestamped syllable/word lyrics (karaoke style)
- **Display**:
- **Three-line view**: Previous line, current line, next line
- **Full-screen lyrics**: Full list with auto-scroll and highlight
- **Sync**: Lyrics follow playback position automatically
> For detailed lyric formats, see **[Lyrics format](#lyrics-format)** below.
### UI and interaction
- **Album art**: Embedded or folder-based art with optional spinning disc animation
- Cover resolution order:
1. An image file named `cover` in the same folder as the track (e.g. `cover.jpg`, `cover.png`, case-insensitive)
2. An image in the same folder with the same basename as the track (e.g. `song.mp3` → `song.jpg`)
3. Embedded cover art from the audio file’s metadata
- **Disc transition animation**: When using previous/next or shortcuts, the disc shows a sliding transition
- **Disc view**: Full-screen disc-style playback UI
- **Lyrics view**: Focused lyrics screen
- **Responsive layout**: Works on desktop and mobile
- **Keyboard shortcuts**: See **[Keyboard shortcuts](#keyboard-shortcuts)** below
### Settings
- **Music folder**:
- Search and pick a music folder;
- Click the input to browse the folder list;
- If left empty, the whole vault is scanned (for large vaults, a dedicated music folder is recommended).
- **Autoplay on open**: Whether to auto-play the first track when opening the player
- **Default playback mode**: Initial mode configurable in settings
### Auto-sync and indexing
- **File watching**: Watches for create, delete, rename, and move of music files
- **Library updates**: Updates library data when files move in or out of the music folder
- **Consistency check**: On startup, checks index vs. the file system
- **Rebuild hint**:
- When a rebuild is suggested, a small dot appears on the rebuild control;
- You can tap rebuild manually to re-index.
---
## Installation
### Manual install
For **local development builds** or when the plugin is not yet in the community catalog:
1. Go to [Releases](https://github.com/TracingOrigins/obsidian-music-player-plugin/releases) and download the latest plugin archive or files.
2. Extract / place the plugin folder under your Obsidian plugins directory (typically:
- `