Always Visible Clock during videos
#1
** Updated code in 2nd response

Features: (During video play)

- Always visible clock on the bottom left
- Always visible end time just below (smaller)
- Always visible episode number (s x e) or movie title
Feel completely free to alter/ post suggestions or changes/ repost elsewhere etc.

Add to: VideoFullScreen.xml just after <controls>
- Tested on confluence/ v17 / Raspberry Pi  (Make sure you're logged in as root before attempting to edit/ overwrite)
- Tested on confluence/ v17/ Windows 10
- Tested on confluence/ v17/ Android - Samsung S6
- Path (may vary): kodi/addons/skin.confluence/720p
Should work on any skin.
 
Code:
<!-- Start - Created by Crunchward -->
<control type="label" id="1">
<description>Current time</description>
<left>4</left>
<top>690</top>
<width>800</width>
<height>5</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Time]</label>
<animation type="WindowOpen">
<effect type="fade" start="0" end="100" time="1000"/>
<effect type="slide" start="0,13" end="0,0" time="1000"/>
</animation>
<animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
</control>
<control type="label" id="1">
<description>End time and episode count</description>
<left>6</left>
<top>704</top>
<width>800</width>
<height>5</height>
<align>left</align>
<aligny>center</aligny>
<font>font10</font>
<textcolor>grey</textcolor>
<shadowcolor>black</shadowcolor>
<label>[color=white]$INFO[Player.FinishTime][/color][color=grey] Ep:$INFO[VideoPlayer.Season,,x]$INFO[VideoPlayer.Episode][/color]</label>
<animation type="WindowOpen">
<effect type="fade" start="0" end="90" time="2000"/>
<effect type="slide" start="0,13" end="0,0" time="1500"/>
</animation>
<animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
<visible>VideoPlayer.Content(Episodes)</visible>
</control>
<control type="label" id="1">
<description>End time and Movie name</description>
<left>6</left>
<top>704</top>
<width>800</width>
<height>5</height>
<align>left</align>
<aligny>center</aligny>
<font>font10</font>
<textcolor>grey</textcolor>
<shadowcolor>black</shadowcolor>
<label>[color=white]$INFO[Player.FinishTime][/color][color=grey] $INFO[Player.Title][/color]</label>
<animation type="WindowOpen">
<effect type="fade" start="0" end="90" time="2000"/>
<effect type="slide" start="0,13" end="0,0" time="1500"/>
</animation>
<animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
<visible>!VideoPlayer.Content(Episodes)</visible>
</control>
<!-- End - Created by Crunchward -->
Reply
#2
Update:
Added code to display the filename if no season/ Episode number or movie title is scraped. Just add the snippit below to the same file.
Code above updated to reflect this change if you're adding it after this post.
Code:
        <control type="label" id="1">
            <description>End time and File name</description>
            <left>6</left>
            <top>704</top>
            <width>800</width>
            <height>5</height>
            <align>left</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>grey</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>[COLOR=white]$INFO[Player.FinishTime][/COLOR] [COLOR=grey] $INFO[Player.Title][/COLOR]</label>
            <animation type="WindowOpen">
                <effect type="fade" start="0" end="90" time="2000"/>
                <effect type="slide" start="0,13" end="0,0" time="1500"/>
            </animation>
            <animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
            <visible>!VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes)</visible>
        </control>
Reply
#3
I've made a lot of changes for personal reasons, figured I'd share for you guys.

Changelog:
  • Clocks are now centered
  • Clocks now have a subtle dark fade behind them to keep them visible on white/ light content
    • Uses existing resources
Notes:
  • Reset 'left' value to 0 to use the dark fade on the original left aligned clocks
  • Again, as always, I do not need credit. Feel free to edit/ repost/ request changes etc.
Code:
<!-- Start - Created by Crunchward -->
        <control type="image" id="1">
            <description>Clock fade background small</description>
            <visible>VideoPlayer.Content(Episodes)</visible>
            <depth>1</depth>
            <top>684</top>
            <left>580</left>
            <top>692</top>
            <width>120</width>
            <height>40</height>
            <texture border="1">HomeNowPlayingBack.png</texture>
            </control>
        <control type="image" id="1">
            <description>Clock fade background big</description>
            <visible>!VideoPlayer.Content(Episodes)</visible>
            <depth>1</depth>
            <top>684</top>
            <left>500</left>
            <top>692</top>
            <width>280</width>
            <height>40</height>
            <texture border="1">HomeNowPlayingBack.png</texture>
            </control>
        <control type="label" id="1">
            <description>Current time</description>
            <depth>2</depth>
            <left>0</left>
            <top>695</top>
            <width>1280</width>
            <height>5</height>
            <align>center</align>
            <aligny>center</aligny>
            <font>font12</font>
            <textcolor>white</textcolor>
            <shadowcolor>ff000000</shadowcolor>
            <label>$INFO[System.Time]</label>
                    <texture>VolumeIcon.png</texture>
            <animation type="WindowOpen">
                <effect type="fade" start="0" end="100" time="1000"/>
                <effect type="slide" start="0,13" end="0,0" time="1000"/>
            </animation>
            <animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
        </control>
        <control type="label" id="1">
            <description>End time and episode count</description>
            <depth>2</depth>
            <left>0</left>
            <top>709</top>
            <width>1280</width>
            <height>5</height>
            <align>center</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>grey</textcolor>
            <shadowcolor>ff000000</shadowcolor>
            <label>[color=white]$INFO[Player.FinishTime][/color][color=grey]  Ep:$INFO[VideoPlayer.Season,,x]$INFO[VideoPlayer.Episode][/color]</label>
            <animation type="WindowOpen">
                <effect type="fade" start="0" end="90" time="2000"/>
                <effect type="slide" start="0,13" end="0,0" time="1500"/>
            </animation>
            <animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
            <visible>VideoPlayer.Content(Episodes)</visible>
        </control>
        <control type="label" id="1">
            <description>End time and Movie name/ Filename</description>
            <depth>2</depth>
            <left>0</left>
            <top>707</top>
            <width>1280</width>
            <height>5</height>
            <align>center</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>grey</textcolor>
            <shadowcolor>ff000000</shadowcolor>
            <label>[color=white]$INFO[Player.FinishTime][/color] $INFO[Player.Title]</label>
            <animation type="WindowOpen">
                <effect type="fade" start="0" end="90" time="2000"/>
                <effect type="slide" start="0,13" end="0,0" time="1500"/>
            </animation>
            <animation effect="fade" start="100" end="0" time="100">WindowClose</animation>
            <visible>!VideoPlayer.Content(Episodes)</visible>
        </control>
<!-- End - Created by Crunchward -->
Reply

Logout Mark Read Team Forum Stats Members Help
Always Visible Clock during videos0