Deprecation of createObjectURL and replace with the new HTMLMediaElement.srcObject doesn't work for Webcam stream

后端 未结 3 1412
无人及你
无人及你 2020-12-29 04:29

I get the warning that a function will be deprecated in Chrome future release.

It\'s this script:

navigator.getUserMedia = navigator.getUserMedia ||          


        
3条回答
  •  温柔的废话
    2020-12-29 04:57

    If you are using Chrome you can use:

    video.srcObject = stream;
    

    instead of:

    this.srcObject = stream;
    

提交回复
热议问题