Name of the player on the UI screen

Suggestions/requests/ideas for RuneAudio core features and functions

Name of the player on the UI screen

Postby Stephane » 06 Feb 2017, 13:30

Hello,

Would it be possible to display the name of the player on the UI screen? I have two different players and it is not very easy to see which one I control from the Remote Control app or in Firefox.
Another way would be to change the overall color of the UI (red, green, pink, etc...)

Thank you.

PS: forgive me if it has been asked before but I am new to Rune and I did not found any relevant thread.
Stephane
 
Posts: 64
Joined: 06 Feb 2017, 10:35

Re: Name of the player on the UI screen

Postby hondagx35 » 06 Feb 2017, 17:51

Hi Stephane,

fast and easy way:
Modify /srv/http/assets/img/logo.png on your players.

Frank
User avatar
hondagx35
 
Posts: 3041
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Name of the player on the UI screen

Postby Stephane » 06 Feb 2017, 18:23

Hi,
If it could be build dynamically it would be great !
But I will do this. Thanks.
Stephane
 
Posts: 64
Joined: 06 Feb 2017, 10:35

Re: Name of the player on the UI screen

Postby Stephane » 07 Feb 2017, 10:04

Hello Frank,

I changed the logo as you said but it's a little pain to do it so I found another way:
Instead of MENU at the top right I put the name of the player and MENU: «Salon MENU» and «Garage MENU»
It's at line 73 of /srv/http/app/templates/header.php
I guess it would be easy to put a variable instead and have it set correctly by the UI.
Stephane
 
Posts: 64
Joined: 06 Feb 2017, 10:35

Re: Name of the player on the UI screen

Postby hondagx35 » 07 Feb 2017, 22:23

Hi Stephane,

Add this
Code: Select all
$template->hostname = $redis->get('hostname');

to the end of /srv/http/app/playback_ctl.php

Code: Select all
        <a id="menu-settings" class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="#"><?=$this->hostname ?> MENU <i class="fa fa-bars dx"></i></a>

/srv/http/app/templates/header.php

Frank
User avatar
hondagx35
 
Posts: 3041
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Name of the player on the UI screen

Postby Stephane » 08 Feb 2017, 10:06

Thank you very much Frank, this is exactly what I wanted. I just deleted the MENU string as it is quite useless.
It looks fine in both the Andoid app and in a web browser.
Stephane
 
Posts: 64
Joined: 06 Feb 2017, 10:35

support RuneAudio Donate with PayPal


Return to Feature request

Who is online

Users browsing this forum: No registered users and 0 guests