tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Camera sometimes stops working

Open cpetrov opened this issue 5 years ago • 2 comments

Problem description

When locking the device or bringing the app in the background and then back in the foreground, the camera view might freeze (only happens sometimes). Attempting to capture a picture in this state fails with:

Error: Cannot Record

Might be related to restarting the app using the reload button.

Expected behavior

The CameraView should always resume operation when the app becomes active.

Environment

  • Tabris.js version: 3.5.0
  • Device: iPad A2197
  • OS: iOS 13.6

Code snippet

Use the camera snippet: https://github.com/eclipsesource/tabris-js/blob/master/snippets/camera.tsx

cpetrov avatar Jul 28 '20 17:07 cpetrov

I've not been able to reproduce it. I tried taking an app to background as well as locking the screen. iOS 13.5 and 13.6. I also made some attempts without debugger connected. Any other circumstances which could make it easier to reproduce the issue?

karolszafranski avatar Jul 29 '20 09:07 karolszafranski

I haven't been able to reproduce it either.

patrykmol avatar Jul 29 '20 13:07 patrykmol