From 3d485302dd684eb2b69fbbadb2ab408f77b606bf Mon Sep 17 00:00:00 2001 From: Ruben Suarez Alvarez Date: Thu, 12 Sep 2019 07:52:29 +0200 Subject: [PATCH 1/3] Enable Video Call The UserAgent with this change is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Edge/18.17763 Safari/537.36 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e78e94a..a2bb341 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ module.exports = Franz => class MicrosoftTeams extends Franz { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, '$163.0.3239.84'); + return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, 'Chrome/64.0.3282.140 Edge/18.17763'); } }; From 982db58eb58d33e9977e1ad6c0090aa5c85db917 Mon Sep 17 00:00:00 2001 From: Ruben Suarez Alvarez Date: Thu, 12 Sep 2019 08:04:39 +0200 Subject: [PATCH 2/3] Fix regular expression string replacement --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a2bb341..3df09a8 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ module.exports = Franz => class MicrosoftTeams extends Franz { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, 'Chrome/64.0.3282.140 Edge/18.17763'); + return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, '$164.0.3282.140 Edge/18.17763'); } }; From 17166806546c5f14be604060f2715e838ef3ad90 Mon Sep 17 00:00:00 2001 From: Ruben Suarez Alvarez Date: Tue, 8 Oct 2019 13:26:52 +0200 Subject: [PATCH 3/3] Update UserAgent In current Teams web app version If Edge is specified as UserAgent some JavaScript is used that generates an Exception preventing making audio or video calls. Specifying last Chrome version "surprisingly" enables audio and video (don't know why but only enabled with more than two participants) calls. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3df09a8..09135a9 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ module.exports = Franz => class MicrosoftTeams extends Franz { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, '$164.0.3282.140 Edge/18.17763'); + return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '').replace(/(Chrome\/)([^ ]*)/g, '$179.0.3932.0'); } };