c# - Issue with ScriptCam in MVC4 -


im trying use scriptcam https://www.scriptcam.com/demo_5.cfm mvc4 project. have downloaded files required , followed instructions on site. when go run application issue in google debugger (shown below)-

  http://localhost:9171/qr/webcamlogo.png 404 (not found) qr:145 uncaught typeerror: undefined not function qr:194 http://localhost:9171/qr/webcamlogo.png 404 (not found) swfobject.js:4 http://localhost:9171/qr/scriptcam.swf 404 (not found) 

now i've tried figure out how change path location of swf.file javascript experience week old. below view file...the rest of javascript files can got link provided above.

qr.cshtml

  @{     viewbag.title = "webcam"; }         <script language="javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>         <script language="javascript" src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>         <script language="javascript" src="~/webcam/scriptcam.js"></script>         <script>             $(document).ready(function () {                 $("#webcam").scriptcam({                     onerror: onerror,                     cornerradius: 0,                     onwebcamready: onwebcamready                 });             });              function onerror(errorid, errormsg) {                 alert(errormsg);             }             function changecamera() {                 $.scriptcam.changecamera($('#cameranames').val());             }             function onwebcamready(cameranames, camera, microphonenames, microphone, volume) {                 $.each(cameranames, function (index, text) {                     $('#cameranames').append($('<option></option>').val(index).html(text))                 });                 $('#cameranames').val(camera);             }         </script>            <div style="width:330px;float:left;">             <object type="application/x-shockwave-flash" data="scriptcam.swf" width="320" height="240" id="webcam" style="visibility: visible;"><param name="menu" value="false"><param name="wmode" value="direct"><param name="allowscriptaccess" value="always"><param name="allowfullscreen" value="true"><param name="flashvars" value="width=320&amp;height=240&amp;chatwindow=chatwindow&amp;path=&amp;zoom=1&amp;zoomchat=1&amp;rotate=0&amp;skewx=0&amp;skewy=0&amp;flip=0&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%20the%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;cornerradius=0&amp;onwebcamready=function%20onwebcamready(cameranames%2ccamera%2cmicrophonenames%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').append(%20%24('%3coption%3e%3c%2foption%3e').val(index).html(text)%20)%0a%09%09%09%09%7d)%3b%20%0a%09%09%09%09%24('%23cameranames').val(camera)%3b%0a%09%09%09%7d&amp;id=webcam"></object>             <div style="margin:5px;">                 <img src="webcamlogo.png" style="vertical-align:text-top">                 <select id="cameranames" size="1" onchange="changecamera()" style="width:245px;font-size:10px;height:25px;">                 <option value="0">hp truevision hd (04f2:b35f)</option></select>             </div>         </div>         <div style="width:135px;float:left;">             <p><button class="btn btn-small" id="btn1" onclick="$('#decoded').text($.scriptcam.getbarcode());">decode image</button></p>         </div>         <div style="width:200px;float:left;">             <p id="decoded"></p>         </div>                    </div> 

resolved

only noticing after posting bottom object type pointing in wrong direction

shows i've been picky notice obvious ha


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -