Preload attribute missing on video elements

Hi!

It's been a while since I posted here, but I've been using Hype off and on. One thing I've noticed is that there's no option to set preload="auto" on a video element. I get why that might be an issue for a website, but since I mostly use Hype to build local kiosk-mode apps, it's something I miss.

I end up creating my own HTML for a basic text element instead.

If preload were an option on video elements, you'd also have to handle the issue where the source isn’t set until you load the scene where the video is used. Maybe there could be an option for that too, like treating scenes as a combined single page app or something.

Anyway, great app! It’s come a long way since I first started using it :slight_smile:

1 Like

It has been a while since the original decision not to include it in the Hype app UI, but I think we didn't like how the preload spec didn't give very specific download guarantees that might be necessary for animating with videos.

Anyhow, there's now a better way to add it than Inner HTML: you can go to the Identity Inspector and with a video element selected, add it via the Additional HTML Attributes section.

I've filed this to reconsider if/how we can do the preload attribute.

1 Like