Using CLI how can I detect if a skip forward or skip backwards command has been recieved from the remote?
I know abaout using 'rate' for the scan but I've not been able to figure this one out.
Thanks
Craig
Results 1 to 7 of 7
Thread: CLI Skip Question
-
2006-09-03, 02:31 #1
CLI Skip Question
-
2006-09-03, 15:24 #2Senior Member
- Join Date
- Jun 2005
- Location
- Switzerland
- Posts
- 610
Which version of SlimServer?
Fred
-
2006-09-03, 15:58 #3
I'm trying to accomodate both, 6.3 and 6.5b1
Craig
-
2006-09-05, 11:24 #4Senior Member
- Join Date
- Jun 2005
- Location
- Switzerland
- Posts
- 610
Using 6.3, your only option is to use "listen" and look for jump commands.
Using 6.5, I would simply use "status - 2 subscribe:30" and get everything from the status command. Because of the subscribe option, SlimServer will send an updated status command everytime something happens to the player, skip included.
Alternatively using 6.5, you can lower the stuff coming your way by using subscribe jump instead of listen (listen basically means subscribe to everything). That could be easier to support both version with the same code.
Hope this helps. Commands above should be all described in the CLI doc.
Fred
-
2006-09-05, 12:03 #5
Thanks Fred,
I'm already using Subscribe so I guess that 'Jump' is what I was looking for.
Can I take it from your reply that Subscribe is not available on 6.3?
Craig
-
2006-09-05, 15:43 #6Senior Member
- Join Date
- Jun 2005
- Location
- Switzerland
- Posts
- 610
Subscribe is only 6.5, yes.
And the command you're looking for is
<playerid> playlist index <index|+index|-index|?>
or
<playerid> playlist jump <index|+index|-index|?>
They're synonyms, so either you need to subscribe to playlist and parse from there.
Fred
-
2006-09-06, 02:02 #7
Thanks for your help Fred,
I'll use listen for 6.3 and subscribe for 6.5, it should parse out the same, just be a heavier load on 6.3.
Craig

Reply With Quote
