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(() => {