<?xml version="1.0" encoding="utf-8"?>
<window>
	<onload>Dialog.Close(fullscreeninfo)</onload>
	<defaultcontrol always="true">603</defaultcontrol>
	<onload condition="VideoPlayer.Content(livetv) + !PVR.CanRecordPlayingChannel">SetFocus(604)</onload>
	<include>PropertyIncludes</include>
	<controls>
		<!--Player Controls-->
		<control type="group" id="1">
			<visible>!Window.IsVisible(sliderdialog) + !Window.IsVisible(shutdownmenu)</visible>
			<bottom>10</bottom>
			<control type="grouplist" id="600">
				<orientation>horizontal</orientation>
				<height>50</height>
				<bottom>10</bottom>
				<left>220</left>
				<right>20</right>
				<itemgap>5</itemgap>
				<onright>614</onright>
				<onleft>noop</onleft>
				<control type="button" id="601">
					<include content="PlayerButtons">
						<param name="type" value="previous"/>
					</include>
					<onclick>PlayerControl(Previous)</onclick>
					<visible>Player.ChapterCount | Integer.IsGreater(Playlist.Length(video),1) | Integer.IsGreater(Playlist.Length(music),1) | Player.SeekEnabled</visible>
				</control>
				<control type="button" id="602">
					<include content="PlayerButtons">
						<param name="type" value="rewind"/>
					</include>
					<onclick>PlayerControl(Rewind)</onclick>
					<visible>Player.SeekEnabled</visible>
				</control>
				<control type="togglebutton" id="603">
					<include content="PlayerButtons">
						<param name="type" value="play"/>
						<param name="alt" value="pause"/>
					</include>
					<selected>!Player.Paused + !Player.Forwarding + !Player.Rewinding + !Player.Seeking</selected>
					<onclick condition="Player.Paused">close</onclick>
					<onclick>PlayerControl(Play)</onclick>
					<visible>!VideoPlayer.Content(livetv) | PVR.CanRecordPlayingChannel</visible>
				</control>
				<control type="button" id="604">
					<include content="PlayerButtons">
						<param name="type" value="stop"/>
					</include>
					<onclick>PlayerControl(Stop)</onclick>
				</control>
				<control type="button" id="605">
					<include content="PlayerButtons">
						<param name="type" value="forward"/>
					</include>
					<onclick>PlayerControl(Forward)</onclick>
					<visible>Player.SeekEnabled</visible>
				</control>
				<control type="button" id="606">
					<include content="PlayerButtons">
						<param name="type" value="next"/>
					</include>
					<onclick>PlayerControl(Next)</onclick>
					<visible>Player.ChapterCount | Integer.IsGreater(Playlist.Length(video),1) | Integer.IsGreater(Playlist.Length(music),1) | Player.SeekEnabled</visible>
				</control>
				<control type="button" id="607">
					<colordiffuse>$VAR[PlayerRecordIconColor]</colordiffuse>
					<include content="PlayerButtons">
						<param name="type" value="rec"/>
					</include>
					<onclick>PVR.ToggleRecordPlayingChannel</onclick>
					<selected>PVR.IsRecordingPlayingChannel</selected>
					<visible>PVR.CanRecordPlayingChannel</visible>
					<visible>VideoPlayer.Content(livetv)</visible>
				</control>
			</control>
			<control type="grouplist" id="650">
				<orientation>horizontal</orientation>
				<align>right</align>
				<height>50</height>
				<bottom>10</bottom>
				<right>5</right>
				<itemgap>5</itemgap>
				<onleft>607</onleft>
				<onright>noop</onright>
				<control type="button" id="614">
					<include content="PlayerButtons">
						<param name="type" value="audio"/>
					</include>
					<onclick>action(AudioNextLanguage)</onclick>
					<visible>!String.IsEmpty(Window(home).Property(EmbuaryPlayerAudioTracks))</visible>
					<visible>!String.IsEmpty(VideoPlayer.AudioLanguage)</visible>
					<visible>!VideoPlayer.Content(musicvideos) + !$EXP[HideVideoOSD]</visible>
				</control>
				<control type="button" id="613">
					<include content="PlayerButtons">
						<param name="type" value="cc"/>
					</include>
					<onclick>ActivateWindow(osdsubtitlesettings)</onclick>
					<visible>!VideoPlayer.Content(musicvideos) + !$EXP[HideVideoOSD]</visible>
				</control>
				<control type="button" id="608">
					<include content="PlayerButtons">
						<param name="type" value="info"/>
					</include>
					<onclick>close</onclick>
					<onclick>ActivateWindow(fullscreeninfo)</onclick>
					<visible>!VideoPlayer.Content(livetv) | [VideoPlayer.Content(livetv) + VideoPlayer.HasEpg]</visible>
					<visible>!VideoPlayer.Content(musicvideos) + !$EXP[HideVideoOSD]</visible>
				</control>
				<control type="button" id="609">
					<include content="PlayerButtons">
						<param name="type" value="menu"/>
					</include>
					<onclick condition="VideoPlayer.HasMenu">PlayerControl(ShowVideoMenu)</onclick>
					<onclick condition="VideoPlayer.Content(livetv)">SetFocus(800)</onclick>
					<visible>VideoPlayer.HasMenu | VideoPlayer.Content(livetv)</visible>
				</control>
				<control type="button" id="610">
					<include content="PlayerButtons">
						<param name="type" value="bookmark"/>
					</include>
					<onclick>close</onclick>
					<onclick>ActivateWindow(videobookmarks)</onclick>
					<visible>!VideoPlayer.Content(livetv) + !VideoPlayer.Content(musicvideos) + !$EXP[HideVideoOSD]</visible>
				</control>
				<control type="button" id="611">
					<include content="PlayerButtons">
						<param name="type" value="playlist"/>
					</include>
					<onclick>close</onclick>
					<onclick condition="Integer.IsGreater(Playlist.Length(video),1)">ActivateWindow(videoplaylist)</onclick>
					<onclick condition="!Integer.IsGreater(Playlist.Length(video),1) + Integer.IsGreater(Playlist.Length(music),1)">ActivateWindow(musicplaylist)</onclick>
					<visible>!VideoPlayer.Content(livetv) + [Integer.IsGreater(Playlist.Length(video),1) | Integer.IsGreater(Playlist.Length(music),1)]</visible>
				</control>
				<control type="button" id="612">
					<include content="PlayerButtons">
						<param name="type" value="config"/>
					</include>
					<onclick>SetFocus(700)</onclick>
				</control>
				<control type="label">
					<description>Spacer</description>
					<width>10</width>
				</control>
			</control>
		</control>
		<!-- Diffuse -->
		<include content="DiffuseMask">
			<param name="visible">[ControlGroup(700).HasFocus | ControlGroup(800).HasFocus | ControlGroup(900).HasFocus] + !Window.IsVisible(sliderdialog)</param>
		</include>
		<!-- Menu -->
		<control type="group">
			<visible>ControlGroup(700).HasFocus + !Window.IsVisible(DialogSettings.xml) + !Window.IsVisible(playerprocessinfo) + !Window.IsVisible(selectdialog)</visible>
			<include>Visible_PopupOpenClose</include>
			<centerleft>50%</centerleft>
			<width>500</width>
			<centertop>50%</centertop>
			<height>982</height>
			<control type="grouplist" id="700">
				<orientation>vertical</orientation>
				<height>auto</height>
				<align>center</align>
				<itemgap>0</itemgap>
				<onright>close</onright>
				<onleft>close</onleft>
				<onback>612</onback>
				<usecontrolcoords>true</usecontrolcoords>
				<control type="image">
					<width>100%</width>
					<height>61</height>
					<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/top.png</texture>
				</control>
				<control type="button" id="706">
					<include content="ContextButton"/>
					<label>$LOCALIZE[169]</label>
					<onclick>PlayerResolutionSelect</onclick>
					<visible>Player.HasResolutions</visible>
				</control>
				<control type="button" id="701">
					<include content="ContextButton"/>
					<label>$LOCALIZE[13395]</label>
					<onclick>ActivateWindow(osdvideosettings)</onclick>
				</control>
				<control type="button" id="702">
					<include content="ContextButton"/>
					<label>$LOCALIZE[31039]</label>
					<onclick>ActivateWindow(osdaudiosettings)</onclick>
				</control>
				<control type="radiobutton" id="703">
					<include content="ContextButton"/>
					<label>$LOCALIZE[590]</label>
					<selected>Playlist.IsRandom</selected>
					<onclick>PlayerControl(random)</onclick>
					<visible>Integer.IsGreater(Playlist.Length(video),1)</visible>
				</control>
				<control type="button" id="704">
					<include content="ContextButton"/>
					<label>$LOCALIZE[486]</label>
					<label2>$VAR[PlaylistRepeatButtonLabel]</label2>
					<onclick>PlayerControl(Repeat)</onclick>
					<visible>Integer.IsGreater(Playlist.Length(video),1)</visible>
				</control>
				<control type="button" id="705">
					<include content="ContextButton"/>
					<label>$LOCALIZE[31041]</label>
					<onclick>ActivateWindow(playerprocessinfo)</onclick>
				</control>
				<control type="image">
					<width>100%</width>
					<height>61</height>
					<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/bottom.png</texture>
				</control>
			</control>
		</control>
		<control type="group">
			<visible>ControlGroup(800).HasFocus + !Window.IsVisible(DialogSettings.xml) + !Window.IsVisible(playerprocessinfo)</visible>
			<include>Visible_PopupOpenClose</include>
			<centerleft>50%</centerleft>
			<width>500</width>
			<centertop>50%</centertop>
			<height>982</height>
			<control type="grouplist" id="800">
				<orientation>vertical</orientation>
				<height>auto</height>
				<align>center</align>
				<itemgap>0</itemgap>
				<onright>close</onright>
				<onleft>close</onleft>
				<onback>609</onback>
				<usecontrolcoords>true</usecontrolcoords>
				<control type="image">
					<width>100%</width>
					<height>61</height>
					<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/top.png</texture>
				</control>
				<control type="button" id="803">
					<include content="ContextButton"/>
					<label>$LOCALIZE[19023]</label>
					<onclick>Dialog.Close(videoosd)</onclick>
					<onclick>ActivateWindow(pvrosdchannels)</onclick>
				</control>
				<control type="button" id="804">
					<include content="ContextButton"/>
					<label>$LOCALIZE[31071]</label>
					<onclick>Dialog.Close(videoosd)</onclick>
					<onclick>ActivateWindow(PVRChannelGuide)</onclick>
					<visible>VideoPlayer.HasEPG</visible>
				</control>
				<control type="button" id="802">
					<include content="ContextButton"/>
					<label>$LOCALIZE[4]</label>
					<onclick>Dialog.Close(videoosd)</onclick>
					<onclick>ActivateWindow(tvguide)</onclick>
				</control>
				<control type="button" id="801">
					<include content="ContextButton"/>
					<label>$LOCALIZE[14233]</label>
					<onclick>Dialog.Close(videoosd)</onclick>
					<onclick>ActivateWindow(Teletext)</onclick>
					<visible>VideoPlayer.HasTeletext</visible>
				</control>
				<control type="image">
					<width>100%</width>
					<height>61</height>
					<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/bottom.png</texture>
				</control>
			</control>
		</control>
	</controls>
</window>
