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
Any ideas appreciated.
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.