Live data from Hacker News

Apple Announces Full WebRTC Support in Safari 11

blog.peer5.com

151–160 of 167 posts

Re: Apple Announces Full WebRTC Support in Safari 11

#151
post #47

Earlier quoted context omitted.

Besides battery life, Chrome on the Mac prevents sleep indefinitely sometimes. If you check with pmset -g assertions, you'll see Chrome saying "WebRTC has active PeerConnections". No thanks Google, you shouldn't get to decide when my PC goes into sleep mode. I really hope Safari is better than that... Edit: just as i'm typing this, Chrome has: pid 19325(Google Chrome): [0x001ccbbb00018b19] 01:55:40 NoIdleSleepAsserti…

That seems more like a leak than normal behaviour. If you go to Window > Task Manager it'll tell you which PID corresponds to which tab.

It's the main Chrome process, I killed it and all Chrome windows were gone :)

And i wouldn't call it a leak, you need to do extra work to prevent the system from sleeping, so someone did this intentionally.

Oh well, since I had to close Chrome last evening to my computer will sleep, today I opened Safari as my main browser instead. Google annoys too much lately.

Re: Apple Announces Full WebRTC Support in Safari 11

#153

Earlier quoted context omitted.

That seems more like a leak than normal behaviour. If you go to Window > Task Manager it'll tell you which PID corresponds to which tab.

It's the main Chrome process, I killed it and all Chrome windows were gone :) And i wouldn't call it a leak, you need to do extra work to prevent the system from sleeping, so someone did this intentionally. Oh well, since I had to close Chrome last evening to my computer will sleep, today I opened Safari as my main browser instead. Google annoys too much lately.

I meant that whatever was supposed to clear the wakelock didn't run, thus leaking the wakelock. I really do find your problem odd, I recommend taking a look at your extensions if you want to track it down at some point.

Safari's fine these days though, so you do you.

Re: Apple Announces Full WebRTC Support in Safari 11

#154
post #54

Earlier quoted context omitted.

I'm not related to the Safari or any other browser team in any way. But I totally believe that it's a giant amount of work. I personally researched the effort which would just be required to implement webrtc data channels in a server application and have been rapidly been put off after seeing that I would need to have support STUN, TURN, ICE, DTLS and DTCP. With each of them having giant specs. The media formats and…

We did end up using libwebrtc but we had to strip a lot of the dependencies and also update it use system services instead where appropriate.

Thanks for the info. One more question on that: Do you think it makes sense to rerelease that independently or upstream the changes so that others could also include a more lightweight webrtc library? Or are your changes too far tied to Safari? I guess an optimal solution would need to have some kind of platform abstraction layer which then gets implemented by integrators like Chrome or Safari. Probably a big effort.

Re: Apple Announces Full WebRTC Support in Safari 11

#156

Earlier quoted context omitted.

It's the main Chrome process, I killed it and all Chrome windows were gone :) And i wouldn't call it a leak, you need to do extra work to prevent the system from sleeping, so someone did this intentionally. Oh well, since I had to close Chrome last evening to my computer will sleep, today I opened Safari as my main browser instead. Google annoys too much lately.

I meant that whatever was supposed to clear the wakelock didn't run, thus leaking the wakelock. I really do find your problem odd, I recommend taking a look at your extensions if you want to track it down at some point. Safari's fine these days though, so you do you.

I've seen 6 hour wake locks as well. From Chrome. Even if it's a leak, why 6 hours?

Re: Apple Announces Full WebRTC Support in Safari 11

#157

Earlier quoted context omitted.

Apple should stop fooling around, and start using DASH+MSE instead. But being Apple, they have very hard time letting go of their NIH and lock-in. Apple was doing video [1] long before Firefox and the web were a thing; perhaps it's Mozilla that needs to get with the times and industry standards. [1] https://en.wikipedia.org/wiki/QuickTime

> perhaps it's Mozilla that needs to get with the times Mozilla is with the times. HLS works well in Firefox. You just do it with JavaScript and it's disappointing that Apple doesn't bother to do that on their website. Here's an article on JavsScript based HLS from a couple of years ago: https://blog.peer5.com/http-live-streaming-in-javascript/

Again, performance and battery life is going to be better with Apple’s approach for mobile devices, especially since iOS devices have hardware accelerated playback.

Re: Apple Announces Full WebRTC Support in Safari 11

#158

Earlier quoted context omitted.

> perhaps it's Mozilla that needs to get with the times Mozilla is with the times. HLS works well in Firefox. You just do it with JavaScript and it's disappointing that Apple doesn't bother to do that on their website. Here's an article on JavsScript based HLS from a couple of years ago: https://blog.peer5.com/http-live-streaming-in-javascript/

Again, performance and battery life is going to be better with Apple’s approach for mobile devices, especially since iOS devices have hardware accelerated playback.

That's a bogus argument, since nothing stops Apple from supporting common standards in their hardware, instead if NIH.

Re: Apple Announces Full WebRTC Support in Safari 11

#159
post #84
post #28

WebRTC was the #1 most requested web platform feature for Safari. Now coming to macOS and iOS: https://webkit.org/blog/7726/announcing-webrtc-and-media-cap... You can even try it out now on Safari Technology Preview: https://webkit.org/blog/7627/safari-technology-preview-32/

About fucking time. I've literally been waiting for this for two and a half years! This is absolutely huge. Many, many services that could once only be provided at a premium fee or by large to massive companies like Skype or Google can now be offered for free by small start-ups without having to worry about "this page was designed to be viewed in [preferred browser] version [foo] or higher" hassles.

Well the version part still doesn’t go away ;)

Re: Apple Announces Full WebRTC Support in Safari 11

#160
post #54

Earlier quoted context omitted.

We did end up using libwebrtc but we had to strip a lot of the dependencies and also update it use system services instead where appropriate.

Thanks for the info. One more question on that: Do you think it makes sense to rerelease that independently or upstream the changes so that others could also include a more lightweight webrtc library? Or are your changes too far tied to Safari? I guess an optimal solution would need to have some kind of platform abstraction layer which then gets implemented by integrators like Chrome or Safari. Probably a big effort.

There's OpenWebRTC, which is optimized for standalone applications like media servers and proxies. The version in Chromium is also pretty easy to build and run in C/C++ applications on Linux, but requires extra work for an application like Safari.
Post reply on HN