<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">100</defaultcontrol>
    <onload condition="!Player.PauseEnabled">SetFocus(603)</onload>
	<onload condition="Player.PauseEnabled">SetFocus(602)</onload>
	<onload>Dialog.Close(fullscreeninfo)</onload>
	<onunload>ClearProperty(PopupMenuActive,Home)</onunload>
	<onunload>ClearProperty(PopupMenu2Active,Home)</onunload>
	<include>OSDFade</include>
	<controls>

	    <!-- Hidden List to Show Video Info Dialog on info button, uses service.library.data.provider -->
		<include condition="Skin.HasSetting(InfoOpensVideoInfo) + [VideoPlayer.Content(movies) | VideoPlayer.Content(episodes)] + !String.IsEmpty(VideoPlayer.DBID) + System.AddonIsEnabled(service.library.data.provider)">VideoOSDInfoButtonList</include>

		<!-- Hidden List to get tv show id needed for episodes list button, uses script.embuary.helper -->
		<include condition="VideoPlayer.Content(episodes) + !String.IsEmpty(VideoPlayer.DBID) + System.AddonIsEnabled(script.embuary.helper)">EHTVShowDetailsList</include>


		<control type="button" id="99220">
            <top>-1000</top>
            <left>-1000</left>
            <width>1</width>
            <height>1</height>
			<texturefocus />
            <texturenofocus />
            <font />
			<visible allowhiddenfocus="true">False</visible>
            <onfocus>SetFocus(603)</onfocus>
            <onfocus condition="Window.IsVisible(videoosd)">Action(Close)</onfocus>
        </control>

		<control type="slider">
			<left>30</left>
			<include condition="Skin.HasSetting(enable.bottomseekbar)">LowerOSDSlider</include>
			<include condition="!Skin.HasSetting(enable.bottomseekbar)">RegularOSDSlider</include>
			<width>1570</width>
			<height>36</height>
			<onup>noop</onup>
			<ondown>100</ondown>
			<info>Player.Progress</info>
			<action>seek</action>
			<texturesliderbar/>
            <textureslidernib/>
            <textureslidernibfocus/>
			<visible>Player.SeekEnabled + !$EXP[showCompactSeekBar] + !Skin.HasSetting(UseUltraCompactOSD) + !VideoPlayer.Content(LiveTV)</visible>
		</control>

		<control type="slider">
			<left>30</left>
			<include>LowerOSDSlider</include>
			<width>1570</width>
			<height>36</height>
			<onup>noop</onup>
			<ondown>100</ondown>
			<info>Player.Progress</info>
			<action>seek</action>
			<texturesliderbar/>
            <textureslidernib/>
            <textureslidernibfocus/>
			<visible>Player.SeekEnabled + $EXP[showCompactSeekBar] + !Skin.HasSetting(UseUltraCompactOSD) + !VideoPlayer.Content(LiveTV)</visible>
		</control>

		<control type="slider">
			<left>30</left>
			<include condition="Skin.HasSetting(enable.bottomseekbar)">LowerOSDSlider</include>
			<include condition="!Skin.HasSetting(enable.bottomseekbar)">RegularOSDSlider</include>
			<width>1570</width>
			<height>36</height>
			<onup>noop</onup>
			<ondown>100</ondown>
			<info>PVR.TimeshiftProgressPlayPos</info>
			<action>pvr.seek</action>
			<texturesliderbar/>
            <textureslidernib/>
            <textureslidernibfocus/>
			<visible>Player.SeekEnabled + !$EXP[showCompactSeekBar] + !Skin.HasSetting(UseUltraCompactOSD) + VideoPlayer.Content(LiveTV)</visible>
		</control>

		<control type="slider">
			<left>30</left>
			<include>LowerOSDSlider</include>
			<width>1570</width>
			<height>36</height>
			<onup>noop</onup>
			<ondown>100</ondown>
			<info>PVR.TimeshiftProgressPlayPos</info>
			<action>pvr.seek</action>
			<texturesliderbar/>
            <textureslidernib/>
            <textureslidernibfocus/>
			<visible>Player.SeekEnabled + $EXP[showCompactSeekBar] + !Skin.HasSetting(UseUltraCompactOSD) + VideoPlayer.Content(LiveTV)</visible>
		</control>

		<control type="group">
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(PVRChannelGuide) | Window.IsVisible(playerprocessinfo) | Window.IsActive(osdcmssettings)]</visible>

			<include condition="!Skin.HasSetting(UseCompactOSD) + !Skin.HasSetting(UseUltraCompactOSD)">OSDControls</include>

			<include condition="Skin.HasSetting(UseCompactOSD)" content="OSDControls">
			    <param name="isStandard">false</param>
				<param name="isCompact">true</param>
				<param name="group1top">0</param>
				<param name="group1left">280</param>
		        <param name="group1width">440</param>
				<param name="group1align">left</param>
		        <param name="group2top">0</param>
				<param name="group2left">860</param>
		        <param name="group2width">440</param>
				<param name="group2align">right</param>
		        <param name="popupleft">840</param>
			</include>

			<include condition="Skin.HasSetting(UseUltraCompactOSD)" content="OSDControls">
			    <param name="isStandard">false</param>
				<param name="isUltraCompact">true</param>
		        <param name="group1top">84</param>
		        <param name="group1left">0</param>
		        <param name="group1width">460</param>
		        <param name="group1align">center</param>
		        <param name="group2top">0</param>
		        <param name="group2left">0</param>
		        <param name="group2width">460</param>
		        <param name="group2align">center</param>
				<param name="popupleft">100</param>
			</include>
		</control>

	</controls>
</window>
