瀏覽代碼

fix(AudioTrack) fix currentMuted

Co-authored-by: Arun Nadesh <arun.raveendran@hg.ninjavan.co>
factor2
arunnadesh 2 年之前
父節點
當前提交
7538bfc713
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/base/media/components/web/AudioTrack.tsx

+ 1
- 1
react/features/base/media/components/web/AudioTrack.tsx 查看文件

152
             const currentMuted = this._ref.muted;
152
             const currentMuted = this._ref.muted;
153
             const nextMuted = nextProps._muted;
153
             const nextMuted = nextProps._muted;
154
 
154
 
155
-            if (typeof nextMuted === 'boolean' && currentMuted !== nextVolume) {
155
+            if (typeof nextMuted === 'boolean' && currentMuted !== nextMuted) {
156
                 this._ref.muted = nextMuted;
156
                 this._ref.muted = nextMuted;
157
             }
157
             }
158
         }
158
         }

Loading…
取消
儲存