dont show seek bar when seeing or puased

This commit is contained in:
faush01
2019-04-08 13:29:43 +10:00
parent 83e86bf7da
commit 2fba26ca80
4 changed files with 258 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.embycon"
name="EmbyCon"
version="1.9.2"
version="1.9.3"
provider-name="Team B">
<requires>
<import addon="xbmc.python" version="2.25.0"/>

View File

@@ -286,7 +286,7 @@ def getWidgetContent(handle, params):
xbmcplugin.setContent(handle, 'episodes')
items_url = ('{server}/emby/Users/{userid}/Items/Latest' +
'?GroupItems=true' +
'&Limit={ItemLimit}' +
'&Limit=45' +
'&Recursive=true' +
'&SortBy=DateCreated' +
'&SortOrder=Descending' +

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<visible>Player.Seeking | Player.DisplayAfterSeek | Player.Forwarding | Player.Rewinding | Player.ShowInfo | Player.ShowTime | Window.IsActive(videoosd) | Window.IsActive(musicosd) | Window.IsActive(playerprocessinfo) | !String.IsEmpty(Player.SeekNumeric) | !String.IsEmpty(PVR.ChannelNumberInput)</visible>
<visible>Player.Forwarding | Player.Rewinding | Player.ShowInfo | Player.ShowTime | Window.IsActive(videoosd) | Window.IsActive(musicosd) | Window.IsActive(playerprocessinfo) | !String.IsEmpty(Player.SeekNumeric) | !String.IsEmpty(PVR.ChannelNumberInput)</visible>
<visible>!Player.Paused + [![Window.IsActive(sliderdialog) | Window.IsActive(pvrosdchannels)]]</visible>
<visible>!Player.Paused + [Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation)]</visible>
<include>Animation_BottomSlide</include>

View File

@@ -0,0 +1,255 @@
<?xml version="1.0" encoding="utf-8"?>
<window>
<onload condition="!Player.PauseEnabled">SetFocus(603)</onload>
<defaultcontrol always="true">602</defaultcontrol>
<include>Animation_BottomSlide</include>
<depth>DepthOSD</depth>
<controls>
<control type="button">
<description>background close area</description>
<left>0</left>
<top>0</top>
<width>100%</width>
<bottom>280</bottom>
<texturefocus />
<texturenofocus />
<onclick>Action(close)</onclick>
</control>
<control type="group">
<bottom>0</bottom>
<height>180</height>
<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(osdaudiosettings) | Window.IsVisible(osdvideosettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(playerprocessinfo) | Window.IsVisible(osdcmssettings) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(pvrchannelguide)]</visible>
<animation effect="fade" time="200">VisibleChange</animation>
<control type="label">
<animation effect="slide" end="0,-20" time="150" condition="VideoPlayer.Content(LiveTV)">conditional</animation>
<right>20</right>
<top>0</top>
<align>right</align>
<aligny>center</aligny>
<width>1000</width>
<height>50</height>
<label>$VAR[VideoOSDHelpTextVar]</label>
<visible>!Player.ShowInfo</visible>
</control>
<control type="group" id="200">
<control type="grouplist" id="201">
<left>20</left>
<top>90</top>
<width>100%</width>
<height>135</height>
<itemgap>20</itemgap>
<scrolltime tween="sine">200</scrolltime>
<orientation>horizontal</orientation>
<onup>87</onup>
<ondown>noop</ondown>
<onleft>70043</onleft>
<onright>70040</onright>
<control type="radiobutton" id="600">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/previous.png"/>
</include>
<onclick>PlayerControl(Previous)</onclick>
<visible>Player.ChapterCount | Integer.IsGreater(Playlist.Length(video),1) | Player.SeekEnabled</visible>
</control>
<control type="radiobutton" id="602">
<textureradioonfocus colordiffuse="white">osd/fullscreen/buttons/play.png</textureradioonfocus>
<textureradioonnofocus>osd/fullscreen/buttons/play.png</textureradioonnofocus>
<textureradioofffocus colordiffuse="white">osd/fullscreen/buttons/pause.png</textureradioofffocus>
<textureradiooffnofocus>osd/fullscreen/buttons/pause.png</textureradiooffnofocus>
<texturefocus colordiffuse="button_focus">osd/fullscreen/buttons/button-fo.png</texturefocus>
<width>76</width>
<animation center="38,38" effect="zoom" end="100" reversible="false" start="95" time="480" tween="back">Focus</animation>
<height>76</height>
<radiowidth>74</radiowidth>
<radioheight>74</radioheight>
<font></font>
<texturenofocus />
<radioposx>1</radioposx>
<radioposy>0</radioposy>
<selected>Player.Paused</selected>
<onclick>PlayerControl(Play)</onclick>
<visible>Player.PauseEnabled</visible>
</control>
<control type="radiobutton" id="603">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/stop.png"/>
</include>
<onclick>PlayerControl(Stop)</onclick>
</control>
<control type="radiobutton" id="605">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/next.png"/>
</include>
<onclick>PlayerControl(Next)</onclick>
<visible>Player.ChapterCount | Integer.IsGreater(Playlist.Length(video),1) | [VideoPlayer.Content(LiveTV) + Player.SeekEnabled]</visible>
</control>
<control type="radiobutton" id="804">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/home.png"/>
</include>
<onclick>PlayerControl(ShowVideoMenu)</onclick>
<visible>VideoPlayer.HasMenu</visible>
</control>
<control type="radiobutton" id="606">
<textureradioonfocus colordiffuse="white">osd/fullscreen/buttons/record-white.png</textureradioonfocus>
<textureradioonnofocus>osd/fullscreen/buttons/record-white.png</textureradioonnofocus>
<textureradioofffocus colordiffuse="white">osd/fullscreen/buttons/record.png</textureradioofffocus>
<textureradiooffnofocus>osd/fullscreen/buttons/record.png</textureradiooffnofocus>
<texturefocus colordiffuse="button_focus">osd/fullscreen/buttons/button-fo.png</texturefocus>
<width>76</width>
<animation center="38,38" effect="zoom" end="100" reversible="false" start="95" time="480" tween="back">Focus</animation>
<height>76</height>
<radiowidth>74</radiowidth>
<radioheight>74</radioheight>
<font></font>
<texturenofocus />
<radioposx>1</radioposx>
<radioposy>0</radioposy>
<selected>!PVR.IsRecordingPlayingChannel</selected>
<onclick>PVR.ToggleRecordPlayingChannel</onclick>
<visible>PVR.CanRecordPlayingChannel</visible>
<visible>VideoPlayer.Content(livetv)</visible>
</control>
</control>
<control type="grouplist" id="202">
<right>50</right>
<top>90</top>
<width>1800</width>
<height>135</height>
<align>right</align>
<itemgap>20</itemgap>
<scrolltime tween="sine">200</scrolltime>
<orientation>horizontal</orientation>
<onup>87</onup>
<ondown condition="Control.HasFocus(70043)">11104</ondown>
<ondown condition="Control.HasFocus(704)">12104</ondown>
<ondown condition="Control.HasFocus(255)">13103</ondown>
<onleft>606</onleft>
<onright>600</onright>
<control type="radiobutton" id="70040">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/information.png"/>
</include>
<onclick>Info</onclick>
</control>
<control type="radiobutton" id="70041">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/channels.png"/>
</include>
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(PVROSDChannels)</onclick>
<visible>VideoPlayer.Content(livetv)</visible>
</control>
<control type="radiobutton" id="70042">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/guide.png"/>
</include>
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(pvrchannelguide)</onclick>
<visible>VideoPlayer.Content(livetv) + VideoPlayer.HasEPG</visible>
</control>
<control type="radiobutton" id="700">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/bookmarks.png"/>
</include>
<onclick>ActivateWindow(videobookmarks)</onclick>
<visible>!VideoPlayer.Content(livetv)</visible>
</control>
<control type="radiobutton" id="703">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/teletext.png"/>
</include>
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(Teletext)</onclick>
<visible>VideoPlayer.HasTeletext</visible>
</control>
<control type="radiobutton" id="704">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/settings-subtitle.png"/>
</include>
<onclick>ActivateWindow(osdsubtitlesettings)</onclick>
<visible>!VideoPlayer.Content(LiveTV) | VideoPlayer.HasSubtitles</visible>
</control>
<control type="radiobutton" id="255">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/stereoscopic.png"/>
</include>
<visible>VideoPlayer.IsStereoscopic</visible>
<onclick>SetProperty(settingslist_content,3d,home)</onclick>
<onclick>SetProperty(settingslist_header,$LOCALIZE[36501],home)</onclick>
<onclick>ActivateWindow(1101)</onclick>
</control>
<control type="radiobutton" id="70043">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/settings.png"/>
</include>
<onclick>SetProperty(settingslist_content,osd,home)</onclick>
<onclick>SetProperty(settingslist_header,$LOCALIZE[5],home)</onclick>
<onclick>ActivateWindow(1101)</onclick>
</control>
</control>
</control>
<control type="group" id="6000">
<top>60</top>
<visible>Player.SeekEnabled + !Player.Paused</visible>
<control type="button" id="87">
<include>HiddenObject</include>
<onup>200</onup>
<onunfocus condition="Player.Forwarding | Player.Rewinding">PlayerControl(Play)</onunfocus>
<ondown>200</ondown>
<onright>StepForward</onright>
<onleft>StepBack</onleft>
<onclick condition="Player.Forwarding | Player.Rewinding">PlayerControl(Play)</onclick>
</control>
<control type="slider">
<top>-5</top>
<left>0</left>
<width>100%</width>
<height>26</height>
<texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar>
<textureslidernib>osd/progress/nub_leftright.png</textureslidernib>
<textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus>
<info>Player.Progress</info>
<action>seek</action>
<visible>!Control.HasFocus(87) + !VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="slider">
<top>-5</top>
<left>0</left>
<width>100%</width>
<height>26</height>
<texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar>
<textureslidernib colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernib>
<textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus>
<info>Player.Progress</info>
<action>seek</action>
<visible>Control.HasFocus(87) + !VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="slider">
<top>-5</top>
<left>0</left>
<width>100%</width>
<height>26</height>
<texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar>
<textureslidernib>osd/progress/nub_leftright.png</textureslidernib>
<textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus>
<info>PVR.TimeshiftProgressPlayPos</info>
<action>pvr.seek</action>
<visible>!Control.HasFocus(87) + VideoPlayer.Content(LiveTV)</visible>
</control>
<control type="slider">
<top>-5</top>
<left>0</left>
<width>100%</width>
<height>26</height>
<texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar>
<textureslidernib colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernib>
<textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus>
<info>PVR.TimeshiftProgressPlayPos</info>
<action>pvr.seek</action>
<visible>Control.HasFocus(87) + VideoPlayer.Content(LiveTV)</visible>
</control>
</control>
</control>
</controls>
</window>