Announcement

Collapse
No announcement yet.

Force LMS to refresh list of players?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Force LMS to refresh list of players?

    As part of the next Material skin and APK release, I've updated the APK to allow starting of SB Player, SqueezePlayer, or Squeezelite (via Termux) on Android. When a user uses the power-button in Material to "switch off" an Android player the APK intercepts this and stops the player app itself. However, the player still appears in LMS's players list (checked in Material, Default skin, and Squeezer) - but it does disappear after a while (about 30 seconds?)

    As I'm stopping the app, is there a way to force LMS to refresh its list of players? Or to just ask LMS to remove a specific player? I've tried sending ["client", "forget"] to LMS with the relevant player ID, but this does not seem to do anything.
    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.

    #2
    Do you call forget before or after shutting down the player? Players are kept in the list for a few minutes. I don’t think there’s a way to remove the player after it has disconnected.
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

    Comment


      #3
      Originally posted by mherger View Post
      Do you call forget before or after shutting down the player? Players are kept in the list for a few minutes. I don’t think there’s a way to remove the player after it has disconnected.
      Ah, thanks. Sending the "forget" before actually stopping the app seems to do the trick!
      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.

      Comment

      Working...
      X