------------------------------------------------------------------------
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)
------------------------------------------------------------------------
KeBul wrote:
> [22-11-21 21:30:00.0576] Slim::Utils::Alarm::_alarmEnd (1987) Unknown
> source:
> /4fd1bca6/slim/playerprefs/00:04:20:26:xx:aa|335||4fd1bca6|Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like
> Gecko) Version/16.1 Safari/605.1.15
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
*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=116649
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta