在safari中不要使用示例
https://github.com/Kurento/kurento-tutorial-node/tree/master/kurento-one2many-call
用铬,一切都很好。
安全不发送冰候选在视图模式。演示者模式是可以的
====================
更新
In the Front (index.js)
事件onOfferViewer总是被执行。
onIceCandidate -从未执行过
从前端到节点的连接
var ws =新的WebSocket('wss://‘+ location.host +’/ new 2多‘);
在KMS上,虽然没有打开,但是配置了眩晕。我可以从Safari广播,但我不能在上面看
查看kurento使用更深层次的
在WebRtcPeer初始化之前,选择2台Sturm服务器
iceServers:数组(2) 0{用户名:未定义,凭据:未定义,url:"stun:stun.l.google.com:19302",url:"stun:stun.l.google.com:19302"}
1{用户名:未定义,凭据:未定义,url:"stun:stun.voipbuster.com",url:"stun:stun.voipbuster.com"}
在创建RTCPeerConnection之后
在进程应答被执行之后
我认为下一步必须是一个函数addEventListener
pc.addEventListener('icecandidate', function (event) {…}
在Chrome中,函数addEventListener中执行回调,但对于Safari从不执行回调。
我可以假设候选人是在订阅开始之前来的,但是没有证据,我也不明白为什么推荐人工作得很好。
详细信息
我开始在Safari中以主持人的方式广播。
Safari版本- 13604.3.5 (MacOS11.0.1)
Safari选项
启用旧api
冰的限制-禁用
The 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 structure
{
"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'
}
}); 发布于 2019-02-05 12:22:56
有两种选择:
getUserMedia({video: true, audio: true}),并让用户接受对话框以允许在您的页面上播放视频和音频。即使您不想使用视频或音频,这也会导致safari在协商期间发送冰候选人。发布于 2018-10-09 20:00:51
这个问题含糊不清,没有提供太多细节。请提供更多关于您正在经历的问题的详细信息,以及您为修复/调试它做了什么。
您可以尝试禁用开发人员菜单中的ICE候选限制选项,并重新启动Safari,正如前面提到的在谷歌集团的这篇文章中。如果不知道更多的信息,我就无能为力了。
对于未来,请提供更彻底和详细的信息,有关问题和解决方案,您已经尝试。
https://stackoverflow.com/questions/52724194
复制相似问题