Не было свойства 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)
}
После того, как я его добавлю, он начнет работать.