From 100198b55c2d6276f0df46d1c2caa14331d17b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 2 Jun 2021 17:58:58 +0200 Subject: [PATCH] Using "standardized-audio-context" to fix compatibility of AudioContext with Safari. --- front/package.json | 3 +- .../HorizontalSoundMeterWidget.svelte | 1 + front/src/Components/SoundMeterWidget.svelte | 1 + front/src/Components/UI/AudioPlaying.svelte | 1 - front/src/Phaser/Components/SoundMeter.ts | 65 ++----------------- front/yarn.lock | 31 ++++++++- 6 files changed, 41 insertions(+), 61 deletions(-) diff --git a/front/package.json b/front/package.json index 6cf0ee97..1c938195 100644 --- a/front/package.json +++ b/front/package.json @@ -46,7 +46,8 @@ "quill": "1.3.6", "rxjs": "^6.6.3", "simple-peer": "^9.6.2", - "socket.io-client": "^2.3.0" + "socket.io-client": "^2.3.0", + "standardized-audio-context": "^25.2.4" }, "scripts": { "start": "TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" webpack serve --open", diff --git a/front/src/Components/EnableCamera/HorizontalSoundMeterWidget.svelte b/front/src/Components/EnableCamera/HorizontalSoundMeterWidget.svelte index 02375bbd..e7f721c1 100644 --- a/front/src/Components/EnableCamera/HorizontalSoundMeterWidget.svelte +++ b/front/src/Components/EnableCamera/HorizontalSoundMeterWidget.svelte @@ -1,4 +1,5 @@