hacks for forcing gdevelop to cache videos?

I have a few projects that i want to start out with a big long 45 meg intro video. (for use on my lan - not public release). Is there a possibility of an extension or modding of the exported html to force the project to cache the video? On a fast machine the video plays fine, but on a slower machine the audio plays fine but the video is super choppy, like 7 frames per second. On the same machine in the same browser i can load the same video from the same server and it plays back smoothly. I’m probably alone in needing this, but i’d really really love to have an “cache this” function similar to how audio works in the resources tab. Any thoughts or ideas on if there is any way to work around the limitations?.. and am I crazy, but didn’t gdevelop used to download all assets before launching? I could have sworn that years ago if i put a video in gdevelop i just got a really long load bar instead of streaming.

Ok, so i’ve gone down 100 rabbit holes with what i know, what the web says and what claude and gpt suggest and nothing works. Here’s the deal: If i have a video on a local server and play it back through html on not-super-fast device, like a smartTV, it plays beautifully. no hiccups. if i take that exact same file and place it in gdevelop and make an html export that literally does nothing other than play that exact same file in the exact same browser on the exact same machine - its crazy choppy and stuttery. I went one step further and loaded the gdevelop html onto the usb stick and onto the internal memory of the tv and got identical performance. I recompressed and shrank and ended up with a 5mb video and it had worse performance playing locally than a 45 meg version of the video streamed from a raspberry pi across town from my house. I know gdevelop has some overhead, but is it possible this is something else? Is there something that is quirky about how gdev caches/plays videos? The reason this is blowing my mind is 5 years ago I ran a gdevelop app from a local server on a chromebit (not a fast device) and it would play an 120 meg 1080p video whenever nearby players reached a milestone and it was perfectly smooth. Its possible that modern chrometvs just are that much worse, but the fact that the same video is perfect loaded from html and is just as choppy at 480x270 as it is at 1920x1080 seems wrong. Is it possible there is something gdevelop has changed or is doing for videos that is introducing issues? I know this is hard for most people to see or care about because they aren’t running scoreboards and video on tvs around a facility on less than premium hardware, but given the disparity between html and gdevelop html playback, is it possible there is something wrong? Any help/ideas/questions appreciated. Cheers.

1 Like