Automatic screen with update from player

This commit is contained in:
philippe44
2020-02-11 12:42:58 -08:00
parent 4cdbec5127
commit dd7b4a0fb4
5 changed files with 7 additions and 5 deletions

View File

@@ -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.

View File

@@ -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);

View File

@@ -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>

View File

@@ -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>