Commit 4b2db5bc authored by Clément Stenac's avatar Clément Stenac

* modules/control/joystick.c

	* Allow the user to remap the actions.
	* Improved the strings (please check)
	* Prevent 0 seconds seeks

* share/http/*.html
	* partial HTML validation fixes
	* Improved the look

* src/stream_output/announce.c
	* minor fixes (thanks sam)
parent fa06cb36
This diff is collapsed.
......@@ -19,7 +19,7 @@
</tr>
<p>This page is disabled (Change _directory_ into directory to enable it but you should think about security)</p>
<vlc id="rpn" param1="'dir' url_extract" />
<vlc id="foreach" param1="file" param2="_directory_" />
<vlc id="foreach" param1="file" param2="directory" />
<tr>
<td>
<vlc id="if" param1="file.type value 'directory' strcmp 0 =" />
......
<html>
<head>
<title>VLC Media Player - Admin</title>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>VLC Media Player</title>
<style>
body {font-family:Verdana, Arial, Sans Serif; }
h2 { text-align:center; }
td {border:1pt black solid;margin:0em; }
table.border {border:1pt black solid;}
div.section {background-color:#FFFFCC;
border:1pt black solid;
margin-bottom:2em;
padding:0.5em; }
div.section-ctr {background-color:#FFFFCC;
border:1pt black solid;
margin-bottom:2em;
padding:0.5em;
font-size:1.2em;
text-align:center; }
div.sectitle { background-color:#FFFF99;
color:#019;
border:1pt black solid;
width:20%;
font-weight:bold;}
tr.ligne1 { background-color:#FFFFEE; }
tr.ligne2 { background-color:#FFFFAA; }
</style>
<vlc id="if" param1="url_param"/>
<meta http-equiv="refresh" content="0;URL=/admin/" />
<vlc id="end" />
......@@ -9,15 +35,13 @@
<vlc id="set" param1="sout" param2="string" />
</head>
<body>
<h2>
<center>
<a href="/">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/>
<h2><a href="/">VLC Media Player - Admin <vlc id="value" param1="version" /></a></h2>
<h3>Host list</h3>
<table border="1" cellspacing="0" >
<div class="section-ctr">Shutdown VLC<br /> <form method="get" action=""> <input type="submit" name="control" value="shutdown" /> </form></div>
<div class="sectitle">Host list</div>
<div class="section">
<table class="border" >
<tr>
<th>Id</th><th>Host</th><th>IP</th><th>Port</th>
</tr>
......@@ -30,8 +54,10 @@
</tr>
<vlc id="end" />
</table>
</div>
<h3>File list</h3>
<div class="sectitle">File list</div>
<div class="section">
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>URL</th><th>Mime</th><th>Protected</th><th>usage</th>
......@@ -48,8 +74,11 @@
<vlc id="end" />
<vlc id="end" />
</table>
</div>
<h3>Stream list</h3>
<div class="sectitle">Stream list</div>
<div class="section">
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>URL</th><th>Mime</th><th>Protected</th><th>usage</th>
......@@ -66,8 +95,10 @@
<vlc id="end" />
<vlc id="end" />
</table>
</div>
<h3>Connections list</h3>
<div class="sectitle">Connections list</div>
<div class="section">
<table border="1" cellspacing="0" >
<tr>
<th>Id</th><th>ip</th><th>URL</th><th>Status</th><th>Actions</th>
......@@ -88,7 +119,7 @@
</tr>
<vlc id="end" />
</table>
</div>
<hr />
<p> <vlc id="value" param1="copyright" /> </p>
</body>
......
<html>
<head>
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>VLC Media Player</title>
<style type="css">
body {font-family:Verdana, Arial, Sans Serif; }
h2 { text-align:center; }
table {width:100%;}
table.add {width:70%;}
div.section {background-color:#FFFFCC;
border:1pt black solid;
margin-bottom:2em;
padding:0.5em;}
div.sectitle { background-color:#FFFF99;
color:#019;
border:1pt black solid;
width:20%;
font-weight:bold;}
tr.ligne1 { background-color:#FFFFEE; }
tr.ligne2 { background-color:#FFFFAA; }
</style>
<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>
</head>
<body>
<h2>
<a href="http://www.videolan.org">VLC Media Player <vlc id="value" param1="version" /></a> (http interface)</h2>
<div class="sectitle">Control VLC</div>
<div class="section">
<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" />
<table class="add">
<tr>
<td><input type="submit" name="control" value="stop" /></td>
<td><input type="submit" name="control" value="pause" /></td>
<td><input type="submit" name="control" value="previous" /></td>
<td><input type="submit" name="control" value="next" /></td>
<td><a href="admin/">Administration</a></td>
</tr>
</table>
</form>
</td>
<td>
</div>
<div class="sectitle">Add</div>
<div class="section">
<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" />
<table class="add">
<tr>
<td>Add a MRL (Media Resource Locator) to the playlist</td>
<td><input type="text" name="mrl" size="40" /></td>
<td><input type="submit" name="control" value="add" /></td>
</tr>
<tr>
<td>Stream Output:</td>
<td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /></td>
<td><input type="submit" name="control" value="sout" /></td>
</tr>
</table>
</form>
</td>
<hr/>
<p>
</div>
<div class="sectitle">VLC Playlist</div>
<div class="section">
<table>
<vlc id="foreach" param1="pl" param2="playlist" />
<tr class="<vlc id="if" param1="2 pl.index % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
<td>
<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" />
<a href="?control=play&item=<vlc id="value" param1="pl.index" />"><vlc id="value" param1="pl.index" /> - <vlc id="value" param1="pl.name" /></a> <vlc id="if" param1="pl.current" />
</b>
<vlc id="end" />
</td></tr>
<vlc id="end" />
</p>
</table>
</div>
<hr/>
<p> <vlc id="value" param1="copyright" /> </p>
</body>
......
......@@ -46,8 +46,6 @@
# include <sys/socket.h>
#endif
#undef DEBUG_BUFFER
#include "announce.h"
#include "network.h"
......@@ -374,16 +372,9 @@ void sout_SAPSend( sout_instance_t *p_sout, sap_session_t * p_sap )
memcpy( psz_send + i_header_size, psz_msg, i_msg_size );
if( i_size < 1024 ) /* We mustn't send packets larger than 1024B */
{
if( p_sap->i_ip_version == 6 )
{
i_ret = send( p_sap->i_socket, psz_send, i_size, 0 );
}
else
{
i_ret = send( p_sap->i_socket, psz_send, i_size, 0 );
}
}
if( i_ret <= 0 )
{
......
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