<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<script language="JavaScript">
function loadXMLDoc( url )
{
  // branch for native XMLHttpRequest object
  if ( window.XMLHttpRequest )
  {
    req = new XMLHttpRequest();
    req.open( "GET", url, true );
    req.send( null );
  // branch for IE/Windows ActiveX version
  }
  else if ( window.ActiveXObject )
  {
    req = new ActiveXObject( "Microsoft.XMLHTTP" );
    if ( req )
    {
      req.onreadystatechange = callback;
      req.open( "GET", url, true );
      req.send();
    }
  }
}
</script>

<body>
<p>
  <INPUT type="button" value="Subtitles"  onClick='loadXMLDoc("http://localhost:8080/requests/status.xml?command=key&val=subtitle-track");'>
</p>
<p>
  <INPUT type="button" value="Audio track"  onClick='loadXMLDoc("http://localhost:8080/requests/status.xml?command=key&val=audio-track");'>
</p>
<p>
  <INPUT type="button" value="Aspect Ratio"  onClick='loadXMLDoc("http://localhost:8080/requests/status.xml?command=key&val=aspect-ratio");'>
</p>
<p>
  <INPUT type="button" value="Crop"  onClick='loadXMLDoc("http://localhost:8080/requests/status.xml?command=key&val=crop");'>
</p>
  <p>
    <INPUT type="button" value="Snapshot" onClick='loadXMLDoc("http://localhost:8080/requests/status.xml?command=key&val=snapshot");'>
  </p>
</body>
</html>