Discussion:
[chromium-bugs] Issue 587789 in chromium: canvas.captureStream(0) does not always capture the first frame
c***@googlecode.com
2016-02-18 10:16:53 UTC
Permalink
Status: Assigned
Owner: ***@chromium.org
Labels: Type-Bug Pri-2 Cr-Blink-WebRTC OS-All Cr-Blink-CaptureStream

New issue 587789 by ***@opera.com: canvas.captureStream(0) does not
always capture the first frame
https://code.google.com/p/chromium/issues/detail?id=587789

Test case:

<!DOCTYPE html>
<canvas></canvas><video></video>
<script>
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
ctx.width = ctx.height = 100;
ctx.fillStyle = 'purple';
ctx.fillRect(0, 0, 50, 50);
var ms = canvas.captureStream(0);
var video = document.querySelector('video');
video.src = URL.createObjectURL(ms);
video.play();
</script>

In Live DOM Viewer:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3897

At the point where captureStream(0) is called, fillRect has already been
called, yet it does not show up in the video.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs

---
You received this message because you are subscribed to the Google Groups "Chromium-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-bugs+***@chromium.org.
c***@googlecode.com
2016-02-18 10:20:53 UTC
Permalink
Comment #2 on issue 587789 by ***@opera.com: canvas.captureStream(0)
does not always capture the first frame
https://code.google.com/p/chromium/issues/detail?id=587789

Related spec issue:
https://github.com/w3c/mediacapture-fromelement/issues/29
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs

---
You received this message because you are subscribed to the Google Groups "Chromium-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-bugs+***@chromium.org.
c***@googlecode.com
2016-02-18 10:33:00 UTC
Permalink
Comment #3 on issue 587789 by ***@opera.com: canvas.captureStream(0)
does not always capture the first frame
https://code.google.com/p/chromium/issues/detail?id=587789

The `ctx.width = ctx.height = 100` bit of the test is bogus, turns out that
isn't implemented in Blink, these attributes are on HTMLCanvasElement only.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs

---
You received this message because you are subscribed to the Google Groups "Chromium-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-bugs+***@chromium.org.
Loading...