2016-09-13, 00:23
Hello again axbmcuser,
About the repeat and shuffle buttons in Video OSD, I got them working the way I like editing the file VideoOSD.xml, and adding this code:
The result can be seen in this print screen:
As for the info button, I gave it a try, but got nothing... I tried to open the MovieInformation window using ActivateWindow command, but the movie information that displays is a cached one, not the currently playing one (it displays the last one viewed from movie list context menu)... and I searched for a solution but haven't got anything... Apparently it's not something that will be done easily...
I hope you don't mind the code I just posted here, because someone might like these extra buttons in Video OSD and use this code... but if it's a problem, just let me know and I'll remove the code immediately from here...
(I'm no Kodi skinner at all, I'm a programmer and a curious and just searched a bit to do this little changes...)
Thanks again for your hard work
EDIT:
For the Info Button you could use Extended Info script integration - http://forum.kodi.tv/showthread.php?tid=160558
Tested here and it works just fine... I used this code to integrate (inside a button):
About the repeat and shuffle buttons in Video OSD, I got them working the way I like editing the file VideoOSD.xml, and adding this code:
Code:
<control type="group">
<control type="button" id="20013">
<width>54</width>
<height>54</height>
<label>-</label>
<font>-</font>
<texturefocus>osd/buttons/OSDRepeatFO.png</texturefocus>
<texturenofocus>osd/buttons/OSDRepeatNF.png</texturenofocus>
<onclick>PlayerControl(Repeat)</onclick>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="image">
<width>54</width>
<height>54</height>
<texture>osd/buttons/OSDRepeatOneNF.png</texture>
<visible>Playlist.IsRepeatOne</visible>
<visible>!Control.HasFocus(20013)</visible>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="image">
<width>54</width>
<height>54</height>
<texture>osd/buttons/OSDRepeatOneFO.png</texture>
<visible>Playlist.IsRepeatOne</visible>
<visible>Control.HasFocus(20013)</visible>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="image">
<width>54</width>
<height>54</height>
<texture>osd/buttons/OSDRepeatAllNF.png</texture>
<visible>Playlist.IsRepeat</visible>
<visible>!Control.HasFocus(20013)</visible>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="image">
<width>54</width>
<height>54</height>
<texture>osd/buttons/OSDRepeatAllFO.png</texture>
<visible>Playlist.IsRepeat</visible>
<visible>Control.HasFocus(20013)</visible>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="togglebutton" id="20012">
<left>54</left>
<top>0</top>
<width>54</width>
<height>54</height>
<label>-</label>
<texturefocus>osd/buttons/OSDRandomOffFO.png</texturefocus>
<texturenofocus>osd/buttons/OSDRandomOffNF.png</texturenofocus>
<usealttexture>Playlist.IsRandom</usealttexture>
<alttexturefocus>osd/buttons/OSDRandomOnFO.png</alttexturefocus>
<alttexturenofocus>osd/buttons/OSDRandomOnNF.png</alttexturenofocus>
<onclick>PlayerControl(Random)</onclick>
<visible>!VideoPlayer.Content(LiveTV)</visible>
</control>
</control>
As for the info button, I gave it a try, but got nothing... I tried to open the MovieInformation window using ActivateWindow command, but the movie information that displays is a cached one, not the currently playing one (it displays the last one viewed from movie list context menu)... and I searched for a solution but haven't got anything... Apparently it's not something that will be done easily...
I hope you don't mind the code I just posted here, because someone might like these extra buttons in Video OSD and use this code... but if it's a problem, just let me know and I'll remove the code immediately from here...
(I'm no Kodi skinner at all, I'm a programmer and a curious and just searched a bit to do this little changes...)
Thanks again for your hard work
EDIT:
For the Info Button you could use Extended Info script integration - http://forum.kodi.tv/showthread.php?tid=160558
Tested here and it works just fine... I used this code to integrate (inside a button):
Code:
<onclick condition="!Player.Paused">Pause</onclick>
<onclick condition="VideoPlayer.Content(movies)">RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[VideoPlayer.Title])</onclick>
<onclick condition="VideoPlayer.Content(episodes)">RunScript(script.extendedinfo,info=extendedtvinfo,name=$INFO[VideoPlayer.TvShowTitle])</onclick>