Intent to Remove: MediaStreamTrack.getSources()

240 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

Guido Urdaneta

غير مقروءة،
23‏/09‏/2016، 12:18:47 م23‏/9‏/2016
إلى blink-dev

Primary eng (and PM) emails

eng: gui...@chromium.org, h...@chromium.org

pm: bl...@chromium.org



Link to “Intent to Deprecate” thread

https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/getSources%7Csort:relevance/blink-dev/sEr9RBs9Cls/60mH4J4_DwAJ


Summary

The goal is to remove the MediaStreamTrack.getSources() method.


Motivation

This method is no longer part of the spec and is not supported by any other major browser.


Compatibility Risk

The compatibility risk is low. MediaStreamTrack.getSources() is not supported by any other major browser. It has been replaced by MediaDevices.enumerateDevices(), which Blink supports without flags since M47 and which is also supported by other browsers.


Usage information from UseCounter

Use counter graph: https://www.chromestatus.com/metrics/feature/timeline/popularity/478

Since the last three months, usage has decreased to below 0.01%.


OWP launch tracking bug

http://crbug.com/649710


Entry on the feature dashboard

https://www.chromestatus.com/feature/4765305641369600


Jochen Eisinger

غير مقروءة،
23‏/09‏/2016، 12:32:00 م23‏/9‏/2016
إلى Guido Urdaneta،blink-dev

lgtm1

Chris Harrelson

غير مقروءة،
23‏/09‏/2016، 12:34:51 م23‏/9‏/2016
إلى Jochen Eisinger،Guido Urdaneta،blink-dev
The graph shows a steady value of 0.01%. Have you done research to find out which sites are using it?

lgtm1

--
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.

Philip Jägenstedt

غير مقروءة،
23‏/09‏/2016، 4:51:33 م23‏/9‏/2016
إلى Chris Harrelson،Jochen Eisinger،Guido Urdaneta،blink-dev
A look at httparchive would be very useful. I searched for pages contained 'MediaStreamTrack.getSources' and found a lot of polyfill code. Excluding resources that also contain 'enumerateDevices'  leaves only 88 results:

Guido, can you see if there are things that will break in here?

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Dimitri

غير مقروءة،
27‏/09‏/2016، 12:17:11 م27‏/9‏/2016
إلى blink-dev،chri...@chromium.org،joc...@chromium.org،gui...@chromium.org
LGTM2.

Guido Urdaneta

غير مقروءة،
27‏/09‏/2016، 12:30:35 م27‏/9‏/2016
إلى blink-dev،chri...@chromium.org،joc...@chromium.org،gui...@chromium.org
I checked several of the sites and I didn't find anything that would break in a major way.
Practically all call sites check if getSources is available, and they can all be easily ported to enumerateDevices.
For the sites I checked, getSources does not seem to be a major part of their functionality.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Chris Harrelson

غير مقروءة،
27‏/09‏/2016، 12:42:18 م27‏/9‏/2016
إلى Guido Urdaneta،blink-dev،Jochen Eisinger
LGTM3

Philip Jägenstedt

غير مقروءة،
27‏/09‏/2016، 1:18:25 م27‏/9‏/2016
إلى Chris Harrelson،Guido Urdaneta،blink-dev،Jochen Eisinger
This was an Intent to Remove, but unless there's any hurry, at least 1 milestones of deprecation would make sense. Does that sound good?

LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

PhistucK

غير مقروءة،
27‏/09‏/2016، 2:20:33 م27‏/9‏/2016
إلى Philip Jägenstedt،Chris Harrelson،Guido Urdaneta،blink-dev،Jochen Eisinger
You mean, one additional milestone, right? Since it is already deprecated.


PhistucK

LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
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.

Guido Urdaneta

غير مقروءة،
28‏/09‏/2016، 4:33:55 ص28‏/9‏/2016
إلى blink-dev،foo...@chromium.org،chri...@chromium.org،gui...@chromium.org،joc...@chromium.org
I will update the deprecation message to say that it will be removed in M56.
The current message does not say when it will be removed.

Philip Jägenstedt

غير مقروءة،
28‏/09‏/2016، 9:17:58 ص28‏/9‏/2016
إلى Guido Urdaneta،blink-dev،chri...@chromium.org،joc...@chromium.org
I wasn't paying attention and didn't follow the link to the existing Intent to Deprecate, but yeah, just adding a removal milestone before the actual removal sounds good.

Another thing that came up in the API owners meeting is that it would be good with a simple polyfill that we can provide for those who have their site broken and just want to fix it with minimal effort. Something like:

if (window.MediaStreamTrack && !MediaStreamTrack.prototype.getSources) {
  MediaStreamTrack.prototype.getSources = function(callback) {
    /* something with enumerateDevices and a mapping */
  }
}

The possibility of this also proves that no functionality is being removed. But is it possible to provide the facing attribute using enumerateDevices?



PhistucK

LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

--
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.

الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة