MUDE integrates with YouTube Music to provide seamless music search and playback capabilities directly within your VS Code editor.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mayur1377/MUDE-music-in-vscode/llms.txt
Use this file to discover all available pages before exploring further.
How search works
The music search functionality uses the YouTube Music API to search for songs and videos. When you search for music, MUDE:- Searches both songs and videos on YouTube Music
- Displays results with track name, artist, and duration
- Downloads the selected track using yt-dlp
- Automatically fetches recommendations for continuous playback
Search interface
When you trigger a search, you’ll see three options:- New search
- Recent plays
- Clear history
Enter a search query to find music on YouTube Music. Results are filtered to show only songs and videos.
YouTube Music integration
MUDE uses theytmusic-api package to interact with YouTube Music:
The YouTube Music API is initialized automatically when you perform a search. No authentication is required.
Download process
When you select a track, MUDE downloads it using yt-dlp:- Download location: Tracks are downloaded to your extension’s global storage directory
- Format: Downloads in
bestaudio/bestformat for optimal quality - Retry mechanism: Up to 3 download attempts with exponential backoff
- Cleanup: Previous downloads are automatically removed to save space
Downloaded tracks are stored temporarily and are replaced when you play a new track.
Platform compatibility
MUDE handles platform-specific differences automatically:Windows
- Automatically resolves yt-dlp binary path issues
- Creates
.execopy if needed for proper execution - Provides helpful error messages for binary issues
Unix/Linux/macOS
- Uses standard yt-dlp binary from package
- No additional configuration needed
Commands
The following commands are available for music search:| Command | Description | Keybinding |
|---|---|---|
MudePlayer.searchMusic | Open the music search interface | None (default) |
You can assign custom keybindings to the search command through VS Code’s keyboard shortcuts settings.
Search flow
Here’s what happens when you search for music:- Click the search button (🎧 icon) in the status bar
- Choose “New Search” or “Recent Plays”
- Enter your search query
- Select a track from the results
- MUDE downloads the track and fetches recommendations
- Playback begins automatically
Recommendations are fetched immediately after you select a track, ensuring seamless continuous playback.