From 6f6f62932c2d498b31815141c885c33474926fb7 Mon Sep 17 00:00:00 2001 From: Mats Date: Sun, 18 Jun 2023 11:08:54 +0200 Subject: [PATCH] Require panner node --- client/public/metadata.json | 2 +- client/src/components/OpenAudioRouter.js | 6 ++++++ client/src/metadata.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/public/metadata.json b/client/public/metadata.json index 93196d5f57..3ba73621ec 100644 --- a/client/public/metadata.json +++ b/client/public/metadata.json @@ -1 +1 @@ -{"buildMajor":1,"buildMinor":125,"buildRevision":38,"buildTag":"production","buildDate":"00:39:04 GMT+0200 (Central European Summer Time)","build":"1.125.38 production"} \ No newline at end of file +{"buildMajor":1,"buildMinor":125,"buildRevision":39,"buildTag":"production","buildDate":"11:08:18 GMT+0200 (Central European Summer Time)","build":"1.125.39 production"} \ No newline at end of file diff --git a/client/src/components/OpenAudioRouter.js b/client/src/components/OpenAudioRouter.js index 94677257ed..833a09a19c 100644 --- a/client/src/components/OpenAudioRouter.js +++ b/client/src/components/OpenAudioRouter.js @@ -37,6 +37,12 @@ class OpenAudioController extends React.Component { this.setState({preflightOk: false, errorMessage: "Your browser does not support the WebSocket API. Please use a modern browser like Chrome or Firefox."}); return } + + // check if PannerNode is supported + if (!window.PannerNode) { + this.setState({preflightOk: false, errorMessage: "Your browser does not support the PannerNode API. Please use a modern browser like Chrome or Firefox."}); + return + } } render() { diff --git a/client/src/metadata.json b/client/src/metadata.json index 93196d5f57..3ba73621ec 100644 --- a/client/src/metadata.json +++ b/client/src/metadata.json @@ -1 +1 @@ -{"buildMajor":1,"buildMinor":125,"buildRevision":38,"buildTag":"production","buildDate":"00:39:04 GMT+0200 (Central European Summer Time)","build":"1.125.38 production"} \ No newline at end of file +{"buildMajor":1,"buildMinor":125,"buildRevision":39,"buildTag":"production","buildDate":"11:08:18 GMT+0200 (Central European Summer Time)","build":"1.125.39 production"} \ No newline at end of file