W3C home > Mailing lists > Public > public-media-capture@w3.org > February 2016

[mediacapture-fromelement] Should it be possible to call canvas.captureStream() before canvas.getContext()?

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Thu, 18 Feb 2016 10:50:12 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-134544059-1455792608-sysbot+gh@w3.org>
foolip has just created a new issue for 
https://github.com/w3c/mediacapture-fromelement:

== Should it be possible to call canvas.captureStream() before 
canvas.getContext()? ==
```HTML
<!DOCTYPE html>
<canvas></canvas><video></video>
<script>
var canvas = document.querySelector('canvas');
var ms = canvas.captureStream();
</script>
```

Here, Firefox throws a `NS_ERROR_NOT_INITIALIZED` exception, while 
Chrome does not. The spec doesn't say anything about this.

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-fromelement/issues/31 using your 
GitHub account
Received on Thursday, 18 February 2016 10:50:14 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 18 February 2016 10:50:14 UTC