LINXD-2329: Don't close the call if initiator or receiver close the transport #28

Closed
sergiu wants to merge 13 commits from LINXD-2329-video-turn-on-camera-after-call-start into develop
Showing only changes of commit c38d208353 - Show all commits

View File

@ -97,7 +97,7 @@ setTimeout(() => {
socket.on('new-producer', ({ callId }) => {
console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`);
consume()
!consumerTransport && consume()
})
}
@ -467,13 +467,13 @@ const connectRecvTransport = async () => {
remoteVideo.srcObject = stream
remoteVideo.setAttribute('autoplay', true)
// remoteVideo.play()
// .then(() => {
// console.log('remoteVideo PLAY')
// })
// .catch((error) => {
// console.log(`remoteVideo PLAY ERROR | ${error.message}`)
// })
remoteVideo.play()
.then(() => {
console.log('remoteVideo PLAY')
})
.catch((error) => {
console.log(`remoteVideo PLAY ERROR | ${error.message}`)
})
})
}