Posts: 35
Joined: Aug 2016
Reputation:
0
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
Posts: 35
Joined: Aug 2016
Reputation:
0
Many thanks, I'm not sure to know what condition i could use, is it possible to use playing file extension ?
Posts: 3,532
Joined: Oct 2013
Reputation:
357
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
Posts: 35
Joined: Aug 2016
Reputation:
0
sure,
If i play an .mpd file i need to use videoosd1 else videoosd2
Posts: 35
Joined: Aug 2016
Reputation:
0
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?
Posts: 35
Joined: Aug 2016
Reputation:
0
2018-03-14, 22:42
(This post was last modified: 2018-03-14, 23:23 by neosqualls.)
not working
<include condition="!String.EndsWith(VideoPlayer.Title, 'mpd')">VideoOSD1</include>
<include condition="String.EndsWith(VideoPlayer.Title, 'mpd')">VideoOSD2</include>
Posts: 35
Joined: Aug 2016
Reputation:
0
2018-03-14, 23:21
(This post was last modified: 2018-03-14, 23:23 by neosqualls.)
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>
Posts: 3,532
Joined: Oct 2013
Reputation:
357
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
Posts: 35
Joined: Aug 2016
Reputation:
0
It's working fine, you have been very helpful
thanks