-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
replace current video with screen sharing #736
Copy link
Copy link
Open
Labels
clientrelated to peerjs clientrelated to peerjs client
Description
hi, im trying to share screen. but the problem is, screen sharing create new video element instead replace my current video and when i stop screen sharing the video is stuck instead of removed..
navigator.mediaDevices.getDisplayMedia().then(stream => {
this.myScreen = stream
const keys = Object.keys(this.$store.state.users)
keys.forEach((value) => {
this.$peer.call(value, this.myScreen)
});
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
clientrelated to peerjs clientrelated to peerjs client