Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Black Screen when camera is already in use #541

Open
Ponsen opened this issue Sep 11, 2017 · 1 comment
Open

Black Screen when camera is already in use #541

Ponsen opened this issue Sep 11, 2017 · 1 comment

Comments

@Ponsen
Copy link

Ponsen commented Sep 11, 2017

Expected Behaviour

Error callback from scan() triggered

Actual Behaviour

Black preview is shown. "Back" or "Cancel"-Buttons non functioning.

Steps to Reproduce

create blank cordova app
add barcode plugin
add button to invoke scan
start preinstalled camera app or any other that occupies the camera
run sample app
click scan button
result: black scan-view, buttons don't work

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Windows 10
Version 1703
Build 15063.540

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Fujitsu notebook with integrated webcam

Cordova CLI version and cordova platform version

Cordova: 6.5.0
Windows Platform: 5.0.0

Plugin version

Latest Github version

Sample Code that illustrates the problem

I've added an error callback to mediaCapture.getPreviewFrameAsync promise (as seen in the gif) but it's only beeing triggered when I exit the app.

screen

Logs taken while reproducing problem

When I exit the app, the following error message is passed to my added error callback:
"Hardware MFT failed to start streaming due to lack of hardware resources."

@DelemarreA
Copy link

Have the same problem...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants