Thejesh GN avatar Thejesh GN committed 10afde2

fixed path values in webcam

Comments (0)

Files changed (2)

gui/sub/sub_webcam.html

 	<script language="JavaScript">
 		document.write( webcam.get_html(500, 375) );
 	</script>
-	
-	<!-- Some buttons for controlling things -->
-	<br/><form>
-		<input type=button value="Configure..." onClick="webcam.configure()">
-		&nbsp;&nbsp;
-		<input id="capture_button" type=button value="Capture" onClick="do_capture()">
-		&nbsp;&nbsp;
-		<input id="dump_button" type=button value="Insert" onClick="do_dump()" disabled="true">
-		&nbsp;&nbsp;
-		<input type=button value="Reset" onClick="do_reset()">
-	</form>
-	
-	<!-- Code to handle the server response (see test.php) -->
+		<!-- Code to handle the server response (see test.php) -->
 	<script language="JavaScript">
 		webcam.set_hook( 'onComplete', 'my_completion_handler' );
 		
 			do_reset();
 		}
 	</script>
+	<!-- Some buttons for controlling things -->
+	<br/><form>
+		<input type=button value="Configure..." onClick="webcam.configure()">
+		&nbsp;&nbsp;
+		<input id="capture_button" type=button value="Capture" onClick="do_capture()">
+		&nbsp;&nbsp;
+		<input id="dump_button" type=button value="Insert" onClick="do_dump()" disabled="true">
+		&nbsp;&nbsp;
+		<input type=button value="Reset" onClick="do_reset()">
+	</form>
+	
+
 	
 	</td><td width=50>&nbsp;</td><td valign=top>
 		<div id="upload_results" style="background-color:#eee;">

gui/webcam/webcam.js

 	ie: !!navigator.userAgent.match(/MSIE/),
 	protocol: location.protocol.match(/https/i) ? 'https' : 'http',
 	callback: null, // user callback for completed uploads
-	swf_url: 'webcam.swf', // URI to webcam.swf movie (defaults to cwd)
-	shutter_url: 'shutter.mp3', // URI to shutter.mp3 sound
+	swf_url: '/gui/webcam/webcam.swf', // URI to webcam.swf movie (defaults to cwd)
+	shutter_url: '/gui/webcam/shutter.mp3', // URI to shutter.mp3 sound
 	api_url: '', // URL to upload script
 	loaded: false, // true when webcam movie finishes loading
 	quality: 90, // JPEG quality (1 - 100)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.