2009-02-19, 17:03
nekrosoft13 Wrote:why? both should be displayed, i understand for some people having one audio is not a issue.
It's just the logistics of placing every bit of stream info in the skin at once can get a bit, well, cluttered. I know everyone in this thread just wants their one extra thing on the screen, but if you add everything everyone wants it just becomes a mess and a huge burden on a skinner.
digitalhigh, here's some preliminary documentation as to what will be available.
ListItem.VideoResolution - the quantized resolution video stream. Options are 480, 720, or 1080.
ListItem.VideoCodec - video codec of the stream. e.g. mpeg4, h264.
ListItem.AudioCodec - audio codec of the stream. e.g. mp3, aac, ac3, dts.
ListItem.AudioChannels - number of channels in the stream. Can be 0 if there is no audio at all.
ListItem.AudioLanguage - language of the audio stream if available. Uses ISO 639-2 three character codes, e.g. eng, epo, deu.
ListItem.SubtitleLanguage - language of the subtitle stream. ISO 639-2. Blank if no subtitles.
Note, each item can be used by itself to return what I determine to be the "highest resolution" stream, or suffixed with a number to get information about a specific stream. For example AudioChannels0 is "highest", AudioChannels1 is first audio stream, AudioChannels2 is second, etc. Note that this feature of exporting multiple streams to the skin is not yet supported, but the information is stored and will be included once the skinning engine supports it
Highest resolution is:
Video - Largest combined resolution (w x h)
Audio - Most channels. In case of a tie, eac3 > dts > ac3 > all else.
Subtitle - The language that matches what is configured in Appearance -> Region -> Language
If you'd like to display a texture representing any of the above items, simply use an image control and set its texture property to the detail you want, and use the prefix/suffix to generate the filename in your skin. For example, if you want video resolution to use your assets named videoresolutionX.png you'd set the texture property like this:
<texture>$INFO[ListItem.VideoResolution,videoresolution,.png]</texture>
Which will use the appropriate videoresolution480.png, videoresolution720.png, videoresolution1080.png or hide the texture if the information is not known.