Bladeren bron

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

master
Hristo Terezov 4 jaren geleden
bovenliggende
commit
2e5e9a3f79
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      react/features/base/media/components/web/AudioTrack.js

+ 1
- 1
react/features/base/media/components/web/AudioTrack.js Bestand weergeven

@@ -135,7 +135,7 @@ export default class AudioTrack extends Component<Props> {
135 135
             const currentVolume = this._ref.volume;
136 136
             const nextVolume = nextProps.volume;
137 137
 
138
-            if (typeof nextVolume === 'number' && currentVolume !== nextVolume) {
138
+            if (typeof nextVolume === 'number' && !isNaN(nextVolume) && currentVolume !== nextVolume) {
139 139
                 this._ref.volume = nextVolume;
140 140
             }
141 141
 

Laden…
Annuleren
Opslaan