在 Safari 中不起作用的示例
https://github.com/Kurento/kurento-tutorial-node/tree/master/kurento-one2many-call https://github.com/Kurento/kurento-tutorial-node/tree/master/kurento-one2many-call
在 Chrome 中,一切都很好。
Safari 不会在查看模式下发送ice 候选项。演示者模式没问题
===================
update
在前面(index.js)
onOfferViewer 事件始终被执行
onIceCandidate – 从未执行过
从前端到节点的连接
var ws = new WebSocket('wss://' + location.host + '/one2many');
在 KMS 上,不会打开“转弯”,但会配置“眩晕”。我可以从 Safari 进行广播,但无法观看
深入了解 kurento utils
在WebRtcPeer初始化之前选择2个Sturm服务器
IceServers:数组 (2)
0 {用户名:未定义,凭据:未定义,网址: “stun:stun.l.google.com:19302”,网址:[“stun:stun.l.google.com:19302”]}
1 {用户名:未定义,凭据:未定义,网址: “stun:stun.voipbuster.com”,网址:[“stun:stun.voipbuster.com”]}
RTCPeerConnection创建后
Process 答案执行后
我认为下一步必须在函数 addEventListener 中
pc.addEventListener('icecandidate', function (event) {…}
在 Chrome 中,函数 addEventListener 会执行回调,但 Safari 则不会执行。
我可以假设候选人在订阅开始之前就来了,但没有证据,我不明白为什么演示者工作得很好。
detail
我开始在 Safari 中以演示者模式进行广播
Safari 版本- 13604.3.5(MacO - 11.0.1)
Safari 选项
旧 API - 已启用
冰限制 - 禁用
Bower 的依赖项
"dependencies": {
"adapter.js": "v0.2.9",
"bootstrap": "~3.3.0",
"ekko-lightbox": "~3.3.0",
"demo-console": "1.5.1",
"kurento-utils": "master"
}
package.json结构
{
"name": "kurento-one2many-call",
"version": "6.7.3-dev",
"private": true,
"scripts": {
"postinstall": "cd static && bower install"
},
"dependencies": {
"express": "~4.12.4",
"minimist": "^1.1.1",
"ws": "~1.0.1",
"kurento-client": "Kurento/kurento-client-js"
},
"devDependencies": {
"bower": "^1.4.1"
}
}
Safari 日志的输出
Safari 日志的输出
[Log] Browser does not appear to be WebRTC-capable (adapter.js, line 34)
[Debug] constraints: {"offerToReceiveAudio":true,"offerToReceiveVideo":true} (kurento-utils.js, line 268)
[Debug] Created SDP offer (kurento-utils.js, line 270)
[Debug] Local description set – "v=0
↵o=- 5811275597248577793 2 IN IP4 127.0.0.1
↵s=-
↵t=0 0
↵a=msid-semantic: WMS
↵" (kurento-utils.js, line 275)
"v=0
o=- 5811275597248577793 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic: WMS
"
[Log] Senging message: {"id":"viewer","sdpOffer":"v=0\r\no=- 5811275597248577793 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\n"} (index.js, line 70)
[Info] Received message: {"id":"viewerResponse","response":"accepted","sdpAnswer":"v=0\r\no=- 3748169328 3748169328 IN IP4 0.0.0.0\r\ns=Kurento Media Server\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=msid-semantic: WMS\r\n"} (index.js, line 70)
[Debug] SDP answer received, setting remote description (kurento-utils.js, line 320)
[Debug] Remote stream: – undefined (kurento-utils.js, line 294)
节点如何连接到KMS
var argv = minimist(process.argv.slice(2), {
default: {
as_uri: 'https://localhost:8443/',
ws_uri: 'ws://37.228.89.170:8888/kurento'
}
});