无法运行kurrento示例。在Chrome浏览器中,我收到了错误
OperationError: Failed to parse SessionDescription. m=audio 0 UDP/TLS/RTP/SAVPF Expects at least 4 fields.
在firefox浏览器中,我获得了控制台输出-
Remote stream: undefined kurento-utils.js:294:13
RTCPeerConnection.getLocalStreams/getRemoteStreams is deprecated. Use RTCPeerConnection.getSenders/getReceivers instead.
这里是生活示例-https://167.99.42.33:8443
答案 0 :(得分:0)
客户端没有转弯中继信息的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)
}
添加后,它开始工作。