Hi Fax,
you can try something like this:
- add a new controller to "/srv/http/index.php"
....
$controllers = array(
'lyric',
'coverart',
'credits',
'dev',
'debug',
'help',
'index',
'login',
'mpd',
'network',
'playback',
'settings',
'sources',
'tun'
);...
- save this as "/srv/http/app/lyric_ctl.php"
<?php
// direct output bypass template system
$tplfile = 0;
runelog("\n--------------------- lyric (start) ---------------------");
// turn off output buffering
ob_implicit_flush(0);
ob_clean();
flush();
// --------------------- MPD ---------------------
if ($activePlayer === 'MPD') {
echo str_replace ( "</br>" , "\n" , sysCmd("sh /var/www/command/lyric.sh")[2]);
}
runelog("\n--------------------- lyric (end) ---------------------");
- save your script as "/srv/http/command/lyric.sh"
- make it executable
chmod 755 /srv/http/command/lyric.sh
- modify "/srv/http/assets/js/runeui.js" (line 623)
GUI.currentsong = currentsong;
var currentalbumstring = currentartist + ' - ' + currentalbum;
if (GUI.currentalbum !== currentalbumstring) {
if (GUI.stream !== 'radio') {
var covercachenum = Math.floor(Math.random()*1001);
$('#cover-art').css('background-image','url("/coverart/?v=' + covercachenum + '")');
$.ajax({
url: '/lyric/',
success: function(data){
$('#cover-art').attr('title',data);
},
cache: false
});
} else {
$('#cover-art').css('background-image','url("assets/img/cover-radio.jpg")');
}
}
- reboot
Hovering over the coverart should display the lyrics.
Frank