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

[mediacapture-fromelement] video.captureStream() with no source should throw

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Mon, 14 Mar 2016 12:27:55 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-140660494-1457958473-sysbot+gh@w3.org>
foolip has just created a new issue for 

== video.captureStream() with no source should throw ==
Or at least, that is what Blink does:

However, I would argue that this should not be spec'd by looking at 
`currentSrc`, but rather using `networkState`. We have a similar check
 in [Media 
> If the media element’s `networkState` is `NETWORK_LOADING` or 
`NETWORK_IDLE`, throw an `InvalidStateError` exception and abort these

Blink actually throws `NotSupportedError`. The exception type is of 
minor importance, but consistency is nice. Media Session could change 
if there's a reason to prefer `NotSupportedError`.

The problem with `currentSrc` is that it isn't actually reset by the 
media element load algorithm, so it can be non-empty even when there 
is no resource any longer.


Please view or discuss this issue at 
https://github.com/w3c/mediacapture-fromelement/issues/37 using your 
GitHub account
Received on Monday, 14 March 2016 12:27:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:35 UTC