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

Does react-player support srcObject prop? #398

Closed
blueyestar opened this issue May 15, 2018 · 1 comment
Closed

Does react-player support srcObject prop? #398

blueyestar opened this issue May 15, 2018 · 1 comment

Comments

@blueyestar
Copy link

I need to play a video stream.
I tried to set url = URL.createObjectURL(stream). It works find.
But URL.createObjectURL will be deprecated.
Then, how can I use srcObject to set up the steam?

@cookpete
Copy link
Owner

Added support for MediaStream objects in 1.6.0. Just pass a MediaStream in as the url prop.

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