HTML5 Canvas drawImage with video source not working on Android

前端 未结 3 643
深忆病人
深忆病人 2021-01-05 15:19

I am trying to use canvas\'s drawImage method with video source, but it\'s not working in Android 4.4.2, tested with Chrome browser.

Here\'s my code:

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-05 16:06

    I'm running Chrome 43.0.2357.93 on Android 5.0.1, and drawImage isn't working for mp4 or webm.

    It looks like Chrome isn't properly capturing frame data from the video tag. When I call getImageData and inspect the resulting imageData object, the RGBA values are all set to 0.

提交回复
热议问题