2013-02-11, 12:51
Hi,
I wasn't around much last month so I guess I missed request for this.
I'd say that now there is no good way to pass data containing multiple entries/items (i.e. cast list, album's track list, subtitles/audio streams list) to skin. We usually hardcode some list id to fill it with items (cast / track list). We need to add some mechanism to automate control/items creation, for example:
1.and/or
2.
This could be used in grouplists and static containers. I remember there was idea like this before but I never got to do anything in this direction.
After having such mechanism in place it would be really easy to add access to audio/subtitles streams (plus it would allow some nice stuff to be done with VideoPlayer.Cast)
I wasn't around much last month so I guess I missed request for this.
I'd say that now there is no good way to pass data containing multiple entries/items (i.e. cast list, album's track list, subtitles/audio streams list) to skin. We usually hardcode some list id to fill it with items (cast / track list). We need to add some mechanism to automate control/items creation, for example:
1.
Code:
<control type="grouplist">
[...]
<template end="$INFO[Window.Property(AudioLanguage.Count)]" begin="1" step="1"> <!-- begin and step could be optional -->
<control type="image">
<width>48</width>
<height>48</height>
<texture>$INFO[Window.Property(AudioLanguage.%d),flags/language/,.png]</texture>
</control>
</template>
[...]
</control>
2.
Code:
<control type="grouplist">
[...]
<template source="AudioLanguages">
<control type="image">
<width>48</width>
<height>48</height>
<texture>$INFO[Entry,flags/language/,.png]</texture> <!-- for complex types like cast things like Entry.ActorName, EntryRole could be used -->
</control>
</template>
[...]
</control>
After having such mechanism in place it would be really easy to add access to audio/subtitles streams (plus it would allow some nice stuff to be done with VideoPlayer.Cast)