Failed to execute 'createObjectURL' on 'URL':

后端 未结 8 1326
暗喜
暗喜 2020-11-27 10:52

Display Below error in Safari.

Failed to execute \'createObjectURL\' on \'URL\': No function was found that matched the signature provided.

8条回答
  •  遥遥无期
    2020-11-27 11:36

    This error is caused because the function createObjectURL is deprecated for Google Chrome

    I changed this:

    video.src=vendorUrl.createObjectURL(stream);
    video.play();
    

    to this:

    video.srcObject=stream;
    video.play();
    

    This worked for me.

提交回复
热议问题