View Single Post
Old 2009-06-07, 16:20   #342
CapnBry
Fan
 
CapnBry's Avatar
 
Join Date: Oct 2004
Location: Tampa, FL USA
Posts: 389
CapnBry is on a distinguished road
Default

Quote:
Originally Posted by digitalhigh View Post
What are the new infolabels available for skinners?
ListItem.VideoResolution - the quantized resolution video stream. Options are 480, 540, 720, or 1080.
ListItem.VideoCodec - video codec of the stream. This is the fourcc if available or the decorder codec if not. e.g. xvid, mpeg4, h264.
ListItem.VideoAspect - display aspect of the video. Options are 1.33, 1.66. 1.78, 1.85, 2.20, 2.35.
ListItem.AudioCodec - audio codec of the stream. e.g. mp3, aac, ac3, dca (which is 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.

Some are also available when playing a video:
VideoPlayer.VideoCodec, VideoPlayer.AudioCodec, VideoPlayer.VideoResolution, VideoPlayer.AudioChannels.

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 implemented, 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.

Last edited by CapnBry; 2009-06-17 at 00:28.
CapnBry is offline   Reply With Quote