【发布时间】:2015-12-19 11:41:18
【问题描述】:
我已经在 Azure 上的虚拟机 (Ubuntu-14.04) 上部署了 kurento java 教程。我能够成功执行/测试教程 1 到教程 3,但是教程 4 和教程 5 不起作用。在 one2one 通话期间,我无法接收对等媒体流。所需的 UDP/TCP 也已打开。
我已在WebRtcEndpoint.conf.ini & kurento.conf.json 中提供了所需的 STUN 配置
stunServerAddress=74.125.142.127
stunServerPort=19302
"stunServerAddress" : "74.125.142.127",
"stunServerPort" : 19302
我尝试调试,但在日志中找不到任何错误。
Logs :
2015-12-19 11:35:28,919387 5451 [0x00007ff22dffb700] debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent() Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1040 typ srflx raddr 10.146.240.34 rport 59342","sdpMLineIndex":0,"sdpMid":"audio"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
-> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,919680 5451 [0x00007ff22dffb700] debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent() Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1040 typ srflx raddr 10.146.240.34 rport 59342","sdpMLineIndex":1,"sdpMid":"video"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
-> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,931921 5451 [0x00007ff2177fe700] debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent() Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1042 typ srflx raddr 10.146.240.34 rport 37000","sdpMLineIndex":0,"sdpMid":"audio"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
-> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,932150 5451 [0x00007ff2177fe700] debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent() Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1042 typ srflx raddr 10.146.240.34 rport 37000","sdpMLineIndex":1,"sdpMid":"video"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
-> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:43,950679 5451 [0x00007ff24a7fc700] info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions() Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:36:43,951659 5451 [0x00007ff24a7fc700] info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions() Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:37:43,948660 5451 [0x00007ff25451f700] debug KurentoMediaSet MediaSet.cpp:131 doGarbageCollection() Running garbage collector
2015-12-19 11:37:43,952370 5451 [0x00007ff24a7fc700] info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions() Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:38:43,952796 5451 [0x00007ff24a7fc700] info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions() Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
【问题讨论】:
-
kurento.conf.json不需要添加任何内容,因为所有关于 webrtc 的配置都已移至您修改的其他文件中。你能用命令stun -v 74.125.142.127:19302检查连接吗?在该命令的输出中,您应该会看到您的公共 IP。如果您没有获得该公共 IP,则说明您的 Azure 安装存在问题。 -
最初我没有对 kurento.conf.json 进行任何更改,但由于 one2one 调用不起作用,我在 kurento.conf.json 中添加了 stun 配置作为试错法。我尝试了所有的组合。甚至 stun 配置(stun -v 74.125.142.127:19302)也在工作 STUN 的日志:即将发送 len 28 的 msg 到 13.67.48.97:1040 收到的 stun 消息:28 字节 ChangeRequest = 0 收到的类型为 1 id=11 的消息收到的 stun 消息:32 个字节 MappedAddress = 13.67.48.97:1041 收到的类型为 257 id=2 的消息 收到的 stun 消息:32 个字节 收到的 stun 消息:32 个字节 MappedAddress = 13.67.48.97:1041
-
好的,这正在工作,因为第一个教程正在工作。与其他两个没有区别,或者至少不应该有。您是否在客户端、服务器应用程序或 KMS 日志中遇到任何错误?