mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
Resolve DEV-2816 while I'm at it - allow users to switch between screens
This commit is contained in:
parent
d4b50523c2
commit
5eae6711e6
1 changed files with 7 additions and 0 deletions
|
@ -190,6 +190,10 @@ function stopSharing() {
|
||||||
|
|
||||||
// Callback to start publishing after we have setup the chromium stream
|
// Callback to start publishing after we have setup the chromium stream
|
||||||
function gotStream(stream) {
|
function gotStream(stream) {
|
||||||
|
if (localStream) {
|
||||||
|
stopSharing();
|
||||||
|
}
|
||||||
|
|
||||||
localStream = stream;
|
localStream = stream;
|
||||||
startTokboxPublisher(localStream);
|
startTokboxPublisher(localStream);
|
||||||
|
|
||||||
|
@ -208,6 +212,9 @@ function onAccessApproved(desktop_id) {
|
||||||
console.log('Desktop Capture access rejected.');
|
console.log('Desktop Capture access rejected.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
document.getElementById('screenshare').style.visibility = "block";
|
document.getElementById('screenshare').style.visibility = "block";
|
||||||
desktopSharing = true;
|
desktopSharing = true;
|
||||||
navigator.webkitGetUserMedia({
|
navigator.webkitGetUserMedia({
|
||||||
|
|
Loading…
Reference in a new issue