可用示例: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任何想法都值得赞赏。
发布于 2019-06-10 08:56:24
在客户端没有带有转中继信息的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)
}我把它加进去后,它就开始起作用了。
https://stackoverflow.com/questions/55781537
复制相似问题