<?xml version="1.0" encoding="utf-8"?>
<window>
    <defaultcontrol always="false">100</defaultcontrol>
    <onload condition="!VideoPlayer.Content(LiveTV)">SetFocus(202)</onload>
    <zorder>5</zorder>
    <include>OSDFade</include>
    <controls>
        <control type="group">
            <visible>![
                Window.IsVisible(DialogPlayerProcessInfo.xml) |
                Window.IsVisible(DialogSelect.xml) |
                Window.IsVisible(SliderDialog) |
                Window.IsVisible(OSDVideoSettings) |
                Window.IsVisible(OSDAudioSettings) |
                Window.IsVisible(OSDAudioDSPSettings) |
                Window.IsVisible(VideoBookmarks) |
                Window.IsVisible(PVROSDChannels) |
                Window.IsVisible(PVROSDGuide)
                ]</visible>
            <include>OSDFade</include>
            <posx>0</posx>
            <posy>0</posy>
            <control type="slider" id="87">
                <description>Seek Slider</description>
                <posx>0</posx>
                <posy>985</posy>
                <width>1920</width>
                <height>54</height>
                <onup>100</onup>
                <ondown>87</ondown>
                <action>seek</action>
                <texturesliderbar>OSD/osd_progress_empty.png</texturesliderbar>
                <textureslidernib>buttons/SliderNibNF.png</textureslidernib>
                <textureslidernibfocus>buttons/SliderNibFO.png</textureslidernibfocus>
            </control>
            <control type="grouplist" id="100">
                <posx>0</posx>
                <posy>68</posy>
                <width>1920</width>
                <onup>100</onup>
                <ondown>101</ondown>
                <orientation>horizontal</orientation>
                <itemgap>10</itemgap>
                <align>center</align>
                <!--***-->
                <control type="button" id="704">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_back_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_back_nofocus.png</texturenofocus>
                    <onclick>Dialog.Close(VideoOSD,true)</onclick>
                    <onclick>fullscreen</onclick>
                </control>
                <control type="button" id="705">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_home_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_home_nofocus.png</texturenofocus>
                    <onclick>Back</onclick>
                    <onclick>Dialog.Close(all,true)</onclick>
                    <onclick>ActivateWindow(Home)</onclick>
                </control>
                <control type="button" id="300">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[210]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_channel_up_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_channel_up_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Previous)</onclick>
                </control>
                <control type="button" id="301">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[209]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_channel_down_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_channel_down_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Next)</onclick>
                </control>
                <control type="button" id="200">
                    <visible>!VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[210]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_skipback_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_skipback_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Previous)</onclick>
                </control>
                <control type="button" id="201">
                    <enable>Player.SeekEnabled</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!Player.SeekEnabled">Conditional</animation>
                    <label>$LOCALIZE[31354]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_rewind_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_rewind_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Rewind)</onclick>
                </control>
                <control type="togglebutton" id="202">
                    <enable>Player.PauseEnabled</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!Player.PauseEnabled">Conditional</animation>
                    <label>$LOCALIZE[31351]</label>
                    <altlabel>$LOCALIZE[208]</altlabel>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_pause_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_pause_nofocus.png</texturenofocus>
                    <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
                    <alttexturefocus>topbar/topbar_play_focus.png</alttexturefocus>
                    <alttexturenofocus>topbar/topbar_play_nofocus.png</alttexturenofocus>
                    <onclick>PlayerControl(Play)</onclick>
                </control>
                <control type="button" id="203">
                    <label>$LOCALIZE[31352]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_stop_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_stop_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Stop)</onclick>
                </control>
                <control type="button" id="204">
                    <enable>Player.SeekEnabled</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!Player.SeekEnabled">Conditional</animation>
                    <label>$LOCALIZE[31353]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_fastforward_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_fastforward_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Forward)</onclick>
                </control>
                <control type="button" id="205">
                    <visible>!VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[209]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_skipforward_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_skipforward_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(Next)</onclick>
                </control>
                <control type="button" id="1616">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_volume_mute_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_volume_mute_nofocus.png</texturenofocus>
                    <onclick>Mute</onclick>
                </control>
                <control type="button" id="1618">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_volume_down_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_volume_down_nofocus.png</texturenofocus>
                    <onclick>VolumeDown</onclick>
                </control>
                <control type="button" id="1620">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_volume_up_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_volume_up_nofocus.png</texturenofocus>
                    <onclick>VolumeUp</onclick>
                </control>
                <control type="button" id="1622">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_smallscreen_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_smallscreen_nofocus.png</texturenofocus>
                    <onclick>Dialog.Close(VideoOSD,true)</onclick>
                    <onclick>fullscreen</onclick>
                </control>
                <control type="button" id="1624">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_settings_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_settings_nofocus.png</texturenofocus>
                    <onclick>Dialog.Close(VideoOSD,true)</onclick>
                    <onclick>ActivateWindow(Settings,return)</onclick>
                </control>
                <control type="button" id="1626">
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_shutdown_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_shutdown_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(shutdownmenu)</onclick>
                </control>
            </control>
            <control type="grouplist" id="101">
                <posx>0</posx>
                <posy>138</posy>
                <width>1920</width>
                <onup>100</onup>
                <ondown>87</ondown>
                <orientation>horizontal</orientation>
                <itemgap>10</itemgap>
                <align>center</align>
                <!--***-->
                <control type="button" id="306">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[19069]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_channel_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_channel_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(PVROSDChannels)</onclick>
                    <onclick>Dialog.Close(VideoOSD)</onclick>
                </control>
                <control type="button" id="307">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[19069]$INFO[VideoPlayer.ChannelNumberLabel,  •  ]$INFO[VideoPlayer.ChannelName,  •  ]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_epg_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_epg_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(PVROSDGuide)</onclick>
                    <onclick>Dialog.Close(VideoOSD)</onclick>
                </control>
                <control type="button" id="350">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[23050]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_teletext_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_teletext_nofocus.png</texturenofocus>
                    <onclick>Dialog.Close(VideoOSD)</onclick>
                    <onclick>ActivateWindow(Teletext)</onclick>
                    <!--<onclick>ActivateWindow(Teletext)</onclick>-->
                </control>
                <control type="togglebutton" id="353">
                    <visible>VideoPlayer.Content(LiveTV)</visible>
                    <enable>Player.CanRecord</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!Player.CanRecord">Conditional</animation>
                    <label>$LOCALIZE[264]</label>
                    <altlabel>$LOCALIZE[265]</altlabel>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_rec_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_rec_nofocus.png</texturenofocus>
                    <usealttexture>Player.Recording</usealttexture>
                    <alttexturefocus>topbar/topbar_rec_on_focus.png</alttexturefocus>
                    <alttexturenofocus>topbar/topbar_rec_on_nofocus.png</alttexturenofocus>
                    <onclick>PlayerControl(Record)</onclick>
                </control>
                <control type="button" id="250">
                    <label>$LOCALIZE[31356]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_subtitles_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_subtitles_nofocus.png</texturenofocus>
                    <ondown>400</ondown>
                    <onclick>SetFocus(400)</onclick>
                </control>
                <control type="button" id="251">
                    <label>$LOCALIZE[13395]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_video_settings_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_video_settings_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(OSDVideoSettings)</onclick>
                </control>
                <control type="button" id="252">
                    <label>$LOCALIZE[13396]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_speaker_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_speaker_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(OSDAudioSettings)</onclick>
                </control>
                <control type="button" id="253">
                    <visible>!VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[298]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_bookmark2_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_bookmark2_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(VideoBookmarks)</onclick>
                </control>
                <control type="button" id="254">
                    <visible>!VideoPlayer.Content(LiveTV)</visible>
                    <enable>VideoPlayer.HasMenu</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!VideoPlayer.HasMenu">Conditional</animation>
                    <label>$LOCALIZE[31355]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_dvd_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_dvd_nofocus.png</texturenofocus>
                    <onclick>PlayerControl(ShowVideoMenu)</onclick>
                </control>
                <control type="button" id="255">
                    <enable>VideoPlayer.IsStereoscopic</enable>
                    <animation effect="fade" start="100" end="50" time="0" condition="!VideoPlayer.IsStereoscopic">Conditional</animation>
                    <label>$LOCALIZE[36501]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_3d_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_3d_nofocus.png</texturenofocus>
                    <onclick>StereoMode</onclick>
                </control>
                <!--****-->
                <control type="button" id="706">
                    <visible>!VideoPlayer.Content(LiveTV)</visible>
                    <label>$LOCALIZE[559]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_bookmark_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_bookmark_nofocus.png</texturenofocus>
                    <onclick>Close</onclick>
                    <onclick>ActivateWindow(VideoPlaylist)</onclick>
                </control>
                <control type="button" id="707">
                    <label>$LOCALIZE[544]</label>
                    <include>TopBarButton</include>
                    <texturefocus>topbar/topbar_info_focus.png</texturefocus>
                    <texturenofocus>topbar/topbar_info_nofocus.png</texturenofocus>
                    <onclick>ActivateWindow(fullscreeninfo)</onclick>
                </control>
            </control>

            <control type="button" id="410">
                <description>Fake button for mouse control</description>
                <visible>Control.HasFocus(410) | Control.HasFocus(250) | ControlGroup(400).HasFocus</visible>
                <posx>621</posx>
                <posy>185</posy>
                <width>678</width>
                <height>429</height>
                <label>-</label>
                <font>-</font>
                <texturenofocus>-</texturenofocus>
                <texturefocus>-</texturefocus>
            </control>

            <!--SUBTITLES-->
            <control type="group" id="4000">
                <visible>Control.HasFocus(410) | Control.HasFocus(250) | ControlGroup(400).HasFocus</visible>
                <include>VisibleFadeEffect</include>
                <posx>676</posx>
                <posy>180</posy>
                <control type="image">
                    <posx>0</posx>
                    <posy>-20</posy>
                    <width>568</width>
                    <height>460</height>
                    <texture border="90">common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <posx>45</posx>
                    <posy>-2</posy>
                    <width>478</width>
                    <height>79</height>
                    <texture>list/bg_facade_nofocus_top.png</texture>
                </control>
                <control type="label">
                    <posx>45</posx>
                    <posy>13</posy>
                    <textoffsetx>45</textoffsetx>
                    <textoffsety>32</textoffsety>
                    <align>left</align>
                    <aligny>top</aligny>
                    <width>590</width>
                    <label>287</label>
                    <font>LeftMenuTitleFont</font>
                    <textcolor>AlternateColor</textcolor>
                </control>
                <control type="grouplist" id="400">
                    <posx>45</posx>
                    <posy>77</posy>
                    <width>478</width>
                    <height>284</height>
                    <itemgap>0</itemgap>
                    <onleft>702</onleft>
                    <onright>704</onright>
                    <onup>250</onup>
                    <ondown>250</ondown>
                    <orientation>vertical</orientation>
                    <control type="togglebutton" id="401">
                        <description>Download with Subtitles script</description>
                        <label>33003</label>
                        <height>70</height>
                        <width>478</width>
                        <include>LeftMenuButton</include>
                        <onclick>Close</onclick>
                        <onclick>Dialog.Close(VideoOSD)</onclick>
                        <onclick>ActivateWindow(SubtitleSearch)</onclick>
                        <enable>!VideoPlayer.Content(LiveTV)</enable>
                    </control>
                    <control type="button" id="402">
                        <visible>VideoPlayer.HasSubtitles + VideoPlayer.SubtitlesEnabled</visible>
                        <label>22006</label>
                        <height>70</height>
                        <width>478</width>
                        <include>LeftMenuButton</include>
                        <onclick>SubtitleDelay</onclick>
                    </control>
                    <control type="button" id="403">
                        <visible>VideoPlayer.HasSubtitles + VideoPlayer.SubtitlesEnabled</visible>
                        <label>209</label>
                        <height>70</height>
                        <width>478</width>
                        <include>LeftMenuButton</include>
                        <onclick>CycleSubtitle</onclick>
                    </control>
                    <control type="radiobutton" id="404">
                        <visible>VideoPlayer.HasSubtitles</visible>
                        <label>449</label>
                        <height>70</height>
                        <width>478</width>
                        <radioposx>380</radioposx>
                        <include>LeftMenuButton</include>
                        <onclick>ShowSubtitles</onclick>
                        <selected>VideoPlayer.SubtitlesEnabled</selected>
                    </control>
                </control>
            </control>
        </control>
    </controls>
</window>
