New issue
Advanced search Search tips

Issue 827518 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Canvas ToDataURL returns blank image when drawn from Video element

Reported by inson...@gmail.com, Mar 30 2018

Issue description

UserAgent: 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).
 
chromeCanvasIssue.html
238 KB View Download
Labels: Needs-Triage-M65
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET M-67 Target-67 FoundIn-67 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
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.

Comment 3 by junov@chromium.org, Apr 23 2018

Status: WontFix (was: Untriaged)
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.


chromeCanvasIssue.html
238 KB View Download

Sign in to add a comment