* all: samples pages for http interface.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 10 Jul 2003 22:29:59 +0000 (22:29 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 10 Jul 2003 22:29:59 +0000 (22:29 +0000)
share/http/admin/.access [new file with mode: 0644]
share/http/admin/index.html [new file with mode: 0644]
share/http/index.html [new file with mode: 0644]
share/http/info.html [new file with mode: 0644]

diff --git a/share/http/admin/.access b/share/http/admin/.access
new file mode 100644 (file)
index 0000000..8a5c9a6
--- /dev/null
@@ -0,0 +1 @@
+admin:admin
diff --git a/share/http/admin/index.html b/share/http/admin/index.html
new file mode 100644 (file)
index 0000000..bd6ad68
--- /dev/null
@@ -0,0 +1,96 @@
+<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>
+
diff --git a/share/http/index.html b/share/http/index.html
new file mode 100644 (file)
index 0000000..9404a05
--- /dev/null
@@ -0,0 +1,53 @@
+<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>
+
diff --git a/share/http/info.html b/share/http/info.html
new file mode 100644 (file)
index 0000000..b670337
--- /dev/null
@@ -0,0 +1,20 @@
+<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>
+