{"action":"opened","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/367","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/367/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/367/events","html_url":"https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/367","id":189214149,"number":367,"title":"Win 10 Pro N + Logitech c920 webcam = 0x80040154 - Class not registered","user":{"login":"robert-crowell-gdit","id":21220489,"avatar_url":"https://avatars.githubusercontent.com/u/21220489?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-crowell-gdit","html_url":"https://github.com/robert-crowell-gdit","followers_url":"https://api.github.com/users/robert-crowell-gdit/followers","following_url":"https://api.github.com/users/robert-crowell-gdit/following{/other_user}","gists_url":"https://api.github.com/users/robert-crowell-gdit/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-crowell-gdit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-crowell-gdit/subscriptions","organizations_url":"https://api.github.com/users/robert-crowell-gdit/orgs","repos_url":"https://api.github.com/users/robert-crowell-gdit/repos","events_url":"https://api.github.com/users/robert-crowell-gdit/events{/privacy}","received_events_url":"https://api.github.com/users/robert-crowell-gdit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-14T20:16:04Z","updated_at":"2016-11-14T20:16:04Z","closed_at":null,"body":"### Expected Behaviour\r\nUsing phonegap-plugin-barcode scanner master branch, Win 10 x86 laptop with Logitech c920 web cam, expected to be able to scan barcode value using example code on main project page. Project does not say that Win10 + web cam are not usable combination with this plugin, therefore I expected the plugin to scan a barcode.\r\n\r\nNot sure what I'm doing wrong, since I'm new to this.\r\n\r\n\r\n### Actual Behaviour\r\nReceived Visual Studio debugger error for 'Class not registered':\r\n\r\n'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/3.0)'. \r\n'WWAHost.exe' (Script): Loaded 'Sourcemap (ms-appx-web://com.gdit.cordova.rounds/www/js\\jquery.mobile-1.4.5\\jquery.mobile-1.4.5.min.js)'. \r\nException is about to be caught by JavaScript library code at line 444, column 17 in ms-appx-web://com.gdit.cordova.rounds/www/plugins/phonegap-plugin-barcodescanner/src/windows/BarcodeScannerProxy.js\r\n0x80040154 - JavaScript runtime error: Class not registered\r\n\r\nException is about to be caught by JavaScript library code at line 538, column 13 in ms-appx-web://com.gdit.cordova.rounds/www/plugins/phonegap-plugin-barcodescanner/src/windows/BarcodeScannerProxy.js\r\n0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'pause'\r\n\r\n\r\nLine 444 in master branch references the Windows.Media object:\r\n\r\nvar captureSettings = new Windows.Media.Capture.MediaCaptureInitializationSettings();\r\n\r\nSo, I'm not sure if my laptop is missing essential software that the plugin requires, or what. Looked on MSDN's site for this object, but it never stated how to get it, if it's missing or not registered.\r\n\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n(see Steps to Reproduce)\r\n\r\n#### Steps to Reproduce\r\nWin 10 + web cam with proper drivers, Cordova, Git and example project setup.\r\n\r\ncordova build\r\n\r\nOpen Windows 10 Visual Studio project \"platforms \\ windows \\ CordovaApp.vs2013.sln\", modified package.windows10.appxmanifest Capabilities to include \"Webcam\" support (assumed that it's needed, but error occurs either way), then start debugger.\r\n\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nMicrosoft Windows 10 Pro N, x86 arch   v. 10.0.14393 Build 14393\r\nMicrosoft Visual Studio Community 2015  v. 14.0.25425.01 Update 3\r\nMicrosoft .NET Framework v. 4.6.01586\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nN/A\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version\r\n            = 6.4.0\r\n\r\n    cordova platforms\r\n         = Installed platforms:\r\n                     android 6.0.0\r\n                     browser 4.1.0\r\n                     windows 4.4.3\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-barcodescanner\r\n\r\n= phonegap-plugin-barcodescanner 6.0.3 \"BarcodeScanner\"\r\n\r\n#### Sample Code that illustrates the problem\r\nExample code from the project's main page..\r\n\r\ncordova.plugins.barcodeScanner.scan(\r\n      function (result) {\r\n          alert(\"We got a barcode\\n\" +\r\n                \"Result: \" + result.text + \"\\n\" +\r\n                \"Format: \" + result.format + \"\\n\" +\r\n                \"Cancelled: \" + result.cancelled);\r\n      },\r\n      function (error) {\r\n          alert(\"Scanning failed: \" + error);\r\n      },\r\n      {\r\n          \"preferFrontCamera\" : true, // iOS and Android\r\n          \"showFlipCameraButton\" : true, // iOS and Android\r\n          \"prompt\" : \"Place a barcode inside the scan area\", // supported on Android only\r\n          \"formats\" : \"QR_CODE,PDF_417\", // default: all but PDF_417 and RSS_EXPANDED\r\n          \"orientation\" : \"landscape\" // Android only (portrait|landscape), default unset so it rotates with the device\r\n      }\r\n   );\r\n\r\n#### Logs taken while reproducing problem\r\n\r\n'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/3.0)'. \r\n'WWAHost.exe' (Script): Loaded 'Sourcemap (ms-appx-web://com.gdit.cordova.rounds/www/js\\jquery.mobile-1.4.5\\jquery.mobile-1.4.5.min.js)'. \r\nException is about to be caught by JavaScript library code at line 444, column 17 in ms-appx-web://com.gdit.cordova.rounds/www/plugins/phonegap-plugin-barcodescanner/src/windows/BarcodeScannerProxy.js\r\n0x80040154 - JavaScript runtime error: Class not registered\r\n\r\nException is about to be caught by JavaScript library code at line 538, column 13 in ms-appx-web://com.gdit.cordova.rounds/www/plugins/phonegap-plugin-barcodescanner/src/windows/BarcodeScannerProxy.js\r\n0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'pause'\r\n\r\n"}}
{"actor":{"display_login":"robert-crowell-gdit"}}