Intent to Remove: MediaStreamTrack.getSources()

ยอดดู 229 ครั้ง
ข้ามไปที่ข้อความที่ยังไม่อ่านรายการแรก

Guido Urdaneta

ยังไม่อ่าน,
23 ก.ย. 2559 12:18:4723/9/59
ถึง 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 ก.ย. 2559 12:32:0023/9/59
ถึง Guido Urdaneta, blink-dev

lgtm1

Chris Harrelson

ยังไม่อ่าน,
23 ก.ย. 2559 12:34:5123/9/59
ถึง 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 ก.ย. 2559 16:51:3323/9/59
ถึง 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 ก.ย. 2559 12:17:1127/9/59
ถึง blink-dev, chri...@chromium.org, joc...@chromium.org, gui...@chromium.org
LGTM2.

Guido Urdaneta

ยังไม่อ่าน,
27 ก.ย. 2559 12:30:3527/9/59
ถึง 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 ก.ย. 2559 12:42:1827/9/59
ถึง Guido Urdaneta, blink-dev, Jochen Eisinger
LGTM3

Philip Jägenstedt

ยังไม่อ่าน,
27 ก.ย. 2559 13:18:2527/9/59
ถึง 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 ก.ย. 2559 14:20:3327/9/59
ถึง 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 ก.ย. 2559 04:33:5528/9/59
ถึง 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 ก.ย. 2559 09:17:5828/9/59
ถึง 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 รายการ