mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Add warning about screen sharing under Safari.
This commit is contained in:
parent
2efb5b3cea
commit
96c3e4f830
1 changed files with 11 additions and 0 deletions
|
@ -818,6 +818,8 @@ async function addLocalMedia(id) {
|
|||
setButtonsVisibility();
|
||||
}
|
||||
|
||||
let safariWarningDone = false;
|
||||
|
||||
async function addShareMedia() {
|
||||
if(!getUserPass())
|
||||
return;
|
||||
|
@ -835,6 +837,15 @@ async function addShareMedia() {
|
|||
return;
|
||||
}
|
||||
|
||||
if(!safariWarningDone) {
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if(ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0) {
|
||||
displayWarning('Screen sharing under Safari is experimental. ' +
|
||||
'Please use a different browser if possible.');
|
||||
}
|
||||
safariWarningDone = true;
|
||||
}
|
||||
|
||||
let c = newUpStream();
|
||||
c.kind = 'screenshare';
|
||||
c.stream = stream;
|
||||
|
|
Loading…
Reference in a new issue