Skip to content

Commit 3b669bf

Browse files
committed
Add hint about the audio device mapping for Docker users
1 parent 4910bff commit 3b669bf

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

HTML/EN/plugins/LocalPlayer/settings/basic.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<option [% IF entry.name == output %]selected[% END %] value="[% entry.name | html %]">[% entry.desc | html %][% IF entry.name %] - [% entry.name | html %][% END %]</option>
2222
[% END %]
2323
</select>
24+
[% IF isDocker && devices.size < 2 %]
25+
<div style="color: red">[% "PLUGIN_LOCALPLAYER_DOCKER_NO_DEVICE" | string %]</div>
26+
[% END %]
2427
[% END %]
2528

2629
[% WRAPPER setting title="PLUGIN_LOCALPLAYER_OPTIONS" desc="PLUGIN_LOCALPLAYER_OPTIONS_DESC" %]

Settings.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ sub handler2 {
9191
$params->{ $param } = $prefs->get($param);
9292
}
9393

94+
my $osDetails = Slim::Utils::OSDetect::details();
95+
$params->{'isDocker'} = $osDetails->{osName} =~ /Docker/ ? 1 : 0;
9496
$params->{'isPCP'} = Plugins::LocalPlayer::Plugin::isPCP();
9597
$params->{'arch'} = Slim::Utils::OSDetect::OS();
9698

install.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<extension>
44
<name>PLUGIN_LOCALPLAYER</name>
55
<module>Plugins::LocalPlayer::Plugin</module>
6-
<version>1.7.0</version>
6+
<version>1.7.1</version>
77
<defaultState>enabled</defaultState>
88
<description>PLUGIN_LOCALPLAYER_DESC</description>
99
<category>hardware</category>

strings.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ PLUGIN_LOCALPLAYER_INFO
149149
FR Le Local Player utilise le lecteur logiciel Squeezelite qui est installé dans le cadre du plugin. Vous pouvez le contrôler depuis l'interface web du serveur ou toute autre application de contrôle Squeezebox.
150150
NL Local Player gebruikt de Squeezelite software speler die als onderdeel van de plugin wordt geïnstalleerd. U kunt het bedienen vanuit de server webinterface of elke andere Squeezebox-bedieningsapplicatie.
151151

152+
PLUGIN_LOCALPLAYER_DOCKER_NO_DEVICE
153+
FR Vous semblez exécuter LMS dans Docker, et aucun périphérique audio n'est trouvé. Vous devrez peut-être le mapper sur l'hôte en ajoutant "<code>--device /dev/snd:/dev/snd</code>" aux paramètres de démarrage du conteneur.
154+
DE Sie scheinen LMS in Docker auszuführen, und es wird kein Audiogerät gefunden. Möglicherweise müssen Sie es auf dem Host zuordnen, indem Sie "<code>--device /dev/snd:/dev/snd</code>" zu den Startparametern des Containers hinzufügen.
155+
EN You seem to be running LMS in Docker, and no audio device is found. You might have to map it on the host by adding "<code>--device /dev/snd:/dev/snd</code>" to the container's startup parameters.
156+
NL U lijkt LMS in Docker te draaien en er wordt geen audio-apparaat gevonden. Mogelijk moet u het in kaart brengen op de host door "<code>--device /dev/snd:/dev/snd</code>" toe te voegen aan de startparameters van de container.
157+
152158
PLUGIN_LOCALPLAYER_PCP_DETECTED
153159
DE piCorePlayer erkannt - bitte verwenden Sie an Stelle dieses Plugins piCorePlayers Werkzeuge, um Squeezelite zu konfigurieren.
154160
EN piCorePlayer detected - please use pCP's tools to configure squeezelite rather than this plugin.

0 commit comments

Comments
 (0)