Re: [webrtc-pc] Should the spec describe addStream/onaddstream as legacy API?

https://crbug.com/697059 is the tracking issue for this in Blink, where I also included getLocalStreams, getRemoteStreams and the MediaStreamEvent interface. (getStreamById is https://crbug.com/698163, and seems quite feasible to remove.)

I wrote these tests for existence: https://jsbin.com/qirujiq/edit?html,output

That shows that Chrome and Edge already ship all of these APIs, and Firefox ships everything except the removeStream method.

WebKit has everything except the onremovestream event handler attribute in their IDL:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/Modules/mediastream/RTCPeerConnection.idl

We have use counters for most of this in Chrome:
* [addStream](https://www.chromestatus.com/metrics/feature/timeline/popularity/1641)
* [removeStream](https://www.chromestatus.com/metrics/feature/timeline/popularity/1646)
* [getLocalStreams](https://www.chromestatus.com/metrics/feature/timeline/popularity/1643)
* [getRemoteStreams](https://www.chromestatus.com/metrics/feature/timeline/popularity/1644)

I defer to @guidou @henbos to say what we'd prefer happen with these APIs.

-- 
GitHub Notification of comment by foolip
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1125#issuecomment-294097801 using your GitHub account

Received on Friday, 14 April 2017 06:13:45 UTC