Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Senior Member Craig's Avatar
    Join Date
    Apr 2005
    Location
    Leeds, UK
    Posts
    839

    CLI Skip Question

    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

  2. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Switzerland
    Posts
    610
    Which version of SlimServer?

    Fred

  3. #3
    Senior Member Craig's Avatar
    Join Date
    Apr 2005
    Location
    Leeds, UK
    Posts
    839
    I'm trying to accomodate both, 6.3 and 6.5b1

    Craig

  4. #4
    Senior 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

  5. #5
    Senior Member Craig's Avatar
    Join Date
    Apr 2005
    Location
    Leeds, UK
    Posts
    839
    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

  6. #6
    Senior 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

  7. #7
    Senior Member Craig's Avatar
    Join Date
    Apr 2005
    Location
    Leeds, UK
    Posts
    839
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •