source: py-tcpmultiplexer/htdocs/browser.html@ 330

Last change on this file since 330 was 329, checked in by Rick van der Zwet, 13 years ago

Room view!

  • Property svn:mime-type set to text/html
File size: 3.4 KB
Line 
1<html>
2<head>
3<title>py-tcpmultiplexer Webcam Control </title>
4<link href="css/style.css" type="text/css" rel="stylesheet"/>
5<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
6<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
7<script type="text/javascript">
8function changeAudio(wav_uri)
9{
10 $("#jplayer").jPlayer({
11 ready: function () {
12 $(this).jPlayer("stop");
13 $(this).jPlayer("setMedia", { wav: wav_uri }).jPlayer("play");
14 },
15 ended: function (event) {
16 $(this).jPlayer("play");
17 },
18 swfPath: "",
19 supplied: "wav"
20 });
21}
22
23function changeVideo(mjeg_uri)
24{
25 $("#player").attr("src",mjeg_uri);
26 $("#player").attr("alt","Video Feed: " + mjeg_uri);
27}
28</script>
29
30</head>
31<body>
32<h1>py-tcpmultiplexer webcam server</h1>
33
34<div>
35<table>
36<tr><td>Select WebCam:</td><td>
37<input type="radio" name="cam" value="img/logo.png" checked="checked">None</input>
38<input type="radio" name="cam" value="/cam1/video">RepRap</input>
39<input type="radio" name="cam" value="/cam2/video">Room_A</input>
40<input type="radio" name="cam" value="/cam3/video">Kitchen</input>
41<input type="radio" name="cam" value="/cam4/video">Occ_telex</input>
42<input type="radio" name="cam" value="/cam5/video">Rick_cam</input>
43<input type="radio" name="cam" value="/cam6/video">Presentation</input>
44<input type="radio" name="cam" value="/cam7/video">Mobile</input>
45</td></tr>
46<tr><td>Select Audio:</td><td>
47<input type="radio" name="sound" value="none" checked="checked" >None</input>
48<input type="radio" name="sound" value="/cam1/audio">Cam1</input>
49<input type="radio" name="sound" value="/cam7/audio">Cam7</input>
50</td></tr>
51</table>
52
53<script type="text/javascript">
54 $("input[name='cam']").change(function () {
55 changeVideo($("input[name='cam']:checked").val());
56 });
57 $("input[name='sound']").change(function () {
58 changeAudio($("input[name='sound']:checked").val());
59 });
60</script>
61
62<div>
63<img id="player" src="img/logo.png" alt="Video feeds"/><br/>
64</div>
65
66<div id="jplayer" />
67
68
69
70<hr />
71<p>Tested browsers: <a href="http://www.firefox.com">Mozilla Firefox</a>, <a href="http://www.google.com/chrome">Google Chrome</a> (<em>If no video appear below, you are using unsupported browser</em>)<br />
72<small>Source Code at: <a href="http://rickvanderzwet.nl/svn/personal/py-tcpmultiplexer/">http://rickvanderzwet.nl/svn/personal/py-tcpmultiplexer/</a> build @ <a href="http://opencommunitycamp.org">#occ2011</a> - feedback/comments at <a href="irc://irc.freenode.net/#occ">#occ</a></small>
73
74<p />
75Example stream creation from Webcam or Buildin Camera:
76<table border="1">
77<tr><td>Linux</td><td>:</td><td><tt>vlc -I http v4l:///dev/video0 --sout='#transcode{vcodec=MJPG}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=0.0.0.0:9000/webcam}}'</tt>
78</td></tr>
79<tr><td>Mac</td><td>:</td><td><tt>/Applications/VLC.app/Contents/MacOS/VLC qtcapture:// --sout='#transcode{vcodec=MJPG,vfilter=canvas{width=640,height=480}}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=0.0.0.0:9000/webcam}}'</tt>
80</td></tr>
81<tr><td>Windows</td><td>:</td><td><tt>???</tt></td></tr>
82<tr><td>iPhone</td><td>:</td><td><tt>???</tt></td></tr>
83<tr><td>Android</td><td>:</td><td><tt><a href="https://market.android.com/details?id=com.pas.webcam">IP Webcam</a></tt></td></tr>
84</table>
85
86</body>
87</html>
Note: See TracBrowser for help on using the repository browser.