【问题标题】:can't run kurento-examples-java无法运行 kurento-examples-java
【发布时间】:2019-09-10 21:17:27
【问题描述】:

可用示例:https://134.209.199.255:8443/

我如何运行 KMS:

docker run -d --name kms -p 8888:8888 \
    -v /root/kms/WebRtcEndpoint.conf.ini:/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini \
    -e GST_DEBUG="Kurento*:5" kurento/kurento-media-server:latest

我如何运行转服务器:

sudo turnserver -a -o -v -n  --no-dtls --no-tls -u test:test -r "someRealm"

我如何运行运行 java 示例:

mvn -U clean spring-boot:run -Dkms.url=ws://localhost:8888/kurento
  1. /root/kms/WebRtcEndpoint.conf.ini 的内容(非交互式)
  2. KMS docker container logs(非交互式)
  3. TURN server discovery result

任何想法表示赞赏。

【问题讨论】:

  • 您是否尝试过配置所有 STUN 设置(stunServerAddress、stunServerPort 和 turnUrl)?我可以在日志中看到:STUN server Port not found in config; using default value: 3478。所以也许它正在尝试连接到显然不存在的端口 3478 上的本地 stun 服务器?我相信您可以尝试使用一些免费的 STUN 服务器。

标签: webrtc kurento


【解决方案1】:

客户端没有带有转向继电器信息的 configuration 属性 -

对于WebRtcPeerSendonly

var options = {
          localVideo: video,
          mediaConstraints: constraints,
        configuration: {
            iceServers: [{urls: 'turn:134.209.199.255', username: 'test', credential: 'test'}],
            iceTransportPolicy: 'relay'
        },
          onicecandidate: participant.onIceCandidate.bind(participant)
        }

对于WebRtcPeerRecvonly

var options = {
      remoteVideo: video,
        configuration: {
            iceServers: [{urls: 'turn:134.209.199.255', username: 'test', credential: 'test'}],
            iceTransportPolicy: 'relay'
        },
      onicecandidate: participant.onIceCandidate.bind(participant)
    }

我添加之后,它就开始工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多