source: py-tcpmultiplexer/htdocs/room1.html@ 333

Last change on this file since 333 was 332, checked in by Rick van der Zwet, 13 years ago
  • Camera should not start automatically (iframe embedding issues).
File size: 2.9 KB
RevLine 
[329]1<html>
2<head>
3<title>py-tcpmultiplexer webcam server - Room 1</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">
8 function 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
23 function changeVideo(mjeg_uri)
24 {
25 $("#player").attr("src",mjeg_uri);
26 $("#player").attr("alt","Video Feed: " + mjeg_uri);
27 }
28
29 function flipImages()
30 {
31 player_uri = $("#player").attr("src");
32 screen_uri = $("#screen").attr("src");
33 $("#player").attr("src", screen_uri);
34 $("#screen").attr("src", player_uri);
35
36 }
37
[332]38 var runningPresentation = false;
39 function changePresentation()
40 {
41 if (runningPresentation) {
42 $("#player").attr("src", '/img/logo.png');
43 $("#screen").attr("src", '/img/logo.png');
44 changeAudio('');
45 runningPresentation = false;
46 $("#togglePresentation").attr('value',"Start Presentation");
47 } else {
48 $("#player").attr("src", '/cam6/video');
49 $("#screen").attr("src", '/cam7/video');
50 changeAudio('/cam7/audio');
51 runningPresentation = true;
52 $("#togglePresentation").attr('value',"Stop Presentation");
53 }
54 }
[329]55
56</script>
57
58</head>
59<body>
[332]60<table border="2" width="100%" height="100%">
[329]61<tr>
[332]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 />
64 <input type="button" id="togglePresentation" OnClick="changePresentation()" value="Start Presentation" />
65 <input type="button" id="toggleCamera" OnClick="flipImages()" value="Switch Camera's" />
[329]66 </td>
[332]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"/>
[329]69 </td>
70</tr>
71<tr>
72 <td>
[332]73 <iframe src="http://webchat.freenode.net?&channels=occ&uio=d4" width="100%" height="100%"></iframe>
[329]74 </td>
75</tr>
[332]76<tr>
77 <td colspan="2">
[329]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>
[332]80 </td>
81</tr>
[329]82</table>
83
[332]84<div id="jplayer" />
[329]85</body>
86</html>
Note: See TracBrowser for help on using the repository browser.