mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05:59 +01:00
Make warning against Safari screensharing stronger.
This commit is contained in:
parent
7a52ffdca7
commit
3d807677a7
1 changed files with 14 additions and 7 deletions
|
@ -1418,6 +1418,20 @@ async function addLocalMedia(localId) {
|
|||
let safariScreenshareDone = false;
|
||||
|
||||
async function addShareMedia() {
|
||||
if(!safariScreenshareDone) {
|
||||
if(isSafari()) {
|
||||
let ok = confirm(
|
||||
'Screen sharing in Safari is very broken. ' +
|
||||
'It will work at first, ' +
|
||||
'but then your video will randomly freeze. ' +
|
||||
'Are you sure that you wish to enable screensharing?'
|
||||
);
|
||||
if(!ok)
|
||||
return
|
||||
}
|
||||
safariScreenshareDone = true;
|
||||
}
|
||||
|
||||
/** @type {MediaStream} */
|
||||
let stream = null;
|
||||
try {
|
||||
|
@ -1433,13 +1447,6 @@ async function addShareMedia() {
|
|||
return;
|
||||
}
|
||||
|
||||
if(!safariScreenshareDone) {
|
||||
if(isSafari())
|
||||
displayWarning('Screen sharing under Safari is experimental. ' +
|
||||
'Please use a different browser if possible.');
|
||||
safariScreenshareDone = true;
|
||||
}
|
||||
|
||||
let c = newUpStream();
|
||||
c.label = 'screenshare';
|
||||
setUpStream(c, stream);
|
||||
|
|
Loading…
Reference in a new issue