Skip to content

Commit

Permalink
Merge pull request Hubs-Foundation#5009 from mozilla/safari-audio-fix
Browse files Browse the repository at this point in the history
Wait until we have tracks info
  • Loading branch information
keianhzo authored Jan 11, 2022
2 parents 0ba60ee + 2705180 commit 79c6b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/media-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ AFRAME.registerComponent("media-video", {
// We want to treat audio almost exactly like video, so we mock a video texture with an image property.
texture = new THREE.Texture();
texture.image = videoEl;
isReady = () => true;
isReady = () => videoEl.readyState > 0;
} else {
texture = new THREE.VideoTexture(videoEl);
texture.minFilter = THREE.LinearFilter;
Expand Down

0 comments on commit 79c6b26

Please sign in to comment.