#1 2016-06-03 13:23:29

edunt
Member
Registered: 2015-12-21
Posts: 258

Can't Run Webcam Sample

Hi David,

After reading your your email, I was curious to test webcam html5 API.

When I ran the sample project I got below error message:

Error: "Expected identifier" - Line: 467 - Char: 8710 - Code: 0 - Url: [url]http://127.0.0.1:9999/builder/scripts/builder.js[/url]
Error: "'Audio' is undefined" - Line: 23 - Char: 3 - Code: 0 - Url: [url]http://127.0.0.1:9999/app/scripts/app.js[/url]

I have BUSH Cam connected to my PC with builtin microphone.

Thanks

Last edited by edunt (2016-06-03 13:25:35)

Offline

#2 2016-06-03 13:27:03

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Can't Run Webcam Sample

Hello Ade,

Please, try by deleting the "_Compiled" directory manually. I am not quite sure if the latest update (which involved WebCam enhancements) can cause the problem, if we are dealing with a previous compiled sample.

The WebCam sample works for me here and did not get any other report, then delete the "_Compiled" directory and try again.

Online

#3 2016-06-03 13:32:49

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: Can't Run Webcam Sample

Hi David,

I have deleted the _compiled file and reran the sample project. The error message is still there but the camera work.
Thanks

Offline

#4 2016-06-03 14:16:37

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Can't Run Webcam Sample

Hello,

Please, choose the Menu App -> Javascript file. Take a look at the error and char line and look for something rare... I think the error is in your code, Ade, since the WebCam control does not use any "Audio" object... So take a look around in the app's Javascript file.

Online

#5 2016-06-03 16:01:17

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: Can't Run Webcam Sample

Hi David,

Done. For line 23 Audio is declar "var lastPlaySound = new Audio();" while line 467 is blank.

Offline

#6 2016-06-03 16:06:46

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Can't Run Webcam Sample

Hello,

I can't understand very well, Ade: finally you solve the problem?

Online

#7 2016-06-03 17:24:37

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: Can't Run Webcam Sample

Hi David,

Yes, problem solved.

Thanks.

Offline

#8 2016-06-03 17:26:59

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Can't Run Webcam Sample

Ok. Glad to know Ade! smile

Online

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.