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

Chrome 71 remove URL.createObjectURL from MediaStream #1

Closed
b1ngx opened this issue May 13, 2020 · 1 comment
Closed

Chrome 71 remove URL.createObjectURL from MediaStream #1

b1ngx opened this issue May 13, 2020 · 1 comment

Comments

@b1ngx
Copy link

b1ngx commented May 13, 2020

关于返回的流如何附加到

Chrome 71 remove URL.createObjectURL from MediaStream

https://developers.google.com/web/updates/2018/10/chrome-71-deps-rems#remove_urlcreateobjecturl_from_mediastream

The sample code does not work in modern browsers and needs to be modified

video.src = window.URL.createObjectURL(stream);

to:

video.srcObject = stream;
a-wing added a commit that referenced this issue May 15, 2020
@a-wing
Copy link
Owner

a-wing commented May 15, 2020

Thank you very much, the original book content is relatively old, some demos I have not fully tested

@a-wing a-wing closed this as completed May 15, 2020
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