mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 05:08:11 +00:00
🕌🐒 Checkpoint
./public/main.js:5975361/186
This commit is contained in:
parent
5f8e813b18
commit
6e0b93d726
1 changed files with 5 additions and 3 deletions
|
|
@ -93,11 +93,13 @@ let connectToPeer = () => {
|
|||
let stream;
|
||||
let startLocalStream = () => {
|
||||
navigator.mediaDevices.getUserMedia({video: true, audio: true})
|
||||
.then((stream) => {
|
||||
console.log('LOCAL STREAM')
|
||||
stream = stream;
|
||||
.then((localStream) => {
|
||||
console.log('LOCAL STREAM', localStream);
|
||||
renderVideo(localStream, '#localVideo');
|
||||
stream = localStream;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log('Failed to get local stream', err);
|
||||
logMessage('Failed to get local stream', err);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue