谷歌浏览器更新后无法使用摄像头Failed to execute 'createObjectURL' on 'URL'

今天谷歌浏览器更新到版本 71.0.3578.80,发现摄像头打不开。错误部分代码如下

谷歌浏览器更新后无法使用摄像头Failed to execute 'createObjectURL' on 'URL'

提示错误为TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.
    at <anonymous>:297:48

于是怀疑是不是谷歌弃用了什么方法,然后百度了很久发现

谷歌浏览器更新后无法使用摄像头Failed to execute 'createObjectURL' on 'URL'

证实这个方法应该是被弃用了,于是把代码改为

谷歌浏览器更新后无法使用摄像头Failed to execute 'createObjectURL' on 'URL'

摄像头正常了....