From 1084a808c7951eabcca0aa765c75988825d48e8d Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 22 Nov 2022 19:40:02 +0200 Subject: [PATCH] Update build --- public/bundle.js | 13 +++++++------ public/index.js | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 08e7d51..b936ede 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20488,12 +20488,13 @@ let params = { const streamSuccess = (stream) => { localVideo.srcObject = stream - // const track = stream.getVideoTracks()[0] - // params = { - // track, - // ...params - // } - // console.log('[streamSuccess] track', params); + console.log('stream', stream); + const track = stream.getVideoTracks()[0] + params = { + track, + ...params + } + console.log('[streamSuccess] track', params); goConnect() } diff --git a/public/index.js b/public/index.js index d932558..09242d4 100644 --- a/public/index.js +++ b/public/index.js @@ -130,12 +130,13 @@ let params = { const streamSuccess = (stream) => { localVideo.srcObject = stream - // const track = stream.getVideoTracks()[0] - // params = { - // track, - // ...params - // } - // console.log('[streamSuccess] track', params); + console.log('stream', stream); + const track = stream.getVideoTracks()[0] + params = { + track, + ...params + } + console.log('[streamSuccess] track', params); goConnect() }