Changeset 319 for py-tcpmultiplexer/htdocs/browser.html
- Timestamp:
- Jul 19, 2011, 3:42:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
py-tcpmultiplexer/htdocs/browser.html
r315 r319 1 1 <html> 2 2 <head> 3 <title> PythonWebcam Control </title>3 <title>py-tcpmultiplexer Webcam Control </title> 4 4 <link href="css/style.css" type="text/css" rel="stylesheet"/> 5 5 <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script> 6 6 <script type="text/javascript" src="js/jquery.jplayer.min.js"></script> 7 <script type="text/javascript" src="js/common.js"></script> 7 <script type="text/javascript"> 8 function createAudio(wav_uri) 9 { 10 $("#jplayer").jPlayer({ 11 ready: function () { 12 $(this).jPlayer("setMedia", { wav: wav_uri }).jPlayer("play"); 13 }, 14 ended: function (event) { 15 $(this).jPlayer("play"); 16 }, 17 swfPath: "", 18 supplied: "wav" 19 }); 20 $("#jplayer").after($("<p>In-browser audio is running.</p>")); 21 } 22 23 function changeVideo(mjeg_uri) 24 { 25 $("#player").attr("src",mjeg_uri); 26 $("#player").attr("alt","Video Feed: " + mjeg_uri); 27 } 28 </script> 8 29 </head> 9 30 <body> 10 <h1> Androidwebcam server</h1>31 <h1>py-tcpmultiplexer webcam server</h1> 11 32 12 <img src="/cam1/video" alt="Video feed Cam1"/><br/> 33 <input type="button" onclick="changeVideo('/cam1/video')" value="Click to display Cam1" /> 34 <input type="button" onclick="changeVideo('/cam2/video')" value="Click to display Cam2" /><br /> 35 <img id="player" src="img/logo.png" alt="Video feeds"/><br/> 13 36 14 37 <div id="jplayer"><br/><input type="button" onclick="createAudio('/cam1/audio')" value="Click here to play audio with browser"/><br> … … 16 39 17 40 41 18 42 <hr /> 19 <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>) 43 <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 /> 44 <small>Source Code at: <a href="http://rickvanderzwet.nl/svn/personal/py-tcpmultiplexer/">http://rickvanderzwet.nl/svn/personal/py-tcpmultiplexer/</a></small> 20 45 21 46 </body>
Note:
See TracChangeset
for help on using the changeset viewer.