mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 03:18:10 +00:00
🎣📒 Checkpoint
./public/main.js:5975361/80
This commit is contained in:
parent
22fffe6960
commit
a564d54fee
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ var app = new Vue({
|
|||
if (this.stream) {
|
||||
const oldVideo = this.stream.getTracks().find(track => track.kind === 'video');
|
||||
this.stream.removeTrack(oldVideo);
|
||||
this.stream.addTrack(stream);
|
||||
// this.stream.addTrack(stream);
|
||||
} else {
|
||||
this.stream = stream; // make stream available to console
|
||||
}
|
||||
|
|
@ -201,6 +201,7 @@ var app = new Vue({
|
|||
shareScreen: async function shareScreen() {
|
||||
// if (!displayMediaStream) {
|
||||
const displayMediaStream = await navigator.mediaDevices.getDisplayMedia();
|
||||
console.log('screenShare', displayMediaStream)
|
||||
// }
|
||||
// senders.find(sender => sender.track.kind === 'video').replaceTrack(displayMediaStream.getTracks()[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue