Always display remaining time when playing video - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125) +---- Thread: Always display remaining time when playing video (/showthread.php?tid=256160) |
Always display remaining time when playing video - JethroCl - 2016-01-12 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? RE: Always display remaining time when playing video - bossanova808 - 2016-01-13 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:mms)]</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 RE: Always display remaining time when playing video - JethroCl - 2016-01-13 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. RE: Always display remaining time when playing video - ioncype - 2016-01-14 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_introduction#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. Code: <control type="label" id="1"> RE: Always display remaining time when playing video - JethroCl - 2016-01-15 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! RE: Always display remaining time when playing video - ioncype - 2016-01-16 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". RE: Always display remaining time when playing video - JethroCl - 2016-01-16 (2016-01-16, 01:37)ioncype Wrote: You can use any ARGB color. 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 |