------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=116649
------------------------------------------------------------------------
Question: On what player types does the alarm fail for you?
    
- Squeezebox Radio (official firmware 7.x) 
- Squeezebox Radio (community firmware 8.x) 
- Squeezebox Touch (official firmware 7.x) 
- Squeezebox Touch (community firmware 8.x) 
- SB Classic/Boom/Receiver/Transporter 
- Other (eg. Raspberry Pi based)
------------------------------------------------------------------------

cpd73 wrote: 
> This looks odd to me. And the only part that -could- be from Material.
> Material subscribes to player preference changes
> */4fd1bca6/slim/playerprefs/00:04:20:26:xx:aa* - but not sure about the
> rest of the line. To subscribe to these I send:
> 
> > 
Code:
--------------------
  >   > 
  > {data:{response:'/'+this.cometd.getClientId()+'/slim/playerprefs/'+id, 
request:[id, ['prefset']]}}
  > 
--------------------
> > 
> 
> Where `id` is the player's ID, and `this.cometd.getClientId()` is the
> cometd ID.
> 
> However, to -unsubscribe- I send:
> 
> > 
Code:
--------------------
  >   > 
  > {data:{response:'/'+this.cometd.getClientId()+'/slim/playerprefs/'+id, 
request:[id, []]}}
  > 
--------------------
> > 
> 
> ...i.e. the last array is empty. Could this be the issue? Is this the
> correct way to unsubscribe? Unsubscribing of playerprefs was only
> added in July of this year. If anyone wants to take a look subscribe
> is @line 739 and unsubscribe @line 753 of
> https://github.com/CDrummond/lms-material/blob/master/MaterialSkin/HTML/material/html/js/server.js

Thanks for chiming in Craig, much appreciated.

Just out of interest, what actions in the use of Material calls that
section of unsubscribe code - if the problem is triggered by this it
could help Michael reliably reproduce the problem.

Also in a somewhat weak effort to further understand what you clever
chaps are talking about I did a search and found this thread... notably
Pippin's post #12

https://forums.slimdevices.com/showthread.php?104082-More-CometD-Subscribe-to-multiple-player-notifications/page2

from that: "Oh, one thing: you don't use the cometd unsubscribe, don't
you? That doesn't work and breaks things"

Of course from 2015, so a good few years back now and may not be
relevant in today's LMS versions

slartibartfast wrote: 
> Wouldn't that affect LMS 8.2 as well as 8.3 though? Nobody has reported
> an issue with 8.2.
> 
Yeah, but in post #118 Michael did mention that he'd found the cometd
handler in code changes implemented in 8.3

It feels like we are getting closer on this one.

Kev


------------------------------------------------------------------------
KeBul's Profile: http://forums.slimdevices.com/member.php?userid=32883
View this thread: http://forums.slimdevices.com/showthread.php?t=116649

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to