Canvas ToDataURL returns blank image when drawn from Video element
Reported by
inson...@gmail.com,
Mar 30 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Steps to reproduce the problem: 1. Setup MediaSource extension 2. appendBuffer + start playing 3. drawImage on canvas from Video element 4. get image with toDataURL() (alsa fails with getImageData), and put it as source to <img> 4*. if you copy image or save image from <canvas> it's blank too. Despite the fact, that image is rendered. What is the expected behavior? data uri contents non-blank copy of video frame What went wrong? out put of canvas is blank (can't get any data) Did this work before? N/A Does this work in other browsers? Yes Chrome version: 65.0.3325.181 (Developer Build) (64-bit) Channel: dev OS Version: ArchLinux Flash Version: Shockwave Flash 29.0 r0 it works fine on Windows and Safari (same version).
,
Apr 2 2018
Thanks for filing the issue! Able to reproduce the issue on reported chrome version 65.0.3325.181 and on the latest canary 67.0.3386.0 using Windows 10, Ubuntu 14.04 and Mac 10.13.1. As the issue is seen from M60(60.0.3072.0) considering it as Non-Regression and marking it as Untriaged. Hence requesting someone from "Blink>Canvas" team to have a look into it.
,
Apr 23 2018
It works fine in a tip-of-tree build, but you have to workaround a recently added restriction that Chrome has: video.play() must be called from within a function that was initiated by a user action. Attached is a modified version of the test HTML with the addition of a Play button. Load the page, hit play. I can confirm this is broken in Chrome 65, but it works fine in 68. Closing this issue since it is no longer reproducible. |
|||
►
Sign in to add a comment |
|||
Comment 1 by vamshi.kommuri@chromium.org
, Apr 1 2018