소스 검색

Video Texture Fix

sebavan 6 년 전
부모
커밋
ea9969b78b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/Materials/Textures/videoTexture.ts

+ 3 - 0
src/Materials/Textures/videoTexture.ts

@@ -196,7 +196,10 @@ export class VideoTexture extends Texture {
         if (!this.video.autoplay && !this._settings.poster) {
             let oldHandler = this.video.onplaying;
             let error = false;
+            let oldMuted = this.video.muted;
+            this.video.muted = false;
             this.video.onplaying = () => {
+                this.video.muted = oldMuted;
                 this.video.onplaying = oldHandler;
                 this._texture!.isReady = true;
                 this._updateInternalTexture();