2019-10-24, 19:47
i am currently using:
<!--Video Resolution Label-->
<variable name="PlayerVideoResolution">
<value condition="String.IsEqual(VideoPlayer.VideoResolution,1080)">1080P</value>
<value condition="[String.Contains(Player.Filenameandpath,.HDR.) + String.IsEqual(VideoPlayer.VideoResolution,4K)]">4K HDR10</value>
<!--value condition="[String.Contains(Player.Filenameandpath,.HDR10+.) + String.IsEqual(VideoPlayer.VideoResolution,4K)]">4K HDR10+</value-->
<value>$INFO[VideoPlayer.VideoResolution]</value>
</variable>
to set the resolution label in the VideoFullScreen.xml, i am trying to add a label for 4K HDR10+, see the commented out value above in red. in the current form above, 1080P and HDR10 work perfectly, but if i uncomment the HDR10+ line both HDR10 and HDR10+ stop working and just display 4K.
is it possible to have both in a single variable? is my syntax incorrect?
<!--Video Resolution Label-->
<variable name="PlayerVideoResolution">
<value condition="String.IsEqual(VideoPlayer.VideoResolution,1080)">1080P</value>
<value condition="[String.Contains(Player.Filenameandpath,.HDR.) + String.IsEqual(VideoPlayer.VideoResolution,4K)]">4K HDR10</value>
<!--value condition="[String.Contains(Player.Filenameandpath,.HDR10+.) + String.IsEqual(VideoPlayer.VideoResolution,4K)]">4K HDR10+</value-->
<value>$INFO[VideoPlayer.VideoResolution]</value>
</variable>
to set the resolution label in the VideoFullScreen.xml, i am trying to add a label for 4K HDR10+, see the commented out value above in red. in the current form above, 1080P and HDR10 work perfectly, but if i uncomment the HDR10+ line both HDR10 and HDR10+ stop working and just display 4K.
is it possible to have both in a single variable? is my syntax incorrect?