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

后端 未结 4 973
青春惊慌失措
青春惊慌失措 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:36

    Have you tried this?

    try {
      camera.srcObject = stream;
    } catch (error) {
      camera.src = window.URL.createObjectURL(stream);
    }
    

提交回复
热议问题