Commit 21c3df33 authored by Laurent Aimar's avatar Laurent Aimar

* all: samples pages for http interface.

parent a362f5c3
<html>
<head>
<title>VLC Media Player - Admin</title>
<vlc id="if" param1="url_param"/>
<meta http-equiv="refresh" content="0;URL=/adm.html" />
<vlc id="end" />
<vlc id="control" />
<vlc id="set" param1="sout" param2="string" />
</head>
<body>
<h2>
<center>
<a href="http://www.videolan.org">VLC Media Player - Admin <vlc id="value" param1="version" /></a> <form method="get" action=""> <input type="submit" name="control" value="shutdown" /> </form>
</center>
</h2>
<hr/>
<h3>Host list</h3>
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>Host</th><th>IP</th><th>Port</th>
</tr>
<vlc id="foreach" param1="host" param2="hosts" />
<tr>
<td><vlc id="value" param1="host.id" /></td>
<td><vlc id="value" param1="host.host" /> </td>
<td><vlc id="value" param1="host.ip" /> </td>
<td><vlc id="value" param1="host.port" /> </td>
</tr>
<vlc id="end" />
</table>
<h3>File list</h3>
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>URL</th><th>Mime</th><th>Protected</th><th>usage</th>
</tr>
<vlc id="foreach" param1="url" param2="urls" />
<vlc id="if" param1="url.stream 0 =" />
<tr>
<td><vlc id="value" param1="url.id" /></td>
<td><vlc id="value" param1="url.url" /></td>
<td><vlc id="value" param1="url.mime" /></td>
<td><vlc id="value" param1="url.protected" /></td>
<td><vlc id="value" param1="url.used" /></td>
</tr>
<vlc id="end" />
<vlc id="end" />
</table>
<h3>Stream list</h3>
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>URL</th><th>Mime</th><th>Protected</th><th>usage</th>
</tr>
<vlc id="foreach" param1="url" param2="urls" />
<vlc id="if" param1="url.stream" />
<tr>
<td><vlc id="value" param1="url.id" /></td>
<td><vlc id="value" param1="url.url" /></td>
<td><vlc id="value" param1="url.mime" /></td>
<td><vlc id="value" param1="url.protected" /></td>
<td><vlc id="value" param1="url.used" /></td>
</tr>
<vlc id="end" />
<vlc id="end" />
</table>
<h3>Connections list</h3>
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>ip</th><th>URL</th><th>Status</th><th>Actions</th>
</tr>
<vlc id="foreach" param1="con" param2="connections" />
<tr>
<td><vlc id="value" param1="con.id" /></td>
<td><vlc id="value" param1="con.ip" /></td>
<td><vlc id="value" param1="con.url" /></td>
<td><vlc id="value" param1="con.status" /></td>
<td>
<form method="get" action="">
<input type="hidden" name="id" value="<vlc id="value" param1="con.id" />"/>
<input type="submit" name="control" value="close" />
</form>
</td>
</tr>
<vlc id="end" />
</table>
<hr />
<p> <vlc id="value" param1="copyright" /> </p>
</body>
</html>
<html>
<head>
<title>VLC Media Player</title>
<vlc id="if" param1="url_param"/>
<meta http-equiv="refresh" content="0;URL=/" />
<vlc id="end" />
<vlc id="control" param1="stop,pause,previous,next,add,sout,play" />
<vlc id="set" param1="sout" param2="string" />
</head>
<body>
<h2><center><a href="http://www.videolan.org">VLC Media Player <vlc id="value" param1="version" /></a> (http interface)</center></h2>
<hr/>
<td>
<form method="get" action="">
<input type="submit" name="control" value="stop" />
<input type="submit" name="control" value="pause" />
<input type="submit" name="control" value="previous" />
<input type="submit" name="control" value="next" />
<a href="info.html">infos</a>
</form>
</td>
<br />
<td>
<form method="get" action="" enctype="text/plain" >
<input type="text" name="mrl" size="40" />
<input type="submit" name="control" value="add" />
</form>
</td>
<td>
<form method="get" action="" enctype="text/plain" >
<input type="text" name="sout" size="30" value="<vlc id="get" param1="sout" param2="string" />" />
<input type="submit" name="control" value="sout" />
</form>
</td>
<hr/>
<p>
<vlc id="foreach" param1="pl" param2="playlist" />
<vlc id="if" param1="pl.current" />
<b>
<vlc id="end" />
<a href=?control=play&item=<vlc id="value" param1="pl.index" />><vlc id="value" param1="pl.index" /> - <vlc id="value" param1="pl.name" /></a> <br />
<vlc id="if" param1="pl.current" />
</b>
<vlc id="end" />
<vlc id="end" />
</p>
<hr/>
<p> <vlc id="value" param1="copyright" /> </p>
</body>
</html>
<html>
<head>
<title>VLC Media Player - Informations</title>
</head>
<body>
<h2><center><a href="http://www.videolan.org">VLC Media Player <vlc id="value" param1="version" /></a></center></h2>
<hr/>
<vlc id="foreach" param1="cat" param2="informations" />
<p> <vlc id="value" param1="cat.name" />
<ul>
<vlc id="foreach" param1="info" param2="cat.info" />
<li> <vlc id="value" param1="info.name" /> : <vlc id="value" param1="info.value" /> </li>
<vlc id="end" />
</ul>
<vlc id="end" />
<hr/>
<p><vlc id="value" param1="copyright" /> </p>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment