by apitman · 2y ago · 0 comments
I always have the feeling that WebRTC had so much more potential than has been realized. I wonder how things might have turned out differently if it had better server and browser support ~5 years ago. I remember trying to use it for a game at the time and had trouble finding a good server implementation, and had all sorts of issues with Safari.
In the near future I'm not sure there will be much reason to use it over WebTransport, unless you're doing p2p. I actually prefer WebRTC's data channel API, since you can get separate datagram streams, whereas with WebTransport you have to multiplex them yourself[1].
[0]: https://github.com/anderspitman/awesome-tunneling
[1]: https://datatracker.ietf.org/doc/html/rfc9221#name-multiplex...
Tangential rant, but this appears to be intentional. As far as I can tell, Apple is intentionally lagging behind supporting various web technologies, to make the web as unattractive as possible (within their ecosystem), and by extension, to make native app development as attractive as possible, so they can take a cut of the profits.
If their reasoning is correct, then they would actually lose money by not investing into their own browser engine, which is somewhat amusing, because the worse of a job they do, the more money they make.
(I find this idea particularly painful in the context of "we at Apple love web technology so much, we're going to use our love of web as our main excuse for killing Flash"...)
It's not so much about a binary choice between app store vs web. I think it's more just, the web is not very "Apple". It's too open, wild. If they go "all in" on the web, they'd be afraid to risk "losing themselves" or fucking something up and creating a backlash.
Tho I disagree that Safari is so defunkt as you make out. They have a bunch of new features. Check out: https://webkit.org/blog/15243/release-notes-for-safari-techn...
hopefully it will get some attention again. i have done a bunch of really interesting experiments with data channels. being able to choose the reliability is nice for sure.
And this is another reason why the web will always be a shaky foundation for local first and p2p software.
WebRTC has P2P and it also doesn't require the user to have any knowledge of Video/Networking. The alternatives to it are more geared at 'video developers'. I don't know which way the future will go.