Media Folder: The original code had medias/ but I've changed it to media/ (more conventional). Make sure to rename your folder or adjust the path in the code.
Audio Files: Ensure your MP3 files are:
Properly encoded
Not too large (< 10MB recommended)
Actually present in the media folder
First-time Audio: Due to browser security, audio might not play automatically the first time. Click any button in the sidebar to initialize audio playback.
How to Test
Compile the extension: npm run compile
Press F5 to launch a new VSCode window with your extension
The Error DJ sidebar should appear automatically
If you close it, use:
Keyboard shortcut: Ctrl+Alt+E (or Cmd+Alt+E on Mac)
Command Palette: "Error DJ: Show Sidebar"
Click the Error DJ icon in the Activity Bar
Troubleshooting
If audio still doesn't play:
Click the "Pause" button once, then click "Play" to manually trigger audio
Check the browser console in VSCode (Help > Toggle Developer Tools)
Verify your MP3 files are valid and in the correct location
Try adjusting the volume slider
Additional Features Added
Volume Control: Slider to adjust playback volume
Better Visual Feedback: Improved button styling using VSCode theme colors
Auto-retry Logic: Audio will attempt to play multiple times if initially blocked