How to show play status like an iTunes plugin device?

Posted on
Fri Jun 09, 2017 12:01 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

How to show play status like an iTunes plugin device?

Hi! I'm working on a Denon Heos plugin, and modeling it after the indigo-yamaharx plugin, I'm making good progress.

One thing I'd like to do is make the Speaker device visibly show the play state in the UI, like an iTunes server device does. ie, it should show 'Play', 'Stopped', or 'Paused' and a little icon.

How do I do this with a custom device?

Thanks!

Posted on
Fri Jun 09, 2017 12:53 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How to show play status like an iTunes plugin device?

Just make sure that the state that shows in the status column has a value in ["playing", "paused", "stopped"] and it should automatically get the right icon.

You can also set the displayStateImageSel property of a device to one of the image enumerations, in your case AvStopped, AvPaused, AvPlaying.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 09, 2017 2:09 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: How to show play status like an iTunes plugin device?

Ah, great! I guess one thing I don't know is how to set which state is displayed in that column. I'll look through the docs to try and find it before someone can point it out to me. :)

Posted on
Fri Jun 09, 2017 2:10 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: How to show play status like an iTunes plugin device?

Found it!

<UiDisplayStateId>playStatus</UiDisplayStateId>

Posted on
Fri Jun 09, 2017 2:20 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: How to show play status like an iTunes plugin device?

Woo! And I got it to work.
Attachments
Screen Shot 2017-06-09 at 1.19.08 PM.png
Screenshot showing working Denon Speaker device showing as playing in the UI.
Screen Shot 2017-06-09 at 1.19.08 PM.png (15.54 KiB) Viewed 1483 times

Posted on
Fri Jun 09, 2017 2:32 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How to show play status like an iTunes plugin device?

Excellent!

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests