{"action":"created","issue":{"url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/371","repository_url":"https://api.github.com/repos/jishi/node-sonos-http-api","labels_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/371/comments","events_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/371/events","html_url":"https://github.com/jishi/node-sonos-http-api/issues/371","id":188135785,"number":371,"title":"Small issue with \"clips\"","user":{"login":"DJBenson","id":1013909,"avatar_url":"https://avatars.githubusercontent.com/u/1013909?v=3","gravatar_id":"","url":"https://api.github.com/users/DJBenson","html_url":"https://github.com/DJBenson","followers_url":"https://api.github.com/users/DJBenson/followers","following_url":"https://api.github.com/users/DJBenson/following{/other_user}","gists_url":"https://api.github.com/users/DJBenson/gists{/gist_id}","starred_url":"https://api.github.com/users/DJBenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJBenson/subscriptions","organizations_url":"https://api.github.com/users/DJBenson/orgs","repos_url":"https://api.github.com/users/DJBenson/repos","events_url":"https://api.github.com/users/DJBenson/events{/privacy}","received_events_url":"https://api.github.com/users/DJBenson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T23:50:05Z","updated_at":"2016-11-18T15:57:49Z","closed_at":null,"body":"Hi\r\n\r\nFirst of all, thank you so much for creating this API - I've been using it for ages and it's great to see the new features being added and the program actively developed.\r\n\r\nI've got a new use case (thanks to the inclusion of \"clips\") which, when my doorbell is pressed, an RF signal is passed to my Raspberry Pi (running Domoticz) which in turn calls your API to play an MP3 of the chime.\r\n\r\nI noticed this evening that after the chime had played, a track which was previously paused continued playing, I would expect the play state to persist after the chime finished playing.\r\n\r\ne.g.\r\n\r\nPre-chime: Audio is paused\r\nChime: Clip is played\r\nPost-chime: Audio is paused\r\n\r\nAlso, I think it's been mentioned before but I'm not sure if there is anything you can do about it - when the API is called from a script (such as an Lua script in Domoticz) it takes a while for the API to return control to the script - I assume your API is waiting a certain amount of time before indicating success but this means I have to put the API call last in my script or it holds everything else up - the script in question does the following on the press of the doorbell;\r\n\r\nDisplays a CCTV overlay on each Kodi client in my house (called via the Kodi API)\r\nDisplays a notification in Kodi and on my iOS device (called via Domoticz)\r\nPlays the chime by calling your API\r\n\r\nIdeally, the chime should take precedence, but if I put the call to your API first, there is a significant delay (10-20 seconds) between the chime starting and the other events firing when they should be simultaneous (give or take)."},"comment":{"url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/comments/261567006","html_url":"https://github.com/jishi/node-sonos-http-api/issues/371#issuecomment-261567006","issue_url":"https://api.github.com/repos/jishi/node-sonos-http-api/issues/371","id":261567006,"user":{"login":"jishi","id":3165475,"avatar_url":"https://avatars.githubusercontent.com/u/3165475?v=3","gravatar_id":"","url":"https://api.github.com/users/jishi","html_url":"https://github.com/jishi","followers_url":"https://api.github.com/users/jishi/followers","following_url":"https://api.github.com/users/jishi/following{/other_user}","gists_url":"https://api.github.com/users/jishi/gists{/gist_id}","starred_url":"https://api.github.com/users/jishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jishi/subscriptions","organizations_url":"https://api.github.com/users/jishi/orgs","repos_url":"https://api.github.com/users/jishi/repos","events_url":"https://api.github.com/users/jishi/events{/privacy}","received_events_url":"https://api.github.com/users/jishi/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T15:57:49Z","updated_at":"2016-11-18T15:57:49Z","body":"Aha, so you are saying that a player that was paused, would change to playing state after the clip command? Okay, missed that. Will look into it."}}
{"actor":{"display_login":"jishi"}}