Always display remaining time when playing video
#1
Hello,

I'm wondering if it is possible to edit an .xml file so Kodi always shows the time remaining in the video that is playing.
I tried editing the VideoOverlay.xml file inside skin.confluence/720p/ but no succes...

now this file looks like this:

<window>
<defaultcontrol>-</defaultcontrol>
<controls>
<control type="label" id="1">
<description>Clock label</description>
<left>450</left>
<top>5</top>
<width>800</width>
<height>25</height>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[VideoPlayer.TimeRemaining]</label>
</control>
</controls>
</window>

Can somebody help me out, please?
Reply
#2
VideoFullScreen.xml

<control type="label" id="1">
<visible>!VideoPlayer.Content(LiveTV)</visible>
<left>820</left>
<top>0</top>
<width>100</width>
<height>40</height>
<font>font13</font>
<align>right</align>
<aligny>center</aligny>
<label>-$INFO[Player.TimeRemaining(hh:mmConfuseds)]</label>
</control>

...works for when you have the info dialogue up but do you mean literally overlaid on the playing video at all time?

Personally I use external hardware for this - http://kodi.wiki/view/Add-on:XSqueezeDisplay
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#3
Thanks for the reply.

I'd rather not spend money on this issue though.
I can't imagine it would be that hard for Kodi to display some information overlaying the current playing video, small and subtle.
I would like to see that info always, because now I always have to grab the remote to turn the info on, and afterwards turn it off.

thanks anyway.
Reply
#4
It works for me if you put it within the <controls> section in VideoFullScreen.xml, not within the <control type="group" id="1"> sections. I don't have any VideoOverlay.xml (Jarvis beta 4). If you want to add it to multiple windows I'd add the code to includes.xml and then call for it in the windows you want it to show up.
http://kodi.wiki/view/Skin_development_i...n#Includes

You can control when it's visible by adding more Conditional Visibility conditions.
E.g. only when fullscreen (i.e. hide when Info/OSD is shown): VideoPlayer.IsFullscreen

I moved it to the top right, just below the clock.
Maybe use time remaining without seconds? I.e. $INFO[Player.TimeRemaining(hh:mm)]
Also, I'd change the color to grey. Then again I'd never add something like this to my GUI. Smile

Code:
<control type="label" id="1">
    <description>Time Remaining</description>
    <visible>!VideoPlayer.Content(LiveTV)</visible>
    <right>30</right>
    <top>20</top>
    <width>100</width>
    <height>40</height>
    <font>font13</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <align>right</align>
    <aligny>center</aligny>
    <label>$INFO[Player.TimeRemaining]</label>
</control>
Reply
#5
Thanks!

The info now shows up in a subtle way, although I'm having some problems with the picking of the colors (grey seems to be quite bright white), but I will get to that when I have more time.
Thank you for leading me to the very useful wiki of Kodi!
Reply
#6
You can use any ARGB color.
Here's a RGBA/ARGB converter: http://beijingyoung.com/articles/rgba-argb-converter/
A nice color picker, let's you lighten/darken X%: http://www.hexcolortool.com/

A bit darker grey: FF636363
10% darker than first: FF4A4A4A
20% darker than first: FF303030

Or now I see you can use grey2 or grey3. Grey3 is about as dark as "20% darker".
Reply
#7
(2016-01-16, 01:37)ioncype Wrote: You can use any ARGB color.
Here's a RGBA/ARGB converter: http://beijingyoung.com/articles/rgba-argb-converter/
A nice color picker, let's you lighten/darken X%: http://www.hexcolortool.com/

A bit darker grey: FF636363
10% darker than first: FF4A4A4A
20% darker than first: FF303030

Or now I see you can use grey2 or grey3. Grey3 is about as dark as "20% darker".

Thanks for the tips!
I've already been playing around with ARGB values, but couldn't find a combination of text and shadow colors that fits my needs.
Will try something in the next few days.

As far as I get it right ARGB colors are in AARRGGBB hex format, where A, R, G and B can have values from 00 (dec 0) to FF (dec 255).
A stands for Alpha (transparent/opaque)
R stands for Red
G stands for Green
B stands for Blue

I tried to get a dark grey text (FF404040) but that looks more white to me, and when I jumped to FF202020 it was almost black... weird.
Will try to play with the alpha value...

BTW: this is a awesome community, so much help I get from you guys/girls Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Always display remaining time when playing video0