User Media

Bugs will be moved here once resolved.

Post » Mon Nov 28, 2016 8:04 pm

Problem Description
If a camera source is requested c2 returns a fault notification if the camera height/width are not set to zero (default).

Attach a Capx
capx

Description of Capx
A user media request is made after a button press.

Steps to Reproduce Bug
  • Run the layout, click on the sprite.

Observed Result
Javascript error!
TypeError: can't assign to properties of (new Boolean(true)): not an object
http://localhost:50002/UserMedia_plugin.js, line 566 (col 36)


and

Uncaught TypeError: Cannot create property 'width' on boolean 'true'
at pluginProto.Instance.Acts.RequestCamera

This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.


Expected Result
No attempt to create a width on a boolean....

NB this does not happen if a list of media sources is requested first.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Edge: (YES)

Operating System and Service Pack
W10 x64

Construct 2 Version ID
r240 64 bit.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,215
Reputation: 43,852

Post » Wed Dec 21, 2016 1:23 pm

Thanks, should be fixed in next build.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,852


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests