mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 18:52:11 +00:00
added routes for call
This commit is contained in:
13
app/assets/javascripts/test.js
Normal file
13
app/assets/javascripts/test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
contactsVideo = document.getElementById("contacts-video");
|
||||
try {
|
||||
const stream = await navigator.mediaDevices.getUserMedia({
|
||||
audio: false,
|
||||
video: true
|
||||
})
|
||||
|
||||
localstream = stream;
|
||||
contactsVideo.srcObject = stream
|
||||
contactsVideo.muted = true
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
Reference in New Issue
Block a user