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

Warning for URL.createObjectURL(stream) Deprecated #8

Open
kris-ipeh opened this issue Oct 10, 2018 · 2 comments
Open

Warning for URL.createObjectURL(stream) Deprecated #8

kris-ipeh opened this issue Oct 10, 2018 · 2 comments

Comments

@kris-ipeh
Copy link

Hi community !
URL.createObjectURL(stream) method will be remove soon by chrome. Console show us :
URL.createObjectURL(stream) is deprecated, please use elem.srcObject = stream instead
I tried but dont know how to implement it with react... Could someone help please ?

@kshantanu93
Copy link

Same issue, help someone!!

@bikrambhattacharya
Copy link

@kris-ipeh @kshantanu93
<video autoPlay muted ref={video => {this.video = video}} />
this.video.srcObject = this.props.src
I used this implementation. It is working fine.

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

3 participants