Chrome update-Failed to execute 'createObjectURL' on 'URL'

后端 未结 4 960
青春惊慌失措
青春惊慌失措 2021-01-31 19:14

I\'m taking an image from the webcam and storing it to the server. Everything was working fine until I got the chrome update today. My latest chrome version is:

4条回答
  •  清酒与你
    2021-01-31 19:53

    Since google update version 71, this issue is generating. I also faced this issue. But now I got the solution to it. Here is the solution:

    Replace

    videoElement.src = URL.createObjectURL(screenStream);
    

    to

    videoElement.srcObject = screenStream;
    

提交回复
热议问题