Re: [slim] Playing beyond tracks

2016-09-21 Thread Mnyb

pippin wrote: 
> Has nothing to do with "small com glitches". The problem in this case
> (and I have seen that with my router many times but I can rule it out
> for the latest incident since I don't use it for streaming anymore due
> to this) is stalling streams.
> "Stalling" means the stream is broken but both sides don't notice it.
> That's less of a problem for the actual music stream because you get a
> new one every few minutes.
> But the slimproto control connection (and also the cometd connection
> used by Apps and SqueezePlay) is also a stream and if that one stalls
> the server will never know that the player has finished playing a track
> so will not send a new one. You get exactly the behavior we are seeing
> here.
> 
> Now... this doesn't seem to be the _only_ possible cause for this but
> it's certainly one and ruling it out might help

That was better explanation, never had exactly this error myself only
your typical flaky wifi that goes down for some seconds .

Some process of elimination to exclude some of the involved network
devices ? To fault trace .

For example in my network the internet router is actually not used as a
switch it's conected to one of my switches and the wired server and all
of wired players use static IP so they don't need my router to function
so it can go down or be rebooted without a hitch . Player and server
talks trough the switches. The switches are these blue sheet metal case
semi pro netgear types , no shiny consumer variant with fancy plastic
case and power saving and Eco features 




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Your home-made LMS API projects

2016-09-21 Thread mherger

I recently discovered BitBar for OSX/macOS (http://getbitbar.com). This
allows you to build menu bar items using your preferred scripting or
programming language. I've cobbled together a quick Perl script which
gives similar options as the tray icon on Windows:

21136

If I find time I might add some basic player control to it, together
with title display in the menu bar, artwork... ok, I probably won't have
time for all of this anytime soon, but if somebody was interested, the
script is up on github. 

If you're just interested in using the script as it is, head over to the
BitBar website, install the application
(https://getbitbar.com/plugins/Music/check-lms.10s.pl)


+---+
|Filename: Bildschirmfoto 2016-09-19 um 13.57.22.png|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=21136|
+---+


Michael

http://www.herger.net/slim-plugins - MusicArtistInfo, MusicInfoSCR

mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=106168

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


[slim] Your home-made LMS API projects

2016-09-21 Thread tablemate

Hi,

While my many years ago promised Opera plugin to control LMS went
nowhere, I still have lots of fun with SqueezeBox' LMS API. 
The openness is probably the reason why I want to stick with SB as long
as possible.

Some of my more noticeable home-brew projects have been:

1) A Opera browser (12 Presto and 19-upwards) plugin that shows artwork
and title or artist of the currently playing song in a Speed Dial entry.
A click opens LMS on the selected player.  I have been using this plugin
myself for years, but I have not released it on Opera's add-in store, as
it will require tons of finishing touches. Password protected servers
and mysqueezebox.com are not supported. Of course I am willing to upload
it somewhere if someone's interested. As it has not been released on
Opera's Add-on store, it requires enabling Opera's Developer mode, that
would be a security risk. Also note that as long as Opera is running, it
is polling LMS every X seconds (configurable from 5 to 60 seconds), I do
not expect WebSocket support is on the LMS roadmap ;) It can be
configured to stop polling after X unsuccessful tries however. Again it
was mostly made for my personal enjoyment, but if there's interest I'd
be willing to work on it.

2) I bought a new Logitech keyboard (at least they still make those ;) )
with neat media keys. Still I hardly play music on my desktop PC, I
wanted to control LMS with these keys. Unfortunately Logitech's SetPoint
utility's UI does not let me re-assign the Media Keys. With a bit of
research I found out that you can edit a XML file manually to add
functions to almost any key, including the Media Keys. 

I'm a developer, so I created a native Win32 program that simply
connects to LMS' TelNet interface (the compiler I used did not have
built-in support for JSON, so I chose the TelNet interface) and sends
parameter-driven commands to LMS. Now I can rewind, play/pause, forward,
mute/unmute and volume up/down with a press of a button. I have been
using this for a week now, on a Windows 10 desktop PC, and it seems to
work remarkably well. I hope Logitech will not introduce major new
versions of SetPoint for a long time ;)

Are there other people that have been playing with the various
SqueezeBox-related APIs and created some noticeable home-brew projects
that you wouldn't want to miss? :)



Squeezeboxes: Touch (on Yamaha AVR667) + Radio connected to LMS 7.7 (Mac
mini running MacOS X 10.7) . Plugins used: Spotify and LastFM
Scrobbler.
SquuezePlayer and Orange Squeeze user on HTC Desire Z (Android 2.3)
phone and Asus TF300 (Android 4.1) tablet

tablemate's Profile: http://forums.slimdevices.com/member.php?userid=57007
View this thread: http://forums.slimdevices.com/showthread.php?t=106168

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread pippin

Mnyb wrote: 
> Music does not need to stop for small com glitches the internal buffer
> is >=30 seconds of music , depending on codec . For low bitrate MP3 even
> more .
> 
> In fact it usually don't stop , it just keeps on playing until the
> buffer is empty even if the UI crashes ?

Has nothing to do with "small com glitches". The problem in this case
(and I have seen that with my router many times but I can rule it out
for the latest incident since I don't use it for streaming anymore due
to this) is stalling streams.
"Stalling" means the stream is broken but both sides don't notice it.
That's less of a problem for the actual music stream because you get a
new one every few minutes.
But the slimproto control connection is also a stream and if that one
stalls the server will never know that the player has finished playing a
track so will not send a new one. You get exactly the behavior we are
seeing here.

Now... this doesn't seem to be the _only_ possible cause for this but
it's certainly one and ruling it out might help



---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox
and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App, 
at penguinlovesmusic.com
*New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread dbm204

For me, it will continue playing through the following tracks without a
problem. It is only when I happen to check the web UI or an app on my
tablet that I notice it has lost its place. Usually I just let it stay
behind and keep listening. I have restarted my router a number of times
and tried changing the configuration to try to establish a pattern, all
to no avail. I will restart everything again and try today.

Although this is mildly annoying, I still prefer all the improvements
made in 7.9 to any inconvenience in the display. 7.9 converted me to a
web UI user, even on my tablet. I wouldn't have mentioned it except that
I saw others experiencing it too.

Thanks



dbm204's Profile: http://forums.slimdevices.com/member.php?userid=65916
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread Mnyb

Music does not need to stop for small com glitches the internal buffer
is >=30 seconds of music , depending on codec . For low bitrate MP3 even
more .

In fact it usually don't stop , it just keeps on playing until the
buffer is empty even if the UI crashes ?




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread pippin

Oh, BTW: you did try to restart your router? I do have a router
(Fritz!Box) that has problems keeping a stable streaming connection



---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox
and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App, 
at penguinlovesmusic.com
*New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread dbm204

Agreed. This shows the problem is all over, not player/architecture
dependent. Communication/protocol could still be the culprit. That is
why I mentioned in my earlier post some strange "cannot connect to
server" messages that flash for less than a second, which seem like a
false-negative since the music never stops and LMS web-UI has the
problem, not the player itself.

It is odd that LMS seems schizophrenic. LMS falls behind, not the track
playing on the player. LMS knows to send track 3 and does so
successfully, the player continues playing track 3, but LMS web-UI
displays track 2 as current track. LMS knows enough to send the next
track and continues with track 4 too. Sometimes I think it just stays
stuck on track 2; usually it just stays 1 track behind. I don't see
dropouts or buffering issues. Rarely, it will stop at the end of a track
and I need to play a track explicitly to get the UI and player back in
sync.

I only mentioned player sync before because I know that sync has the
most complicated logic and this requires LMS to know what is on all
players and exactly where the players are at (since it can force
corrections to bring players back in sync). 

For me, I think a work-around may be to avoid playing an album while one
is currently playing. I will try to pause play, clear the playlist, add
the next album, then start play. Perhaps that will avoid the problem.

I have seen the problem mostly when I alter the playlist while it is
playing. When I lined up 4 hours of short (pop music) tracks and let it
go, it played without a problem.



dbm204's Profile: http://forums.slimdevices.com/member.php?userid=65916
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread pippin

I think it's either the player doing something wrong when it's supposed
to go to the next track, but given that these were very different
players (my problem was with iPeng as a player which makes it three
different implementations now) I doubt it's the software in the player
itself, maybe the protocol.

Or it's the server. No idea where, Michael would have better insight
here.



---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox
and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App, 
at penguinlovesmusic.com
*New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch*

pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] Playing beyond tracks

2016-09-21 Thread Mnyb

it can actually be the comunication ? Or server getting choked an busy
in some way ?

The server is updating the displays , its especially true in the old
players where the server basically runs the whole UI (except the fw
setup menu) .
Touch is more autonomous and a larger part of the UI exist without a
server...




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=106111

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss