sky201503 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Special widgets for multimedia devices #339

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Feature Description
With the current available widgets it is possible to create visualizations 
which reflect the most common tasks.
In order to be able to create more user-friendly user interfaces especially for 
multimedia systems like Sonos and so on it would be good to have some special 
widgets like a control widget where it is possible to use several buttons 
(switches) in some kind of table layout or a widget for showing the cover of 
the current track (at least for this demand it would be good to have the 
parameters height and width for the current Image widget). 

2. Example Use Case
As you can see in the attached screenshot I'm currently using the icon 
attribute of the Text element to show the album art. This way the icon/album 
art is restricted to a dimension of 32x32. Using the Image widget is also not 
possible because of the missing height and width attribute and some other 
restrictions. Have also a look on 
the top widget line for each Sonos device where I defined four control buttons. 
To be able to define more flexible controls the mentioned control widget in the 
feature description would be really nice. For this it would be also good to be 
able to just use appropriate icons (play,pause,next,...) for the 
buttons/switches instead of text.

Please think also about some kind of CurrentPlaying widget which contains some 
basic fields to provide information like the album art, the artist, the album, 
the title and some other information.

Original issue reported on code.google.com by dongy...@umc-project.de on 10 Jun 2013 at 4:16

GoogleCodeExporter commented 8 years ago
New screenshot added

Original comment by dongy...@umc-project.de on 10 Jun 2013 at 4:30

Attachments:

GoogleCodeExporter commented 8 years ago
It would also be good to create new Commands/States for Multimedia items like 
PlayPause (optionally with URI of playable item). This would make developing 
bindings for multimedia hardware feel "more right"

Original comment by till.klo...@gmail.com on 11 Jun 2013 at 1:08

GoogleCodeExporter commented 8 years ago
How did you manage to show up cover arts instead of "normal" icons? Do they 
change dynamically?

Original comment by teichsta on 12 Jun 2013 at 6:53

GoogleCodeExporter commented 8 years ago
I modified the Sonos binding so it also graps the cover for the current  
playing track. The cover is always saved under webapps/images with the name 
'cover_[deviceid].png'. This image(s) are used as icon in the appropriate Text 
widgets. In the classic UI the cover/icon changes dynamically as soon as the 
current track changes (greent seems to have some problem with that).

Original comment by dongy...@umc-project.de on 12 Jun 2013 at 7:01

GoogleCodeExporter commented 8 years ago
Thanks for this update! Read your email, too ...

Original comment by teichsta on 12 Jun 2013 at 7:28

GoogleCodeExporter commented 8 years ago
You sent me a mail? Have not received anything.

Original comment by dongy...@umc-project.de on 12 Jun 2013 at 8:04

GoogleCodeExporter commented 8 years ago
no, i read your email "Greent seems not to update the icon of a widget on 
postUpdate" where described a bit more how you dealt with the images this 
morning.

Original comment by teichsta on 12 Jun 2013 at 8:19

GoogleCodeExporter commented 8 years ago
A specific "player" widget appears to be a bit too specific to me.
I would rather think about integrating an extension mechanism to add custom 
complex widget types, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=423530. 
I have therefore closed this issue as a duplicate of issue 368.

Original comment by kai.openhab on 8 Dec 2013 at 8:25