I am trying to use ScriptCam for my MVC4 project. I have downloaded the required files and followed the instructions given on the site. However, when I go to run the application, I get a problem in Google debugger (shown below) -
get http: // localhost: 9171 / qr / webcamlogo.png 404 (not found) qr: 145 Uncaught TypeError: Undefined is not a function qr: get 194 http: // localhost: 9171 / qur / webcamlogo.png 404 (not found) swfobject.js: 4 receive http: // localhost: 9171 / QR / scriptcam SWF 404 (not found) I have now tried to understand how to change the path location of SWF.file but my Javascript experience is only one week old. Below is my view file ... the remaining javascript files can be found in the above link.
qr.cshtml
@ {ViewBag.Title = "Webcam"; } & Lt; Script language = "javascript" src = "// ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> & Lt; Script language = "javascript" src = "// ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> & Lt; Script language = "javascript" src = "~ / webcams / script.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ("# webcam") scriptcam ({onError: onError, cornerRadius: 0, onWebcamReady: onWebcamReady});}); Function on error (error id, error message) {warning (error message); } Change functionCamera () {$ .scriptcam.changeCamera ($ ('#Camernname'). Val ()); } $ ('$ NameName') ($ ('(& lt; option & gt; & lt; / option & gt;') .low (index) .html (text))}); $ ('# CameraNames') Val (camera). } & Lt; / Script & gt; & Lt; Div style = "width: 330px; float: left;" & Gt; & Lt; Object type = "application / x-shockwave-flash" data = "scriptcam.swf" width = "320" height = "240" id = "webcam" style = "visibility: visible," & gt; & Lt; Ultimate name = "menu" value = "false" & gt; & Lt; Ultimate name = "wmode" value = "direct" & gt; & Lt; Ultimate name = "allowScriptAccess" value = "always" & gt; & Lt; Ultimate name = "allowFullScreen" value = "true" & gt; & Lt; Ultimate name = "flashvars" value = "width = 320 & amp; height = 240 & amp; chatWindow = chatWindow & amp; path = & amp; zoom = 1 & amp; amp; zoomChat = 1 & amp; amp; Rotate = 0 & amp; amp; skewX = 0 & amp; amp; skewY = 0 & amp; amp; flip = 0 & amp; amp; amp; NoFlashFound =% 3Cp% 3EYou% 20need% 20% 3Ca% 20href% 3d% 22http% 3A% 2F% 2Fwww.adobe.com% 2Fgo% 2Fgetflashplayer% 22% 3EAdobe% 20Flash% 20Player% 2011.7% 3C% 2FA% 3E% 20to% 20use% 20this% 20software.% 3Cbr % 2F% 3EPlease% 20click% 20on% 20th% 20link% 20to% 20download% 20the% 20installer% 3C% 2Fp% 3E & amp; onError = function% 20onError (errorId% 2CerrorMsg)% 20% 7B% 0A% 09% 09% 09% 09alert (ERRORMSG)% 3B% 0A% 09% 09% 09% 7D & amp; amp; amp; amp; amp; amp; edgeRadius = 0 & amp; onWebcamReady = function% 20onWebcamReady (cameraNames% 2Ccamera% 2Cmic rophoneNames% 2Cmicrophone% 2Cvolume)% 20% 7B% 0A% 09% 09% 09% 09% 24.each (cameraNames% 2C% 20function (Index% 2C% 20text)% 20% 7B% 0A% 09% 09% 09% 09% 09% 24 ('% 23cameraNames'). Attached (% 20% 24 ('% 3Coption% 3E% 3C% 2Foption% 3E'). Val (index) 20% (%)% 0A% 09% 09% 09% 09% 7 days)% 3 B% 20% 0A% 09% 09% 09% 09% 24 ('% 23cameraNames') Val (camera)% 3B% 0A% 09% 09% 09% 7D & amp; Amp; Id = webcam ">