Contact emails
orp...@chromium.org, gui...@chromium.org
Spec
https://w3c.github.io/mediacapture-main/
Summary
This functionality has been removed from the spec in 2013 and superseded by assigning streams to HTMLMediaElement.srcObject directly.
Motivation
Other UAs have already deprecated (Firefox) or removed (Safari) the feature and we should align our implementation with theirs.
The old way is less safe as you need to remember to call URL.revokeObjectURL manually. The new API is object based and will make use of the GC properly.
Interoperability and Compatibility Risk
The interoperability risk should be small as other UAs already deprecated or removed the functionality. Also, all UAs currently support the new API as intended by the spec.
The compatibility risk is low as the feature is not used much (see below).
Firefox: Supported (deprecation shipped in 54, removal soon).
Edge: No public signals
Safari: Supported (feature already removed).
Web developers: No signals
Alternative implementation suggestion for web developers
Assigning the streams directly to HTMLMediaElement.srcObject will have the same effect.
Usage information from UseCounter
Considering Safari already removed the feature, I would expect more sites to migrate to the newer API.
Currently, HTMLMediaElement.srcObject is used ~6 times more often than URL.createObjectURL for MediaStreams (0.039% vs. 0.0064%)
Metrics for URL.createObjectURL(mediastream): https://www.chromestatus.com/metrics/feature/timeline/popularity/1606
Metrics for HTMLMediaElement.srcObject: https://www.chromestatus.com/metrics/feature/timeline/popularity/1603
OWP launch tracking bug
Entry on the feature dashboard
https://www.chromestatus.com/features/5618491470118912
Requesting approval to remove too?
Yes. We plan to deprecate in M66 and remove in M68.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHQbFacoPd2Z33PQ4Rf9DJU0kZZeBa9Q8dzDtWvM1ARTCG7qZw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHQbFacoPd2Z33PQ4Rf9DJU0kZZeBa9Q8dzDtWvM1ARTCG7qZw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADxkKi%2BbTYusiv73BAcmXk9o%3DWaLN4K80htvxZNPNhaE%3Dvzvbw%40mail.gmail.com.
This is a tricky one.The usage is still pretty high, ~0.01% right now. Once upon a time URL.createObjectURL was the only way to attach a MediaStream to a media element, so there's probably some old-ish code that isn't being updated much that will break.I commented on https://github.com/webrtc/adapter/issues/636 to ask if this was being done on a "real" site. API shape aside, it's a pretty reasonable thing for a top-level frame to have a MediaStream and delegating that to a cross-origin iframe. (Note that just moving the conversation to a separate window doesn't need this feature, though, one could create a same-origin window and just assign a mediaElement.srcObject within, modulo bugs.)
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHQbFacoPd2Z33PQ4Rf9DJU0kZZeBa9Q8dzDtWvM1ARTCG7qZw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADxkKi%2BbTYusiv73BAcmXk9o%3DWaLN4K80htvxZNPNhaE%3Dvzvbw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYfn-JRVM3itYaNZnWz%2BBKw_hfvM%3DPDhxFMMy4e%2B2qPHWw%40mail.gmail.com.
On Tue, Jan 16, 2018 at 6:28 AM, 'Philip Jägenstedt' via blink-dev <blin...@chromium.org> wrote:This is a tricky one.The usage is still pretty high, ~0.01% right now. Once upon a time URL.createObjectURL was the only way to attach a MediaStream to a media element, so there's probably some old-ish code that isn't being updated much that will break.I commented on https://github.com/webrtc/adapter/issues/636 to ask if this was being done on a "real" site. API shape aside, it's a pretty reasonable thing for a top-level frame to have a MediaStream and delegating that to a cross-origin iframe. (Note that just moving the conversation to a separate window doesn't need this feature, though, one could create a same-origin window and just assign a mediaElement.srcObject within, modulo bugs.)Does the delegating to a cross-origin iframe actually work in chrome today? MediaStreamRegistry::RegisterURL only has a url->stream mapping within the one renderer process, so at least out-of-process-iframes would break that use case anyway afaict.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYdm-M9VjYdx2Lk9EusKehXem%2B%3DJeyeBZ6xkrBKPg%2BdGmw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
I reused your example and tried it on a same-origin iframe and it worked. I could also just pass the stream directly to the iframe and it worked too.I believe that OOPIF will certainly prevent that use-case from working, so this shouldn't be a blocker for deprecation.
LGTM1
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHQbFadrhDDSfk4ghonBt%3DHM8YJ9X6h1v4c5ErNESXVkAL6mKg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Df-Ump6eJV%2B58sp-Gn9U-arRK-GfS6s779Jw39E4rS7Qg%40mail.gmail.com.