Solved Clock on fullscreen (any/all media playing)
#1
Anyone have an idea what the current method might be to display the time (and date, like what is displayed on the home screen) when any/all media is playing?

Years ago I followed this ( https://sandalov.org/blog/2066/ ) which worked great until I updated...

Following this ( https://forum.kodi.tv/showthread.php?tid=256160 ) doesn't seem to accomplish the task.

3 hours of beating my head against the wall and all I've been able to accomplish is moving the date/time around on the home screen but not getting anything to display when playing movies.

Feeling like I'm getting nowhere, please help!
Reply
#2
If you want it exactly as it appears on Home then immediately after

Code:
<controls>

put

xml:
<control type="group" id="1">
<visible>!Player.ShowInfo + !Window.IsActive(VideoOSD)</visible>
<control type="label" id="1">
<description>time label</description>
<right>20</right>
<top>5</top>
<width>200</width>
<height>30</height>
<align>right</align>
<aligny>center</aligny>
<font>font28_title</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Time]</label>
</control>
<control type="label" id="1">
<description>Date label</description>
<right>20</right>
<top>35</top>
<width>300</width>
<height>15</height>
<align>right</align>
<aligny>center</aligny>
<font>font10</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Date]</label>
</control>
</control>
gives

Image

if you something a bit more subtle

xml:
<control type="label" id="1">
<description>Clock label</description>
<left>450</left>
<top>5</top>
<width>800</width>
<height>25</height>
<align>right</align>
<font>font13</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Time] $INFO[System.Date]</label>
<visible>!Player.ShowInfo + !Window.IsActive(VideoOSD)</visible>
</control>

gives

Image

or alternatively

xml:
<control type="label" id="1">
<description>Clock label</description>
<left>450</left>
<top>5</top>
<width>800</width>
<height>25</height>
<align>right</align>
<font>font13</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Time][CR]$INFO[System.Date]</label>
<visible>!Player.ShowInfo + !Window.IsActive(VideoOSD)</visible>
</control>

gives

Image

All the above code is for fullscreen video while Info Bar or Menu OSD is not shown, if you want it in those places also then that's more work.
Reply
#3
Thank you very much! - My hangup appears to have been the conditional visibility.

The wikis I found ( https://kodi.wiki/view/List_of_boolean_c...ons#Player ) and ( https://kodi.wiki/view/Conditional_visibility ) didn't quite get me there and I couldn't find any examples to work from.

This is perfect. - Again, thank you so much!  My OCD 9 yr old who has to sleep with a TV is most grateful.

Couldn't find the 'edit' option on my original to mark this solved so I'll just slap the 'donate' button instead.  Smile
Reply
#4
No problem, and as you've a low post count edit won't be available to you yet (anti-spam measure) so I've done it for you.
Reply
#5
(2019-08-31, 17:28)jjd-uk Wrote: No problem, and as you've a low post count edit won't be available to you yet (anti-spam measure) so I've done it for you.

Thanks. - BTW, it looked like the donation went through here @ KODI's website (using CC) but I've seen nothing to confirm the transaction actually processed.  My bank alerts on anything in/out over $25 USD within a few minutes of auth and typically its fully completed in less than 24 hrs. -- I slapped it again just now and again, no alert, no pre-auth holds shown on my acct, nothing except the green check marks from Stripe..
Reply

Logout Mark Read Team Forum Stats Members Help
Clock on fullscreen (any/all media playing)0