Changeset 336 for py-tcpmultiplexer/htdocs/room1.html
- Timestamp:
- Jul 23, 2011, 10:56:17 AM (13 years ago)
- Location:
- py-tcpmultiplexer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
py-tcpmultiplexer
-
Property svn:ignore
set to
py-tcpmultiplexer.log
-
Property svn:ignore
set to
-
py-tcpmultiplexer/htdocs/room1.html
r332 r336 29 29 function flipImages() 30 30 { 31 player_uri = $("# player").attr("src");32 screen_uri = $("#s creen").attr("src");33 $("# player").attr("src", screen_uri);34 $("#s creen").attr("src", player_uri);31 player_uri = $("#mainCam").attr("src"); 32 screen_uri = $("#smallCam").attr("src"); 33 $("#mainCam").attr("src", screen_uri); 34 $("#smallCam").attr("src", player_uri); 35 35 36 36 } … … 40 40 { 41 41 if (runningPresentation) { 42 $("# player").attr("src", '/img/logo.png');43 $("#s creen").attr("src", '/img/logo.png');42 $("#mainCam").attr("src", '/img/logo.png'); 43 $("#smallCam").attr("src", '/img/logo.png'); 44 44 changeAudio(''); 45 45 runningPresentation = false; 46 46 $("#togglePresentation").attr('value',"Start Presentation"); 47 47 } else { 48 $("# player").attr("src", '/cam6/video');49 $("#s creen").attr("src", '/cam7/video');48 $("#mainCam").attr("src", '/cam6/video'); 49 $("#smallCam").attr("src", '/cam7/video'); 50 50 changeAudio('/cam7/audio'); 51 51 runningPresentation = true; … … 54 54 } 55 55 56 $(document).ready(function(){ 57 if ( $.browser.msie ) { 58 $("#messagebox").html('Live webcam does not support MSIE, please use alternative browser, <a href="http://www.browserchoice.eu">http://www.browserchoice.eu</a>'); 59 } 60 }); 61 56 62 </script> 57 63 64 <style type="text/css"> 65 #mainCam { 66 position: relative; 67 height: 95%; 68 } 69 70 #smallCam { 71 position: absolute; 72 right: 0; 73 top: 0; 74 width: 25%; 75 border: 1px solid; 76 background-color: lightgrey; 77 } 78 </style> 58 79 </head> 59 80 <body> 60 <table border="2" width="100%" height="100%"> 61 <tr> 62 <td height="200px" width="450px" style="background: url(http://wifisoft.org/svn/logo/WifiSoft_logo.jpg);"> 63 <img id="player" width="200px" src="/img/logo.png" alt="Video feeds" border="1"/><br /> 81 <div id="messagebox" style="background-color: red"></div> 82 <div> 64 83 <input type="button" id="togglePresentation" OnClick="changePresentation()" value="Start Presentation" /> 65 84 <input type="button" id="toggleCamera" OnClick="flipImages()" value="Switch Camera's" /> 66 </td> 67 <td rowspan="2" style="background: url(http://wifisoft.org/svn/logo/WifiSoft_logo.jpg) no-repeat;"> 68 <img id="screen" height="100%" src="/img/logo.png" alt="Presentation" border="1"/> 69 </td> 70 </tr> 71 <tr> 72 <td> 73 <iframe src="http://webchat.freenode.net?&channels=occ&uio=d4" width="100%" height="100%"></iframe> 74 </td> 75 </tr> 76 <tr> 77 <td colspan="2"> 78 <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 /> 79 <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> 80 </td> 81 </tr> 82 </table> 85 </div> 86 <img id="mainCam" src='/img/logo.png' /> 87 <img id="smallCam" src='/img/logo.png' /> 88 </div> 83 89 84 <div id="jplayer" />90 <div id="jplayer"></div> 85 91 </body> 86 92 </html>
Note:
See TracChangeset
for help on using the changeset viewer.