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

Live video preview is not available #13

Open
shiyasvp92 opened this issue Jun 28, 2019 · 1 comment
Open

Live video preview is not available #13

shiyasvp92 opened this issue Jun 28, 2019 · 1 comment

Comments

@shiyasvp92
Copy link

Even after granting permission, we cant view what is recording. after record we can see the video

@Fed0t
Copy link

Fed0t commented May 27, 2020

VideoPlayer.js

handleGranted(stream) {
this.setState({ granted: true });
//add this
this.setStreamToVideo(stream);
console.log('Permission Granted!');
}

I also removed window.URL:

setStreamToVideo(stream) {
const video = this.refs.app.querySelector('video');
video.srcObject = stream;
}

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