cpd73 wrote:
> Not sure this would accomplish what you want anyway. When the image is
> shown full-screen it does not update on track change.
>
> [Edit] With some custom CSS you can get Material to hide the playback
> controls and toolbar, etc, of now-playing. See:
> https://github.com/CDrummond/lms-material/issues/410 This shows the CSS
> you would need, where to place it, and what to use as Material's URL.
I just a different tab, and then have the remote switch tabs. The second
tab uses a static html page that only shows the cover art and updates
when the window has focus.
Code:
--------------------
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <meta http-equiv="refresh" content="10">
-->
<title>Now playing</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store,
must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=90%, initial-scale=1.0">
<style>
img {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
max-height: 475px;
}
.center {
margin: auto;
padding: 0px;
}
div {
background: #707070;
background: -webkit-linear-gradient(#707070, #292929);
background: -moz-linear-gradient(#707070, #292929);
background: linear-gradient(#707070, #292929);
}
</style>
</head>
<body>
<div class="center">
<script>
var window_focus;
$(window).focus(function() {
window_focus = true;
}).blur(function() {
window_focus = false;
});
$(document).one('click', function() {
setInterval(function() {
$('body').append('has focus? ' + window_focus + '<br>');
location.reload();
}, 1000);
});
</script>
<img id="img"
src="http://YOURLMSSERVERVER.local:9000/material/music/current/cover?"
height=475px>
</div>
</body>
</html>
--------------------
(image size is 475 tall, which works on a Pi 7" touchscreen, could be
different for your usage)
------------------------------------------------------------------------
jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins