mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-27 04:40:48 +03:00
Automatic screen with update from player
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
- pthread_create_name
|
- pthread_create_name
|
||||||
- stack size
|
- stack size
|
||||||
- s16_t, s32_t, s64_t and u64_t
|
- s16_t, s32_t, s64_t and u64_t
|
||||||
- PLAYER_ID
|
- PLAYER_ID / custom_player_id
|
||||||
can overload (use #define)
|
can overload (use #define)
|
||||||
- exit
|
- exit
|
||||||
- gettime_ms
|
- gettime_ms
|
||||||
|
|||||||
Binary file not shown.
@@ -7,6 +7,7 @@ use Slim::Utils::Log;
|
|||||||
use Slim::Utils::Prefs;
|
use Slim::Utils::Prefs;
|
||||||
|
|
||||||
my $prefs = preferences('plugin.squeezeesp32');
|
my $prefs = preferences('plugin.squeezeesp32');
|
||||||
|
my $log = logger('plugin.squeezeesp32');
|
||||||
|
|
||||||
sub model { 'squeezeesp32' }
|
sub model { 'squeezeesp32' }
|
||||||
sub modelName { 'SqueezeESP32' }
|
sub modelName { 'SqueezeESP32' }
|
||||||
@@ -23,10 +24,11 @@ sub playerSettingsFrame {
|
|||||||
# New SETD command 0xfe for display width
|
# New SETD command 0xfe for display width
|
||||||
if ($id == 0xfe) {
|
if ($id == 0xfe) {
|
||||||
$value = (unpack('CC', $$data_ref))[1];
|
$value = (unpack('CC', $$data_ref))[1];
|
||||||
if ($value > 10 && $value < 200) {
|
if ($value > 100 && $value < 400) {
|
||||||
$client->display->widthOverride(1, $value);
|
$client->display->widthOverride(1, $value);
|
||||||
$client->update;
|
$client->update;
|
||||||
}
|
}
|
||||||
|
$log->info("Setting player width $value for ", $client->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
$client->SUPER::playerSettingsFrame($data_ref);
|
$client->SUPER::playerSettingsFrame($data_ref);
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
<name>PLUGIN_SQUEEZEESP32</name>
|
<name>PLUGIN_SQUEEZEESP32</name>
|
||||||
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
||||||
<module>Plugins::SqueezeESP32::Plugin</module>
|
<module>Plugins::SqueezeESP32::Plugin</module>
|
||||||
<version>0.8</version>
|
<version>0.9</version>
|
||||||
<creator>Philippe</creator>
|
<creator>Philippe</creator>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<?xml version='1.0' standalone='yes'?>
|
<?xml version='1.0' standalone='yes'?>
|
||||||
<extensions>
|
<extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin version="0.8" name="SqueezeESP32" minTarget="7.5" maxTarget="*">
|
<plugin version="0.9" name="SqueezeESP32" minTarget="7.5" maxTarget="*">
|
||||||
<link>https://github.com/sle118/squeezelite-esp32</link>
|
<link>https://github.com/sle118/squeezelite-esp32</link>
|
||||||
<creator>Philippe</creator>
|
<creator>Philippe</creator>
|
||||||
<sha>66cde7aee1f92e82087e5a7a68c6d57f1229e2a0</sha>
|
<sha>89c68b54ad4373df6c0cd37222a07b53013c4815</sha>
|
||||||
<email>philippe_44@outlook.com</email>
|
<email>philippe_44@outlook.com</email>
|
||||||
<desc lang="EN">SqueezeESP32 additional player id (100)</desc>
|
<desc lang="EN">SqueezeESP32 additional player id (100)</desc>
|
||||||
<url>http://github.com/sle118/squeezelite-esp32/raw/master/plugin/SqueezeESP32.zip</url>
|
<url>http://github.com/sle118/squeezelite-esp32/raw/master/plugin/SqueezeESP32.zip</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user