various shenanigans.

Party Mode mod for Volumio

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.

/src/app/browse/browse.controller.js
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)
Changed

this.play(item)

to…

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

Line 228: modified itemWrapper div
Changed

this.table += '
';

to…

this.table += '
';

Close Bitnami banner
Bitnami