...
When establishing connection with Safari browser, IPv4 candidates are preferred unless some problem in STUN-DTLS procedure occur with such candidate. Therefore, in Safari IPv4 will be used if client has both IPv4 and IPv6 interfaces working and traffic between client and server is not blocked. In other browsers (see example pictures above) IPv6 candidates are preferred.
Known issues
1. WebRTC publishing/playback doe not work in any browser on IPv6 only host
Symptoms: stream publishing or playback fails with Failed by ICE timeout
error
Solution: If a host has only IPv6 address (and localhost), ICE candadates exchange does not work, RTCPeerConnection.onicecandidate
event is nor fired in most browsers. Use RTMP to publish and RTSP, RTMP, HLS to play.