Game freeze on layout change while using Usermedia camera

Report Construct 2 bugs here.

Post » Fri Nov 18, 2016 5:16 pm

Problem Description
On android, Using the usermedia plugin to show camera in one layout, freezes everything if you switch the layout to the other one.
Attach a Capx
https://dl.dropboxusercontent.com/u/24761800/cam_test.capx

Description of Capx
Displays the live view from your device camera,
if you click the blue button, will switch to layout 2
If you reach layout 2 , click blue button again to switch back to layout1.

Steps to Reproduce Bug
[*] Create 2 layouts
[*] Put usermedia plugin in layout 1
[*] Request camera permission on start of layout 1
[*] Create a separate button/trigger to go to layout 2
[*] Export to cordova, then in intel XDK add the camera plugin
[*] Compile to android apk and run on device


Observed Result
On android, if you click the button to go to another layout... everything freezes.

Expected Result
Simply switch the layout as normal

Affected Device
[*] Android


Operating System and Service Pack
Windows 10

Construct 2 Version ID
v240
B
9
S
2
Posts: 77
Reputation: 741

Post » Wed Dec 21, 2016 1:06 pm

Does this reproduce in Chrome for Android in the browser? We ask that you test as many platforms as possible in the bug report requirements to help isolate what is faulty. If it works in Chrome for Android, I'd guess it's an issue with the Cordova plugin or the Intel XDK.
Scirra Founder
B
403
S
238
G
89
Posts: 24,648
Reputation: 196,133


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests