Hi,
the player name chosen on the settings tab is only shown over UPNP when “Airplay” is also switched on in the service management section. If airplay is deactivated there’s no player name shown. Despite this everything seems working.
BR
Michael
Hi,
the player name chosen on the settings tab is only shown over UPNP when “Airplay” is also switched on in the service management section. If airplay is deactivated there’s no player name shown. Despite this everything seems working.
BR
Michael
Michael,
There is a fix for this according to this post. http://volumio.org/forum/volumio-shown-renderer-null-upmpdcli-t2091-10.html
Haven’t tested it myself
Kevin
Hi Kevin,
thanks, but this is to complicated for a linux idiot like me… What do I have to do? Change a file? Compile source code?
BR
Michael
Michael,
It is code mofification but one could view it as a simple edit of a file. I would recommend that you learn how to use the linux os in the terminal view and to navigate to folders and edit files. With these simple tools you will be able to do a lot.
Alternatively wait till it’s been integrated in next volumio revision.
Kevin
What i do to have my DLNA renderer name : I switch ON the airplay on Volumio setting and the name of renderer appears. I wait the next version to fix this little pb.
Hi Kevin,
I’m able to access to the Pi by putty or WinSCP. Locating and editing files is no problem. I searched for the mentioned file player_wrk.php but couldn’t localize it. Same for the (sub)folder command.
BR
Michael
I meanwhile located player_wrk.php. Don’t now, why the filesearch of WinSCP doesn’t find it.
My file looks different to the one refered to:
[spoiler]// Shairport for Airplay Capability
//Retrieve Output Device
$dbh = cfgdb_connect($db);
$query_cfg = “SELECT param,value_player FROM cfg_mpd WHERE value_player!=’’”;
$mpdcfg = sdbquery($query_cfg,$dbh);
$dbh = null;
foreach ($mpdcfg as $cfg) {
if ($cfg[‘param’] == ‘audio_output_format’ && $cfg[‘value_player’] == ‘disabled’){
$output .= ‘’;
} else if ($cfg[‘param’] == ‘device’) {
$device = $cfg[‘value_player’];
var_export($device);
} else {
$output .= $cfg[‘param’]." \t"".$cfg[‘value_player’].""\n";
}
}
playerSession(‘open’,$db);
$hostname = $_SESSION[‘hostname’];
// Start Shairport with Volumio name, stopping Mpd on start, with Selected output device
if (isset($_SESSION[‘shairport’]) && $_SESSION[‘shairport’] == 1) {
$tempfile = ‘/tmp/.restart_mpd’; // if this file exists, start playing mpd after shairport stopped
$cmd = ‘/usr/local/bin/shairport -a "’.$hostname.’" -w -B “(/usr/bin/mpc | grep -q playing && touch ‘’.$tempfile.’’); /usr/bin/mpc stop” -E “test -f ‘’.$tempfile.’’ && /usr/bin/mpc play && rm -f ‘’.$tempfile.’’” -o alsa – -d plughw:’.$device.’ > /dev/null 2>&1 &’;
sysCmd($cmd);
}[/spoiler]
Nevertheless changed it to:
[spoiler]
// Shairport for Airplay Capability
//Retrieve Output Device
$dbh = cfgdb_connect($db);
$query_cfg = “SELECT param,value_player FROM cfg_mpd WHERE value_player!=’’”;
$mpdcfg = sdbquery($query_cfg,$dbh);
$dbh = null;
foreach ($mpdcfg as $cfg) {
if ($cfg[‘param’] == ‘audio_output_format’ && $cfg[‘value_player’] == ‘disabled’){
$output .= ‘’;
} else if ($cfg[‘param’] == ‘device’) {
$device = $cfg[‘value_player’];
var_export($device);
} else {
$output .= $cfg[‘param’]." \t"".$cfg[‘value_player’].""\n";
}
}
// Start Shairport with Volumio name, stopping Mpd on start, with Selected output device
if (isset($_SESSION[‘shairport’]) && $_SESSION[‘shairport’] == 1) {
playerSession(‘open’,$db);
$hostname = $_SESSION[‘hostname’];
$tempfile = ‘/tmp/.restart_mpd’; // if this file exists, start playing mpd after shairport stopped
$cmd = ‘/usr/local/bin/shairport -a "’.$hostname.’" -w -B “(/usr/bin/mpc | grep -q playing && touch ‘’.$tempfile.’’); /usr/bin/mpc stop” -E “test -f ‘’.$tempfile.’’ && /usr/bin/mpc play && rm -f ‘’.$tempfile.’’” -o alsa – -d plughw:’.$device.’ > /dev/null 2>&1 &’;
sysCmd($cmd);
}[/spoiler]
Doesn’t make a difference. In both cases Airplay needs to be activated to get the player name via UPNP.
BR
Michael
OK
As mentioned not tested this link. I’ll have a look next year if no news on an update with fix.
Kevin