Wiki Navigation
- Loading...
Purpose
- Required: No
- Type of Change: Feature
Description of Change
With this rework, skinners are able to display Live TV mediainfo like audio and video resolution, audio channel count etc. in TV OSD.
Skins can copy, or import the media logos used in Video OSD if they wish, or create a new
TVOSD.mediainfo.xml
skin file to import into the main
TVOSD.xml
skin file.
New Properties available in TV OSD
Skinners may now use the following new properties in TV OSD:
Property name | Type | Description |
---|---|---|
#Play.Current.VideoResolution.png | Image | Icon for current video resolution |
#Play.Current.VideoCodec.Texture.png | Image | Icon for current video codec |
#Play.Current.AudioCodec.Texture.png | Image | Icon for current audio codec |
#Play.Current.AspectRatio.png | Image | Icon for current aspect ratio |
#TV.View.HasTeletext | Boolean (True, False) | Icons for teletext available/not available, e.g. teletext.png / noteletext.png |
#Play.Current.HasSubtitles | Boolean (True, False) | Icons for subtitle available/not available, e.g subtitles.png / nosubtitles.png |
#TV.TuningDetails.FreeToAir | Boolean (True, False) | Based on the returned text shows icons for free-to-air/encrypted channels, e.g. fta.png / nofta.png |
#Play.Current.TSBitRate | String | Shows the current rate of the bitstream |
Note
Please note the important
<visibility>
conditions necessary for
#TV.View.HasTeletext
,
#Play.Current.HasSubtitles
and
#TV.TuningDetails.FreeToAir
!
Additional Information and References
Issue #: | |
---|---|
Related xml(s): | tvosd.xml, tvosdmediainfo.xml (new) |
Windows IDs: | 3003 |
Related control: | |
Related Subsystem: | TsReader, TvPlugin |
Author: | regeszter |
Date added: | Mon, 12 Jan 2015 |
XML/Code Samples
Sample
TVOSD.mediainfo.xml
(based on DefaultWide skin) that can be imported into
TVOSD.xml
:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <window> <controls> <control> <description>bar image</description> <type>image</type> <id>0</id> <posX>288</posX> <posY>573</posY> <height>51</height> <width>666</width> <texture>osd_mask3.png</texture> <colordiffuse>ddffffff</colordiffuse> <animation effect="slide" start="0,50" time="100" reversible="true">visible</animation> <visible>control.hasfocus(1237)</visible> </control> <control> <type>group</type> <description>group element</description> <layout>StackLayout(0, Horizontal, true)</layout> <posX>291</posX> <posY>581</posY> <visible>control.hasfocus(1237)</visible> <animation effect="slide" start="0,50" time="100" reversible="true">visible</animation> <layout>StackLayout(2, Horizontal, true)</layout> <control> <description>Video resolution</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>Logos\resolution\#Play.Current.VideoResolution.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Video codec</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>Logos\video\#Play.Current.VideoCodec.Texture.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Audio codec</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>Logos\audio\#Play.Current.AudioCodec.Texture.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>AspectRatio</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>Logos\aspectratio\#Play.Current.AspectRatio.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Audio channels</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>Logos\audio\stereo.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Teletext</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#TV.View.HasTeletext,true)</visible> <texture>logos\Teletext.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>No Teletext</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#TV.View.HasTeletext,false)</visible> <texture>logos\noTeletext.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Subtitles</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#Play.Current.HasSubtitles,true)</visible> <texture>logos\subtitles.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>NoSubtitles</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#Play.Current.HasSubtitles,false)</visible> <texture>logos\nosubtitles.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>FTA</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#TV.TuningDetails.FreeToAir,TRUE)</visible> <texture>logos\fta.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>No FTA</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <visible>string.equals(#TV.TuningDetails.FreeToAir,FALSE)</visible> <texture>logos\nofta.png</texture> <keepaspectratio>yes</keepaspectratio> </control> <control> <description>Bitrate</description> <type>image</type> <id>0</id> <width>68</width> <height>46</height> <texture>logos\satellite.png</texture> <keepaspectratio>yes</keepaspectratio> </control> </control> <control> <description>Bitrate</description> <type>label</type> <id>1</id> <posX>890</posX> <posY>580</posY> <label>#Play.Current.TSBitRate</label> <align>left</align> <font>font10</font> <textcolor>white</textcolor> <animation effect="slide" start="0,50" time="100" reversible="true">visible</animation> <visible>control.hasfocus(1237)</visible> </control> <control> <description>Bitrate</description> <type>label</type> <id>1</id> <posX>890</posX> <posY>598</posY> <label>Mbit/s</label> <align>left</align> <font>font10</font> <textcolor>white</textcolor> <animation effect="slide" start="0,50" time="100" reversible="true">visible</animation> <visible>control.hasfocus(1237)</visible> </control> </controls> </window>
Screenshots
This page has no comments.