Re:On the Road to WebRTC 1.0, Including VP8
by JimDabell on Tuesday March 12, 2019 @03:26PM
(#19371986)
If it's not enabled in web views, there's nothing stopping browsers from polyfilling it with native code.
[ Parent
| on HN ]
There is everything stopping you. WKWebView runs in its own process and has very limited options for integrating native code.
Re:On the Road to WebRTC 1.0, Including VP8
by JimDabell on Tuesday March 12, 2019 @04:45PM
(#19372833)
The model I was thinking of was native code in the native app, injected polyfill that talks to the native code over a message bus. The native code can draw over the top of the web view and pass messages in. Is there anything in particular stopping that?
Re:On the Road to WebRTC 1.0, Including VP8
by Klathmon on Tuesday March 12, 2019 @11:56PM
(#19375588)
I believe the problem is the "message bus" is pretty slow, and has pretty limited throughput, especially for something like audio and video.
Re:On the Road to WebRTC 1.0, Including VP8
by SahAssar on Tuesday March 12, 2019 @07:09PM
(#19374015)
IIRC that is exactly what ericsson did, they made a iOS browser that allowed webrtc years before apple by adding functionality to webviews.
Re:On the Road to WebRTC 1.0, Including VP8
by sametmax on Tuesday March 12, 2019 @03:51PM
(#19372241)
Yes there is because you can't implement your own browser engine on iOS. Browsers are just shells for the safari engine on iPhones.
Re:On the Road to WebRTC 1.0, Including VP8
by dwaite on Tuesday March 12, 2019 @06:38PM
(#19373816)
I've heard mixed reports on this - the big issue is technical in that you can't implement your own JIT Javascript engine, because only JavaScriptCore (running out-of-process) can write executable pages.
Re:On the Road to WebRTC 1.0, Including VP8
by kalleboo on Tuesday March 12, 2019 @09:46PM
(#19374973)
The big issue is that the app store rules forbid it.
> 2.5.6 Apps that browse the web must use the appropriate WebKit framework and WebKit Javascript.
Re:On the Road to WebRTC 1.0, Including VP8
by JimDabell on Tuesday March 12, 2019 @04:41PM
(#19372792)
Where did you get the impression I was suggesting implementing your own browser engine?
The whole point of the discussion surrounds what is possible in web views, not implementing your own browser engine.