jeroen2 wrote:
> 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)
Can you open a local page on a Fire TV? This might have to go onto a web
server
VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
*Office* Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
*Dining Room* SB Boom
*Kitchen* UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV) & Bathroom* SB Touch ->Denon AVR ->Mordaunt Short M10s +
Kef ceiling speakers
*Guest Room* Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
------------------------------------------------------------------------
d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins