Re: [mediacapture-main] Revive createObjectURL?

@foolip The first fallback you mention:
```js
if ('srcObject' in video) {
  video.srcObject = stream;
} else {
  video.src = URL.createObjectURL(stream);
}
```
is right IMHO, but createObjectURL *is* the fallback there, putting it
 in the existing srcObject (0.0003%) column, i.e. it's not a fallback 
that will can reduce the 0.007-0.1% breakage number.

The other one boils down to:
```js
try {
  // try old code
} catch (e) {
  // try new code
}
```
which I agree is unlikely, because I don't think people generally 
write fallbacks for old code. That would require them to anticipate it
 being removed, which they don't.

Sadly, there's no fallback for createObjectURL. I see no way to reduce
 breakage other than putting in deprecation warnings and waiting for 
srcObject adoption.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/404#issuecomment-271635506
 using your GitHub account

Received on Tuesday, 10 January 2017 17:10:42 UTC