degr
degr

Reputation: 1565

can't run kurento-examples-java

Available example: https://134.209.199.255:8443/

How I run 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

How I run turn server:

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

How I run run java example:

mvn -U clean spring-boot:run -Dkms.url=ws://localhost:8888/kurento
  1. Content of /root/kms/WebRtcEndpoint.conf.ini (not interactive)
  2. KMS docker container logs (not interactive)
  3. TURN server discovery result

Any ideas appreciated.

Upvotes: 3

Views: 341

Answers (1)

degr
degr

Reputation: 1565

There was no configuration property with turn relay information on client side -

for 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)
        }

And for WebRtcPeerRecvonly

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

After I add it, it start to work.

Upvotes: 1

Related Questions