Re:Firefox to support Google's WebP image format for a faste...
by matthewmacleod on Sunday October 07, 2018 @06:20PM
(#18162920)
I'm afraid not – none of the available demos seem to work, but I don't know why that would be the case. All I can say is that I worked with the technology pretty extensively, and was absolutely able to use a data channel between Chrome and Safari 11 on both desktop and mobile without any issues.
Re:Firefox to support Google's WebP image format for a faste...
by writepub on Monday October 08, 2018 @04:32PM
(#18171034)
It doesn't work because iOS Safari hasn't implemented WebRTC Data Channels.
Re:Firefox to support Google's WebP image format for a faste...
by matthewmacleod on Monday October 08, 2018 @07:50PM
(#18172276)
I'm sorry, this is not correct. Like I said, I used data channels in Safari on iOS only a few weeks ago, and I'm not making that up!
Since you're not convinced, I looked into it a bit more, and the reason most of the available demos don't work is down to a difference in behaviour between Safari and other browsers, probably to do with address selection for the connection. WebRTC can leak private network configuration in some cases, so Safari seems to be pretty strict in that it requires `getUserMedia` to be called before allowing a data-channel-only to be established.
I made this into a small demo (https://codepen.io/anon/pen/GYrqGL) and you can see after a couple of clicks of 'connect' that a data channel connection is established and works as expected. This is a bit of a privacy/usability tradeoff. But data channels are very much implemented in Safari.
Here's a simple WebRTC DataChannel demo that doesn't work on iOS 12.0 Safari
https://webrtc.github.io/samples/src/content/datachannel/bas...