Music Player

Obsidian Downloads GitHub Downloads

[中文 | 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: - `/.obsidian/plugins/music-player/`). 3. In Obsidian, open **Settings → Community plugins → Installed plugins** and enable this plugin. ### Install with BRAT (recommended for testers) For **beta / latest dev** builds: 1. Install the [BRAT](https://github.com/TfTHacker/obsidian42-brat) plugin. 2. In BRAT settings, choose **Add beta plugin**. 3. Enter the repo: `TracingOrigins/obsidian-music-player-plugin`. 4. After install, enable the plugin under **Settings → Community plugins → Installed plugins**. --- ## Usage ### Quick start 1. Enable the plugin (**Settings → Community plugins → Installed plugins**). 2. Click the music icon in the left ribbon, or use the command palette and run **Open music player**. 3. On first use, set a **dedicated music folder** in plugin settings (recommended): - Optional: leave empty to scan the entire vault for audio files. 4. Click any track in the list to start playback. ### Lyrics format The plugin reads these lyric formats from **embedded tags** in audio files: > **Note:** The plugin does **not** read standalone `.lrc` files next to tracks and does **not** download lyrics; only embedded lyric tags are parsed. - **Standard (LRC-style) lyrics** Example: ```text [02:22.94]外婆她的期待 [02:26.14]慢慢变成无奈 [02:29.08]大人们始终不明白 [02:34.97]她要的是陪伴 [02:37.97]而不是六百块 [02:40.96]比你给的还简单 ``` - **Word-by-word (karaoke-style) lyrics** After the **line start timestamp**, each character or word is wrapped with `