Re: [SlimDevices: Plugins] Qobuz.com streaming plugin
It doesn't allow me to browse anything on Qobuz. When I go to settings and re-input my password, it allows me to go to the first level of the menu, but nothing more. Works absolutely fine on another instance of LMS. I restarted LMS and also tried to re-install the Qobuz plugin. Any suggestions? Please check server.log. ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: CastBridge = integrate Chromecast players with LMS (squeeze2cast)
SamY wrote: > I have recently started listening to a series of 30-60 minute podcasts > at night on my Google Nest Mini (CCA) speakers via the Podcast LMS > plugin and CastBridge. However, the podcasts all end abruptly after > around 18-20 minutes and I have to restart them manually from the place > where they stopped playing. After restarting, they proceed to the end > without further problems. The issue does not occur when playing the same > podcasts on non-Chromecast players running Squeezelite. All software is > running on a Raspberry Pi B+ under Raspbian 8 (Jessie). LMS version is > the latest v8.3 nightly build. The latest version of the Reliable LMS > plugin is also installed. Here is a portion of the CastBridge log > showing the problem: > > > Code: > > [17:18:59.896147] sq_callback:262 [0x139b48]: device set ON > [17:19:00.229801] CastConnect:365 [0x139b48]: SSL connection opened [0xb5808c88] > [17:19:00.243117] CastStop:262 [0x139b48]: Stop w/o session or connect > [17:19:04.712116] sq_callback:365 Volume 20 > [17:19:04.845875] process_strm:238 [0xb6bf0] strm command s > [17:19:04.846358] process_strm:307 [0xb6bf0], strm s autostart: 3 transition period: 0 transition type: 0 codec: m > [17:19:04.846567] sendSTAT:169 [0xb6bf0]: STAT:[STMf] msplayed 0 > [17:19:05.271381] sq_callback:299 [0x139b48]: > artist: > album: > title:141: What if you witnessed a horrific act? > genre: > duration:2166.116 > size:0 > cover: > offset:0 > [17:19:05.273134] LaunchReceiver:312 [0x139b48]: Launching receiver 1 > [17:19:05.273677] CastLoad:175 [0x139b48]: Queuing LOAD > [17:19:05.411960] sq_callback:323 [0x139b48]: current URI (s:0) http://192.168.1.11:51869/bridge-5.mp3 > [17:19:05.412475] process_start:1220 [0xb6bf0]: codec:*, ch:0, s:0, r:0 > [17:19:05.541117] CastSocketThread:786 [0x139b48]: Receiver launched > [17:19:05.596206] ProcessQueue:608 [0x139b48]: Processing LOAD (id:2) > [17:19:05.793965] sendSTAT:169 [0xb6bf0]: STAT:[STMc] msplayed 0 > [17:19:05.813202] sq_callback:365 Volume 20 > [17:19:06.105723] CastSetDeviceVolume:326 [0x139b48]: Immediate VOLUME (id:4) > [17:19:06.106196] CastSimple:212 [0x139b48]: Queuing PLAY > [17:19:07.738697] CastSocketThread:800 [0x139b48]: Media session id 1 > [17:19:07.832953] ProcessQueue:589 [0x139b48]: Processing PLAY (id:6) > [17:19:07.931556] _SyncNotifyState:449 [0x139b48]: Cast playing > [17:19:09.062824] sendSTAT:169 [0xb6bf0]: STAT:[STMs] msplayed 0 > [17:34:10.018803] slimproto_run:573 [0xb6bf0] Closing CLI socket 9 > [17:36:54.553893] _SyncNotifyState:420 [0x139b48]: Cast stop > [17:36:54.554728] slimproto_run:749 [0xb6bf0]: Track shorter than expected (1066187/2166116) > [17:36:54.555120] sendSTAT:169 [0xb6bf0]: STAT:[STMd] msplayed 1066187 > [17:36:54.555856] sendSTAT:169 [0xb6bf0]: STAT:[STMu] msplayed 1066187 > > > > Any ideas on what might be going on? I don't know whether it has > anything to do with the Podcast plugin or if it's simply related to > the length of the track, which would be unusually long for a song. > Thanks in advance. Reliable is not active in 8.3 - you should go to settings and look for options in the networking tab (from memory). It is very possible that due to the very large buffering of CC devices, the podcast server is more likely to cut the connection after a long period of no transfer. Use cache or persistent mode should solve that. LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=104614 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: CastBridge = integrate Chromecast players with LMS (squeeze2cast)
I have recently started listening to a series of 30-60 minute podcasts at night on my Google Nest Mini (CCA) speakers via the Podcast LMS plugin and CastBridge. However, the podcasts all end abruptly after around 18-20 minutes and I have to restart them manually from the place where they stopped playing. After restarting, they proceed to the end without further problems. The issue does not occur when playing the same podcasts on non-Chromecast players running Squeezelite. All software is running on a Raspberry Pi B+ under Raspbian 8 (Jessie). LMS version is the latest v8.3 nightly build. The latest version of the Reliable LMS plugin is also installed. Here is a portion of the CastBridge log showing the problem: Code: [17:18:59.896147] sq_callback:262 [0x139b48]: device set ON [17:19:00.229801] CastConnect:365 [0x139b48]: SSL connection opened [0xb5808c88] [17:19:00.243117] CastStop:262 [0x139b48]: Stop w/o session or connect [17:19:04.712116] sq_callback:365 Volume 20 [17:19:04.845875] process_strm:238 [0xb6bf0] strm command s [17:19:04.846358] process_strm:307 [0xb6bf0], strm s autostart: 3 transition period: 0 transition type: 0 codec: m [17:19:04.846567] sendSTAT:169 [0xb6bf0]: STAT:[STMf] msplayed 0 [17:19:05.271381] sq_callback:299 [0x139b48]: artist: album: title:141: What if you witnessed a horrific act? genre: duration:2166.116 size:0 cover: offset:0 [17:19:05.273134] LaunchReceiver:312 [0x139b48]: Launching receiver 1 [17:19:05.273677] CastLoad:175 [0x139b48]: Queuing LOAD [17:19:05.411960] sq_callback:323 [0x139b48]: current URI (s:0) http://192.168.1.11:51869/bridge-5.mp3 [17:19:05.412475] process_start:1220 [0xb6bf0]: codec:*, ch:0, s:0, r:0 [17:19:05.541117] CastSocketThread:786 [0x139b48]: Receiver launched [17:19:05.596206] ProcessQueue:608 [0x139b48]: Processing LOAD (id:2) [17:19:05.793965] sendSTAT:169 [0xb6bf0]: STAT:[STMc] msplayed 0 [17:19:05.813202] sq_callback:365 Volume 20 [17:19:06.105723] CastSetDeviceVolume:326 [0x139b48]: Immediate VOLUME (id:4) [17:19:06.106196] CastSimple:212 [0x139b48]: Queuing PLAY [17:19:07.738697] CastSocketThread:800 [0x139b48]: Media session id 1 [17:19:07.832953] ProcessQueue:589 [0x139b48]: Processing PLAY (id:6) [17:19:07.931556] _SyncNotifyState:449 [0x139b48]: Cast playing [17:19:09.062824] sendSTAT:169 [0xb6bf0]: STAT:[STMs] msplayed 0 [17:34:10.018803] slimproto_run:573 [0xb6bf0] Closing CLI socket 9 [17:36:54.553893] _SyncNotifyState:420 [0x139b48]: Cast stop [17:36:54.554728] slimproto_run:749 [0xb6bf0]: Track shorter than expected (1066187/2166116) [17:36:54.555120] sendSTAT:169 [0xb6bf0]: STAT:[STMd] msplayed 1066187 [17:36:54.555856] sendSTAT:169 [0xb6bf0]: STAT:[STMu] msplayed 1066187 Any ideas on what might be going on? I don't know whether it has anything to do with the Podcast plugin or if it's simply related to the length of the track, which would be unusually long for a song. Thanks in advance. Sam SamY's Profile: http://forums.slimdevices.com/member.php?userid=63495 View this thread: http://forums.slimdevices.com/showthread.php?t=104614 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
SteveShort wrote: > Thanks. > > Logitech Media Server Version: 8.2.0 - 1627922070 @ Tue Aug 3 11:34:34 > CEST 2021 > Hostname: Aura.local > Server IP Address: 192.168.0.220 > Server HTTP Port Number: 9000 > Operating system: macOS 11.6 - EN - utf8 > Platform Architecture: x86_64 > Perl Version: 5.18.4 - darwin-thread-multi-2level > Audio::Scan: 1.02 > IO::Socket::SSL: 2.066 > Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) > Total Players Recognized: 6 > > So, Perl 5.18.4. > > Presumably I need to install some crypto modules? > > Steve Unfortunately no. The 5.18 is amongst the ones I've included LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
philippe_44 wrote: > Look at the LMS settings's page, tab "information" Thanks. Logitech Media Server Version: 8.2.0 - 1627922070 @ Tue Aug 3 11:34:34 CEST 2021 Hostname: Aura.local Server IP Address: 192.168.0.220 Server HTTP Port Number: 9000 Operating system: macOS 11.6 - EN - utf8 Platform Architecture: x86_64 Perl Version: 5.18.4 - darwin-thread-multi-2level Audio::Scan: 1.02 IO::Socket::SSL: 2.066 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) Total Players Recognized: 6 So, Perl 5.18.4. Presumably I need to install some crypto modules? Steve SteveShort's Profile: http://forums.slimdevices.com/member.php?userid=70595 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Master/high resolution Tidal streaming etc. with remote/integrated control
john greenwood wrote: > I have a Hi-Fi subscription to Tidal. My understanding is that the > LMS/Tidal Plug-In does not support MQA. (Please correct me if Im > wrong.) That's my understanding, as well, where I in this thread wish to explore some other options to get higher resolution audio than 44.1/16 from Tidal via LMS. I am not certain whether the 44.1/16 carries the MQA or not, which maybe could be unfolded with an external DAC, a plugin or by other means, nor whether this somehow deteriorates the audio quality of the 44.1/16 files. But from the last time I checked, the LMS/Tidal Plug-In did not unfold/decode MQA, it only outputted 44.1/16. There are too many threads about this topic to follow, and I have unfortunately not seen any updates to the subject, e.g.: https://forums.slimdevices.com/showthread.php?106754-MQA-via-Tidal=tidal Br, Vegard last.fm/user/vegarlu Vegz78's Profile: http://forums.slimdevices.com/member.php?userid=32897 View this thread: http://forums.slimdevices.com/showthread.php?t=110959 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
cpd73 wrote: > I -might- enable the playback shortcuts for mobile and desktop, but for > now if you create a file named "custom.js" within a "material-skin" > sub-folder of your LMS's "prefs" folder with the following contents, > then it should work: > > > Code: > > > if (IS_MOBILE) { // desktop already catches these shortcuts, so dont want them handled twice! > var playerIsPlaying = false; > Mousetrap.addKeycodes({ // Codes from https://github.com/wesbos/keycodes/blob/gh-pages/scripts.js > 174: 'decvol', > 175: 'incvol', > 182: 'decvolfirefox', > 183: 'incvolfirefox' > }) > // 'bind' keys that we are interested in > bindKey('up', 'alt', true); > bindKey('down', 'alt', true); > bindKey('space'); > bindKey('decvol', undefined, true); > bindKey('incvol', undefined, true); > bindKey('decvolfirefox', undefined, true); > bindKey('incvolfirefox', undefined, true); > bindKey('left', 'alt', true); > bindKey('right', 'alt', true); > > // Act on keys being pressed > bus.$on('keyboard', function(key, modifier) { > // Ignore shortcurt if there is no player or we have a menu/dialog open > if (!store.state.player || store.state.visibleMenus.size>0 || (store.state.openDialogs.length>0 && store.state.openDialogs[0]!='info-dialog')) { > return; > } > var command = undefined; > if (undefined==modifier) { > if (key=='space') { > command=[playerIsPlaying ? 'pause' : 'play']; > } else if (key=='incvol' || key=='incvolfirefox') { > bus.$emit('adjustVolume', true); > } else if (key=='decvol' || key=='decvolfirefox') { > bus.$emit('adjustVolume', false); > } > } else if ('alt'==modifier) { > if (key=='up') { > bus.$emit('adjustVolume', true); > } else if (key=='down') { > bus.$emit('adjustVolume', false); > } else if (key=='left') { > command=['button', 'jump_rew']; > } else if (key=='right') { > command=['playlist', 'index', '+1']; > } > } > > if (command) { > lmsCommand(store.state.player.id, command).then(({data}) => { > bus.$emit('updatePlayer', store.state.player.id); > }); > } > }); > > // Need to keep trak of whether current player is playing or not, so know when to play and when to pause > bus.$on('playerStatus', function(playerStatus) { > playerIsPlaying = playerStatus.isplaying; > }); > } > > > This works perfectly. Thank you! Everything is inching closer to being perfect. shinedou's Profile: http://forums.slimdevices.com/member.php?userid=72027 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Qobuz.com streaming plugin
Nikhil wrote: > I suddenly noticed this one one of my LMS instances today. > > > > > It doesn't allow me to browse anything on Qobuz. When I go to settings > and re-input my password, it allows me to go to the first level of the > menu, but nothing more. Works absolutely fine on another instance of > LMS. I restarted LMS and also tried to re-install the Qobuz plugin. Any > suggestions? > > Here's what I'm running it on > > Logitech Media Server Version: 8.2.0 - 1627922070 @ Tue Aug 3 11:34:34 > CEST 2021 > Hostname: X.local > Server IP Address: 192.168.200.160 > Server HTTP Port Number: 9000 > Operating system: macOS 11.6 - EN - utf8 > Platform Architecture: unknown > Perl Version: 5.18.4 - darwin-thread-multi-2level > Audio::Scan: 1.02 > IO::Socket::SSL: 2.066 > Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) > Total Players Recognized: 7 I'm guessing here, but maybe it has something to do with Qobuz preventing only 1 instance of an Account being used at the same time Like Sharing passwords among 'buddies' Cut-Throat's Profile: http://forums.slimdevices.com/member.php?userid=43167 View this thread: http://forums.slimdevices.com/showthread.php?t=97146 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Qobuz.com streaming plugin
I suddenly noticed this one one of my LMS instances today. > Please enter Qobuz username and password in Server > Settings/Advanced/Qobuz. > It doesn't allow me to browse anything on Qobuz. When I go to settings and re-input my password, it allows me to go to the first level of the menu, but nothing more. Works absolutely fine on another instance of LMS. I restarted LMS and also tried to re-install the Qobuz plugin. Any suggestions? Here's what I'm running it on Logitech Media Server Version: 8.2.0 - 1627922070 @ Tue Aug 3 11:34:34 CEST 2021 Hostname: X.local Server IP Address: 192.168.200.160 Server HTTP Port Number: 9000 Operating system: macOS 11.6 - EN - utf8 Platform Architecture: unknown Perl Version: 5.18.4 - darwin-thread-multi-2level Audio::Scan: 1.02 IO::Socket::SSL: 2.066 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) Total Players Recognized: 7 Nikhil's Profile: http://forums.slimdevices.com/member.php?userid=993 View this thread: http://forums.slimdevices.com/showthread.php?t=97146 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
SteveShort wrote: > I have no idea! Nothing that I've installed explicitly. I assume it's > whatever LMS installs? Can point me at what I should check? > > Thanks for your help with this. > > Best regards, > Steve Look at the LMS settings's page, tab "information" LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
philippe_44 wrote: > Its probably that some of the crypto libraries required for your > macOS/Perl version are missing. What Perl do you use? I have no idea! Nothing that I've installed explicitly. I assume it's whatever LMS installs? Can point me at what I should check? Thanks for your help with this. Best regards, Steve SteveShort's Profile: http://forums.slimdevices.com/member.php?userid=70595 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
SteveShort wrote: > It's the latest. tvOS 15.0. > > Now that you've pointed me at the pairing I think I can confirm that's > the problem. I'm not seeing the 'long code' and if I look at the LMS log > I see: > > [21-10-28 12:32:34.7804] Plugins::RaopBridge::Pairing::__ANON__ (143) > $VAR1 = bless( [ > undef, > undef, > bless( { > '_method' => 'POST', > '_headers' => bless( { > ... lots of stuff ... > ], 'Plugins::RaopBridge::Async::HTTP' ); > $VAR2 = '500 Internal Server Error'; > [21-10-28 12:32:34.7808] Plugins::RaopBridge::Settings::__ANON__ (71) > 90DD5DBDAA73@Gym._raop._tcp.local pairing failed > > But , I'm also seeing a lot of this when the Plugin config page is > shown: > > [21-10-28 12:32:34.7891] Slim::Utils::Misc::msg (1341) Warning: > [12:32:34.7890] Use of uninitialized value in concatenation (.) or > string at > /Users/stephenshort/Library/Caches/Squeezebox/InstalledPlugins/Plugins/RaopBridge/HTML/EN/plugins/RaopBridge/settings/basic.html > line 108. > > There's twelve messages displayed each time with different line numbers > (108, 116, 122, 128, 137, 150, 156, 167, 173, 183, 189). Those mostly > seem to be lines with a closing SELECT html element. > Is it possible these errors are part of the problem? I noticed that the > first two arguments to the Pairing method are undef? > > Best regards, > Steve Its probably that some of the crypto libraries required for your macOS/Perl version are missing. What Perl do you use? LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] ANNOUNCE: AirPlay Bridge = integrate AirPlay devices with LMS (squeeze2raop)
philippe_44 wrote: > Unfortunately the key exchange with the AP device has likely not worked > so the generated crypto is rejected in the RTSP session. I hope Apple > has not modified their protocol, that was very painful and I have no > motivation to redo it again. What tvOS are you using? It's the latest. tvOS 15.0. Now that you've pointed me at the pairing I think I can confirm that's the problem. I'm not seeing the 'long code' and if I look at the LMS log I see: [21-10-28 12:32:34.7804] Plugins::RaopBridge::Pairing::__ANON__ (143) $VAR1 = bless( [ undef, undef, bless( { '_method' => 'POST', '_headers' => bless( { ... lots of stuff ... ], 'Plugins::RaopBridge::Async::HTTP' ); $VAR2 = '500 Internal Server Error'; [21-10-28 12:32:34.7808] Plugins::RaopBridge::Settings::__ANON__ (71) 90DD5DBDAA73@Gym._raop._tcp.local pairing failed But , I'm also seeing a lot of this when the Plugin config page is shown: [21-10-28 12:32:34.7891] Slim::Utils::Misc::msg (1341) Warning: [12:32:34.7890] Use of uninitialized value in concatenation (.) or string at /Users/stephenshort/Library/Caches/Squeezebox/InstalledPlugins/Plugins/RaopBridge/HTML/EN/plugins/RaopBridge/settings/basic.html line 108. There's twelve messages displayed each time with different line numbers (108, 116, 122, 128, 137, 150, 156, 167, 173, 183, 189). Those mostly seem to be lines with a closing SELECT html element. Is it possible these errors are part of the problem? I noticed that the first two arguments to the Pairing method are undef? Best regards, Steve SteveShort's Profile: http://forums.slimdevices.com/member.php?userid=70595 View this thread: http://forums.slimdevices.com/showthread.php?t=105198 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
shinedou wrote: > > I just noticed the "Keyboard shortcuts" setting is not available in > lms-material-app. Is this a limitation of the android app or is it > something that can be activated somehow? My use case is lms-material-app > on an AndroidTV (NVidia Shield) to view the now playing screen on the > tv. If keyboards shortcuts were available I could play/pause or skip to > next song with a remote programmed to send the keyboard shortcuts. I -might- enable the playback shortcuts for mobile and desktop, but for now if you create a file named "custom.js" within a "material-skin" sub-folder of your LMS's "prefs" folder with the following contents, then it should work: Code: if (IS_MOBILE) { // desktop already catches these shortcuts, so dont want them handled twice! var playerIsPlaying = false; Mousetrap.addKeycodes({ // Codes from https://github.com/wesbos/keycodes/blob/gh-pages/scripts.js 174: 'decvol', 175: 'incvol', 182: 'decvolfirefox', 183: 'incvolfirefox' }) // 'bind' keys that we are interested in bindKey('up', 'alt', true); bindKey('down', 'alt', true); bindKey('space'); bindKey('decvol', undefined, true); bindKey('incvol', undefined, true); bindKey('decvolfirefox', undefined, true); bindKey('incvolfirefox', undefined, true); bindKey('left', 'alt', true); bindKey('right', 'alt', true); // Act on keys being pressed bus.$on('keyboard', function(key, modifier) { // Ignore shortcurt if there is no player or we have a menu/dialog open if (!store.state.player || store.state.visibleMenus.size>0 || (store.state.openDialogs.length>0 && store.state.openDialogs[0]!='info-dialog')) { return; } var command = undefined; if (undefined==modifier) { if (key=='space') { command=[playerIsPlaying ? 'pause' : 'play']; } else if (key=='incvol' || key=='incvolfirefox') { bus.$emit('adjustVolume', true); } else if (key=='decvol' || key=='decvolfirefox') { bus.$emit('adjustVolume', false); } } else if ('alt'==modifier) { if (key=='up') { bus.$emit('adjustVolume', true); } else if (key=='down') { bus.$emit('adjustVolume', false); } else if (key=='left') { command=['button', 'jump_rew']; } else if (key=='right') { command=['playlist', 'index', '+1']; } } if (command) { lmsCommand(store.state.player.id, command).then(({data}) => { bus.$emit('updatePlayer', store.state.player.id); }); } }); // Need to keep trak of whether current player is playing or not, so know when to play and when to pause bus.$on('playerStatus', function(playerStatus) { playerIsPlaying = playerStatus.isplaying; }); } *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
This is really helpful & clears up a lot, thanks very much! afriend wrote: > What br@m said. > TrackStat's *track_statistics* table and the default LMS > *tracks_persistent* table basically contain the some information. So if > you're just retrieving -ratings- or stats like -last played, date added- > or -playcount- I recommend querying *tracks_persistent*. If TrackStat > stops working at some point or you want to uninstall it (seeing that you > seem to have another rating plugin installed) your dynamic playlists > will keep working. > > The website you linked to probably uses DPL v2. With DPLv3 you can use > your custom dynamic playlist definition directly in DPL (without > SQLPlayList), just by putting the file in the *DPL custom playlist > folder* (see DPL settings for location). SQLPlayList is still a good way > to start creating your custom dynamic playlist but please remember that > it can't know '*all DPL v3 playlist parameters*' > (https://github.com/AF-1/lms-dynamicplaylists/wiki/DPL-playlist-format#playlist-parameters) > because its last version dates from before DPL v3. > > P.S. also: in your sql statement (screenshot) you use last*p*layed but > it probably should be last*P*layed. I think it's case-sensitive. 1x Classic / 2x Radio / 2x Receiver / 1x DAC32 / LMS 8.3.0 - 1630708871 on Docker / Ubuntu 18.04 LTS http://www.last.fm/user/rndr rlem's Profile: http://forums.slimdevices.com/member.php?userid=46931 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
shinedou wrote: > Bummer, there are lots of Android boxes that support keyboards. If you > ever run across a way to implement it please consider it. Thanks for > your hard work. If you use chrome, and not the material app, then material has an option to enable 'Lock screen and notifications' This uses a javascript 'mediasession' (the app uses WebView and this does not support mediasession). On a desktop browser this adds support for media-keys (i.e. play/pause). Its -possible- these keys also work with mobile browsers. *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
cpd73 wrote: > Yeah, shortcuts are desktop only - as most touch/mobile devices do not > have a real keyboard. Bummer, there are lots of Android boxes that support keyboards. If you ever run across a way to implement it please consider it. Thanks for your hard work. shinedou's Profile: http://forums.slimdevices.com/member.php?userid=72027 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
shinedou wrote: > Somehow I deleted my original post. Here it goes again... > > I just noticed the "Keyboard shortcuts" setting is not available in > lms-material-app. Is this a limitation of the android app or is it > something that can be activated somehow? My use case is lms-material-app > on an AndroidTV (NVidia Shield) to view the now playing screen on the > tv. If keyboards shortcuts were available I could play/pause or skip to > next song with a remote programmed to send the keyboard shortcuts. Yeah, shortcuts are desktop only - as most touch/mobile devices do not have a real keyboard. *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins