[Webkit-unassigned] [Bug 186302] iOS does not call onIceCandidate
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 5 13:21:34 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=186302
--- Comment #2 from philipp.kuederli at gmail.com ---
Your link neither worked on iOS Safari. I reduced the whole example to the simple gathering. The project example file is here:
https://github.com/kudi82/webrtc-ios/blob/master/static/webrtc.js
The code should actually be the same as in your link, but also does not work (no candidates):
##################################################################
var config = {
'iceServers': [
{
urls: [
'stun:stun.l.google.com:19302'
]
}
],
'iceTransportPolicy': 'all',
'rtcpMuxPolicy': 'negotiate'
};
var constraints = {
optional: [
{ 'RtpDataChannels': false }
]
}
var constraints = {
optional: [
{ 'googIPv6': true }
]
}
var offerOptions = {
offerToReceiveAudio: 1
}
var connection = new RTCPeerConnection(config, constraints);
connection.createDataChannel('channel');
connection.onicecandidate = function(event) {
appendCandidate(event.candidate)
};
connection.createOffer(offerOptions)
.then(function(offer) {
return connection.setLocalDescription(offer);
})
.then(function() {
appendOffer(connection.localDescription)
appendOfferDetail(connection.localDescription)
})
.catch(function(error) {
appendError(error)
})
##################################################################
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180605/6f5bfc23/attachment.html>
More information about the webkit-unassigned
mailing list