From f3ba6d37c2fadf5c50d3b89dfddf8b0a461ae726 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 22 Dec 2022 09:22:23 +0200 Subject: [PATCH] Update --- public/bundle.js | 7 ++++++- public/index.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 74eb335..8fb2456 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -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(() => { diff --git a/public/index.js b/public/index.js index f57a5f4..fee164f 100644 --- a/public/index.js +++ b/public/index.js @@ -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(() => {