Switch from 2 differents VideoOSD.xml
#1
Hello folks,

I use the osmc theme on osmc raspberry pi. I have created a modified VideoOSD.xml file and i would like to know if it is possible to switch from one to the other only at the begining of the video ?
I need to switch depending of video file playing. Actually i have duplicated osmc theme with a different VideoOSD.xml so i have to switch between theme before playing video. Is it possible ?

Thanks
Reply
#2
Code:

...
<include condition="VideoPlayer.Content(movies)">VideoOSD1</include>
<include condition="!VideoPlayer.Content(movies)">VideoOSD2</include>
...

and add your content to includes.xml

Code:



For reference

...
<include name="VideoOSD1">
...
</include>
<include name="VideoOSD2">
...
</include>
...

Other available bools:
https://kodi.wiki/view/List_of_boolean_conditions

Or use any other compare/bool methods combined with available info labels
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
Many thanks, I'm not sure to know what condition i could use, is it possible to use playing file extension ?
Reply
#4
As long as you won't tell us in which scenario which OSD should be displayed it's hard to answer
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
sure,

If i play an .mpd file i need to use videoosd1 else videoosd2
Reply
#6
I should probably do something like :

<include condition="String.EndsWith(player.getPlayingFile(), 'mpd')">VideoOSD1</include>
<include condition="!String.EndsWith(player.getPlayingFile(), 'mpd')">VideoOSD1</include>

Correct?
Reply
#7
not working

<include condition="!String.EndsWith(VideoPlayer.Title, 'mpd')">VideoOSD1</include>
<include condition="String.EndsWith(VideoPlayer.Title, 'mpd')">VideoOSD2</include>
Reply
#8
Well no, actually it doesn't work.

Here is what i tried : 

<include condition="!String.EndsWith(Player.Filename, 'mpd')">VideoOSD1</include>
<include condition="String.EndsWith(Player.Filename, 'mpd')">VideoOSD2</include>
Reply
#9
You have to remove the '' for such conditions.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#10
It's working fine, you have been very helpful

thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Switch from 2 differents VideoOSD.xml0