Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(AudioTrack):Add check for NaN value for volume

Hristo Terezov2e5e9a3f7974
diff --git a/react/features/base/media/components/web/AudioTrack.js b/react/features/base/media/components/web/AudioTrack.js
index 45c76b3e8a..e1ef2b283c 100644
--- a/react/features/base/media/components/web/AudioTrack.js
+++ b/react/features/base/media/components/web/AudioTrack.js
@@ -135,7 +135,7 @@ export default class AudioTrack extends Component<Props> {
const currentVolume = this._ref.volume;
const nextVolume = nextProps.volume;
- if (typeof nextVolume === 'number' && currentVolume !== nextVolume) {
+ if (typeof nextVolume === 'number' && !isNaN(nextVolume) && currentVolume !== nextVolume) {
this._ref.volume = nextVolume;
}