HTML5 Canvas drawImage with video source not working on Android

眉间皱痕 提交于 2019-11-30 20:50:43

It seems to be an issue with that specific file format (mp4).

Substituting a webm file and it works fine.

Unfortunate, but that's been the way of <video> for a while (to really require webm/ogg and not just mp4, regardless of what browsers claim to support).

(I bet its a bug relating to anti-drm screenshot stuff? who knows)

for example use the source http://video.webmfiles.org/big-buck-bunny_trailer.webm and it will work: http://jsfiddle.net/h1hjp0Lp/15/

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.

Scallion Miku

For HUAWEI GRA-TL00 with Android 5.0.1, drawImage isn't working for mp4 or webm.

Refer to crestejs video Bitmap.

Related Links:

  1. Using Images

  2. Can I use: Canvas?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!