RESOLVED FIXED 173241
Switch off Legacy WebRTC API flag by default
https://bugs.webkit.org/show_bug.cgi?id=173241
Summary Switch off Legacy WebRTC API flag by default
youenn fablet
Reported 2017-06-11 11:47:50 PDT
Switch off Legacy WebRTC API flag by default
Attachments
Patch (1.58 KB, patch)
2017-06-11 11:49 PDT, youenn fablet
no flags
Patch for landing (2.24 KB, patch)
2017-06-11 23:46 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2017-06-11 11:49:03 PDT
Sam Weinig
Comment 2 2017-06-11 12:28:11 PDT
Comment on attachment 312615 [details] Patch Seems fine, but you need to update. Does this really belong in experimental settings if it's off?
youenn fablet
Comment 3 2017-06-11 14:54:02 PDT
Thanks for the review. (In reply to Sam Weinig from comment #2) > Comment on attachment 312615 [details] > Patch > > Seems fine, but you need to update. Does this really belong in experimental > settings if it's off? Some of the experimental features are activated by default, others are not. Plan is to remove that option altogether if we see that switching it off is fine. We could then get rid of any legacy API code.
youenn fablet
Comment 4 2017-06-11 23:46:01 PDT
Created attachment 312637 [details] Patch for landing
WebKit Commit Bot
Comment 5 2017-06-13 01:19:39 PDT
Comment on attachment 312637 [details] Patch for landing Clearing flags on attachment: 312637 Committed r218169: <http://trac.webkit.org/changeset/218169>
WebKit Commit Bot
Comment 6 2017-06-13 01:19:41 PDT
All reviewed patches have been landed. Closing bug.
Takahiro Ichihashi
Comment 7 2017-08-25 08:05:35 PDT
Know this is too late but I'm not happy with this switch enabled by default. Already too many work has been required to make an alignment in video-related scripts across browsers which made harder for developers to move fast. e.g. Frequent change on autostart policy (this is getting better recently though), No MediaSourceExtension API support in iOS Safari, No h.264 support in Chrome Android etc.
youenn fablet
Comment 8 2017-08-25 08:40:58 PDT
(In reply to Takahiro Ichihashi from comment #7) > Know this is too late but I'm not happy with this switch enabled by default. Providing legacy API support within WebKit would just add another flavor of well known but not well defined APIs. It makes it somehow easy at the beginning and painful at the end. adapter.js is providing legacy API on top of WebKit API. I think it will make a better job at unifying the behaviors of no-longer specified APIS between browsers. > Already too many work has been required to make an alignment in > video-related scripts across browsers which made harder for developers to > move fast. e.g. Frequent change on autostart policy (this is getting better > recently though), No MediaSourceExtension API support in iOS Safari, No > h.264 support in Chrome Android etc. The WebRTC community is working on fixing discrepancies between the different implementations. Agreed that it will take some time though. WebKit target is to support WebRTC 1.0 spec once it gets finalized.
Eric Carlson
Comment 9 2017-08-25 08:42:53 PDT
(In reply to Takahiro Ichihashi from comment #7) > Know this is too late but I'm not happy with this switch enabled by default. > Already too many work has been required to make an alignment in > video-related scripts across browsers which made harder for developers to > move fast. e.g. Frequent change on autostart policy (this is getting better > recently though), No MediaSourceExtension API support in iOS Safari, No > h.264 support in Chrome Android etc. @ultravistor - note that adapter.js has been updated to work with Safari, so you can use it to decrease the cross-browser differences.
Takahiro Ichihashi
Comment 10 2017-08-25 09:04:16 PDT
> adapter.js is providing legacy API on top of WebKit API. > @ultravistor - note that adapter.js has been updated to work with Safari, so you can use it to decrease the cross-browser differences. Thanks, now I really get it (following sentences in your blog post). "Many sites polyfill API support through the open source adapter.js project. Updating to the latest release is one way to cover for the API gap, but we recommend switching to the APIs listed in the specification." I will take a look into the adapter.js and try to migrate some of their polyfills. https://github.com/webrtc/adapter > The WebRTC community is working on fixing discrepancies between the different implementations. > Agreed that it will take some time though. > WebKit target is to support WebRTC 1.0 spec once it gets finalized. Yes. Baseline is that we are all happy to have webrtc finally landed in most major browsers. Thanks for your hard work.
Note You need to log in before you can comment on or make changes to this bug.