This commit is contained in:
Sergiu Toma 2022-12-22 09:22:23 +02:00
parent a4356f06be
commit f3ba6d37c2
2 changed files with 12 additions and 2 deletions

View File

@ -20817,10 +20817,15 @@ const connectRecvTransport = async () => {
}
console.log('----------stream', stream);
console.log('stream.getAudioTracks()', stream.getAudioTracks());
socket.emit('consumer-resume')
remoteVideo.srcObject = stream
remoteVideo.setAttribute('autoplay', true)
remoteVideo.autoplay = true
// window.localStream = stream; // A
// window.localAudio.srcObject = stream; // B
// window.localAudio.autoplay = true; // C
remoteVideo.play()
.then(() => {

View File

@ -459,10 +459,15 @@ const connectRecvTransport = async () => {
}
console.log('----------stream', stream);
console.log('stream.getAudioTracks()', stream.getAudioTracks());
socket.emit('consumer-resume')
remoteVideo.srcObject = stream
remoteVideo.setAttribute('autoplay', true)
remoteVideo.autoplay = true
// window.localStream = stream; // A
// window.localAudio.srcObject = stream; // B
// window.localAudio.autoplay = true; // C
remoteVideo.play()
.then(() => {