2017-01-22, 12:02
It's already there. The reoslution is displayed next to "HD".
$VAR[PlayerResolution]
Code:
<!-- HD label -->
<control type="label">
<left>24</left>
<top>-2</top>
<width>auto</width>
<height>34</height>
<font>Bold28</font>
<textcolor>ffebebeb</textcolor>
<label>[B]HD[/B]</label>
<visible>Integer.IsGreater(VideoPlayer.VideoResolution,710)</visible>
</control>
<!-- Resolution label -->
<control type="label">
<left>2</left>
<top>-2</top>
<width>auto</width>
<height>34</height>
<font>Bold29</font>
<textcolor>ffebebeb</textcolor>
<label>$VAR[PlayerResolution]</label>
</control>
$VAR[PlayerResolution]
Code:
<variable name="PlayerResolution">
<value condition="[Integer.IsGreater(VideoPlayer.VideoResolution,710) + !Integer.IsGreater(VideoPlayer.VideoResolution,730)]">720p</value>
<value condition="String.IsEqual(VideoPlayer.VideoResolution,1080)">1080p</value>
<value condition="String.IsEqual(VideoPlayer.VideoResolution,4K)">4K</value>
</variable>
Quote:ListItem.VideoResolution(or Player.VideoResolution): Shows the resolution of the currently selected video (possible values: 480, 576, 540, 720, 1080, 4K). Note that 540 usually means a widescreen format (around 960x540) while 576 means PAL resolutions (normally 720x576), therefore 540 is actually better resolution than 576.