Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error NotReadableError Could not start video source #2

Open
chitainguyen opened this issue Sep 17, 2019 · 5 comments
Open

error NotReadableError Could not start video source #2

chitainguyen opened this issue Sep 17, 2019 · 5 comments

Comments

@chitainguyen
Copy link

The first is always ok, when i close the screen and try to reopen. it can not work any more.

Maybe it can not close the old one. at below link.
https://blog.addpipe.com/common-getusermedia-errors/

Can you check again on the close method.

@chitainguyen
Copy link
Author

it through error "NotReadableError"

@tahv0
Copy link
Owner

tahv0 commented Sep 18, 2019

@chitainguyen For helping rsolving this issue, could you tell more specific information how to reproducre it.

Which OS and OS version did you use?
Which browser and browser version did you use?
Was it normal website (SPA) or PWA App?

How did you "close the screen"? Can you tell me about your component lifecycles when this error occured? How mean how did you use it.

Giving me some example code can help me find the problem sooner.
Thanks.

@chitainguyen
Copy link
Author

Dear,
Thanks for your respond,

  • Which OS and OS version did you use?
    Answer: OS is android, version 6.0. And on iOS, it is not working too.

  • Which browser and browser version did you use?
    Answer: browser is chrome.

Was it normal website (SPA) or PWA App?
Answer: i build with cordova android.

How did you "close the screen"? Can you tell me about your component lifecycles when this error occured? How mean how did you use it.

  • Open it on first time -> it work ok
  • Turn off screen OR switch to another app OR device idle for the couple of time.
  • Switch to app again. -> open QR reader -> throw this error

Giving me some example code can help me find the problem sooner.
My Code:
<QrReader
delay={delay}
onError={this.handleError}
onScan={this.handleScan}
style={{width: '100%'}}
/>

@chitainguyen
Copy link
Author

What information can i supply for this case, is there any result?.
Thanks alot

@tahv0
Copy link
Owner

tahv0 commented Sep 26, 2019

Sorry I haven't had any time to look into Cordova. I think this is Cordova specific problem. I'll try to find time to look into this. Example codes and PRs are also welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants