Explorar o código

Merge pull request #5848 from sebavan/master

Video Texture Fix
sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
2d0b86d666
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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 = true;
             this.video.onplaying = () => {
+                this.video.muted = oldMuted;
                 this.video.onplaying = oldHandler;
                 this._texture!.isReady = true;
                 this._updateInternalTexture();