<?vlc --[[
vim:syntax=html
<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  main: VLC media player web interface - main VLC controler
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  Copyright (C) 2005-2006 the VideoLAN team
<  $Id$
< 
<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
< 
<  This program is free software; you can redistribute it and/or modify
<  it under the terms of the GNU General Public License as published by
<  the Free Software Foundation; either version 2 of the License, or
<  (at your option) any later version.
< 
<  This program is distributed in the hope that it will be useful,
<  but WITHOUT ANY WARRANTY; without even the implied warranty of
<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<  GNU General Public License for more details.
< 
<  You should have received a copy of the GNU General Public License
<  along with this program; if not, write to the Free Software
<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

This dialog needs the following dialogs to be fully functional: input,
sout and playlist .
]]?>

<div id="main" class="dialog" >
  <div class="title">
    VLC media player
    <button id="btn_toggle_text" onclick="toggle_btn_text();" title="Help" >
      <img src="old/images/help.png" alt="Help" />
      Help
    </button>
  </div>
  <div class="controls">
    <button id="btn_open" onclick="toggle_show('input');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Open" >
      <img src="old/images/eject.png" alt="Open" />
      <span class="btn_text">Open</span>
    </button>
    &nbsp;
    <button id="btn_stop" onclick="pl_stop();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Stop" >
      <img src="old/images/stop.png" alt="Stop" />
      <span class="btn_text">Stop</span>
    </button>
    <!--<button id="btn_play" onclick="alert('FIXME');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Play" >
      <img src="old/images/play.png" alt="Play" />
      <span class="btn_text">Play</span>
    </button>-->
    <button id="btn_pause" onclick="pl_pause();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Pause" >
      <img src="old/images/pause.png" alt="Pause" id="btn_pause_img" />
      <span class="btn_text">Pause</span>
    </button>
    &nbsp;
    <button id="btn_previous" onclick="pl_previous();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Previous" >
      <img src="old/images/prev.png" alt="Previous" />
      <span class="btn_text">Previous</span>
    </button>
    <button id="btn_next" onclick="pl_next();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Next" >
      <img src="old/images/next.png" alt="Next" />
      <span class="btn_text">Next</span>
    </button>
    &nbsp;
    <button id="btn_sout" onclick="toggle_show('sout');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Stream Output" >
      <img src="old/images/sout.png" alt="Stream Output" />
      <span class="btn_text">Stream Output</span>
    </button>
    <button id="btn_playlist" onclick="toggle_show('playlist');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Playlist" >
      <img src="old/images/playlist.png" alt="Playlist" />
      <span class="btn_text">Playlist</span>
    </button>
    <button id="btn_info" onclick="toggle_show('info');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Info" >
      <img src="old/images/info.png" alt="Info" />
      <span class="btn_text">Info</span>
    </button>
    &nbsp;
    <button id="btn_fullscreen" onclick="fullscreen();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Fullscreen" >
      <img src="old/images/fullscreen.png" alt="Fullscreen" />
      <span class="btn_text">Fullscreen</span>
    </button>
    &nbsp;
    <button id="btn_snapshot" onclick="snapshot();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Take video snapshot" >
      <img src="old/images/snapshot.png" alt="Take video snapshot" />
      <span class="btn_text">Take video snapshot</span>
    </button>
    &nbsp;
    <button id="btn_volume_down" onclick="volume_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease Volume" >
      <img src="old/images/volume_down.png" alt="Decrease Volume" />
      <span class="btn_text">Decrease Volume</span>
    </button>
    <button id="btn_volume_up" onclick="volume_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase Volume" >
      <img src="old/images/volume_up.png" alt="Increase Volume" />
      <span class="btn_text">Increase Volume</span>
    </button>
    <button id="btn_volume_mute" onclick="volume_mute();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Mute Volume" >
      <img src="old/images/speaker_mute.png" alt="Mute Volume" />
      <span class="btn_text">Mute Volume</span>
    </button>
    <br />
    Audio Delay:
    <button id="btn_audiodelay_down" onclick="audiodelay_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease Audio Delay by 50ms" >
      <img src="old/images/minus.png" alt="Decrease Audio Delay" />
      <span class="btn_text">Decrease Audio Delay</span>
    </button>
    <button id="btn_audiodelay_up" onclick="audiodelay_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase Audio Delay by 50ms" >
      <img src="old/images/plus.png" alt="Increase Audio Delay" />
      <span class="btn_text">Increase Audio Delay</span>
    </button>
    <span id="a_del">(?)</span> ms
 <br />
    Playback Speed:
    <button id="btn_playrate_down" onclick="playrate_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease playback rate by 0.05x" >
      <img src="old/images/minus.png" alt="Decrease Playback Rate" />
      <span class="btn_text">Decrease Playback Rate</span>
    </button>
    <button id="btn_playrate_up" onclick="playrate_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase playback rate by 0.05x" >
      <img src="old/images/plus.png" alt="Increase Playback Rate" />
      <span class="btn_text">Increase Playback Rate</span>
    </button>
    <span id="p_rate">(?)</span>x
  <br/>
  Advance of subtitles over video:
    <button id="btn_subdel_down" onclick="subdel_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease subtitle delay by 50ms" >
      <img src="old/images/minus.png" alt="Decrease Subtitle delay" />
      <span class="btn_text">Decrease Subtitle delay</span>
    </button>
    <button id="btn_subdel_up" onclick="subdel_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase subtitle delay by 50ms" >
      <img src="old/images/plus.png" alt="Increase Subtitle delay" />
      <span class="btn_text">Increase Subtitle delay</span>
    </button>
    <span id="s_del">(?)</span>ms

  </div>
  <div id="status">
    <span id="state">(?)</span>
    -
    Time : <span id="time">(?)</span>/<span id="length">(?)</span>
    -
    Volume : <span id="volume">(?)</span>
    <br/>
    <!-- progress bar -->
    <img src="old/images/slider_left.png" alt="slider left" /><span id="progressbar" style="background-image: url( 'old/images/slider_bar.png' ); width: 408px; height:16px; position:absolute;" onclick="slider_seek( event, this );" onmousemove="slider_move( event, this );"><img src="old/images/slider_point.png" alt="slider point" style="position:relative; left:0px;" id="main_slider_point" onmousedown="slider_down( event, this );" onmouseup="slider_up( event, this.parentNode );" onmouseout="slider_up( event, this.parentNode );"/></span><img src="old/images/slider_right.png" alt="slider right" style="position:relative;left:408px;" />
    <br/>
    <span id="nowplaying">(?)</span>
    <img id="albumart" alt="" src="/art" style="float: right" onclick="refresh_albumart(true);"/>
  </div>
</div>

<div id="info" class="dialog" style="display: none;" >
  <div class="title">
    Stream and media info
    <img class="close" src="old/images/white_cross_small.png" alt="Close" onclick="hide('info');"/>
  </div>
  <div id="infotree">
  </div>
</div>
