Apr 292017

Volumio is a headless audio player for the Raspberry Pi. I am using it as a jukebox with the 7′ LCD display.

I revised some of the code to work the way I wanted as a “party mode.”
1. From the browse window, the default event for clicking on a song is to add it to the queue instead of auto-play.
2. I display a popup message that the song was added to the queue.
3. Give a visual cue of what you clicked on.

Source and documentation can be found on GitHub.

Line rows are basic locations.

Line 3: Added toastMessageService

modalService, $timeout, matchmediaService, $compile, $document, $rootScope, $log, playerService, toastMessageService) 

Line 18: Added constructor reference:

this.toastMessageService = toastMessageService;

Line 68: Modified clickListItem(item)



this.toastMessageService.showMessage('success', item.title+' Added to Queue', 'Queue');

Line 228: modified itemWrapper div

this.table += '<div class="itemWrapper"><div class="itemTab">';


this.table += '<div class="itemWrapper" onclick="style.backgroundColor = '#42f4f1'"><div class="itemTab">';

 Posted by at 7:36 am  Tagged with: ,