<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (Safari 9): drawImage doesn't paint the current frame of a video"
href="https://bugs.webkit.org/show_bug.cgi?id=153588#c21">Comment # 21</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (Safari 9): drawImage doesn't paint the current frame of a video"
href="https://bugs.webkit.org/show_bug.cgi?id=153588">bug 153588</a>
from <span class="vcard"><a class="email" href="mailto:electroteque@gmail.com" title="Daniel Rossi <electroteque@gmail.com>"> <span class="fn">Daniel Rossi</span></a>
</span></b>
<pre>call draw image then a timeout then draw image again for Safari. It stops the black frame issue.
Here is an es6 util of mine before I do the actual capture
preCapture(container, onSuccess) {
const canvas = this.createCanvas(),
context = canvas.getContext("2d");
context.drawImage(container, 0, 0);
this.clearCanvas(canvas);
setTimeout(() => {
onSuccess(container);
}, 1000);
}
Maybe its only required once no idea.
I've become a master of finding work around for all these faulty webkit flaws.
I even copped abuse on one ticket for eventually reporting a work around in that ticket and telling them not to bother after months of no response hahah.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>