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() }