Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping in movieTexture does not cache the video #1269

Open
parthranawat opened this issue Apr 17, 2023 · 1 comment
Open

Looping in movieTexture does not cache the video #1269

parthranawat opened this issue Apr 17, 2023 · 1 comment

Comments

@parthranawat
Copy link

The video is downloaded for every loop over the network when setting the loop attribute as "true" in the MovieTexture tag. I am unsure why it is not caching the video and if it is a browser/video-specific issue.

Browser- Chrome (Version 112.0.5615.49 (Official Build) (arm64))
OS- MacOS
Video- .mp4 file (128mb in size) [LINK]

With Loop
image

Without Loop
Screenshot 2023-04-16 at 9 13 22 PM

@andreasplesch
Copy link
Contributor

I tried https://metagrid1.sv.vt.edu/~parthranawat/Nazila_Class_23/ but could not get Scene 2 Day to start to play.

For Scene 1 Day it did not reproduce with loop=true on my system (latest Chrome, Win10).

Did you try to enable cache in devtools ?

I think all what loop=true does is to call video.play() after the video ended. There is no explicit fetching from the network.

Here is a related question:

https://stackoverflow.com/questions/58577132/html-video-loop-re-downloads-video-file

128MB may be too large somehow.

We would need a simple scene which consistently shows the behavior.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants