Twitter (and Dailymotion) video onebox autoplays without user interaction

Ah, maybe not autoplay but I’ve definitely seen HTML5 videos autoloading.

Discourse doesn’t set the preload attribute of oneboxed HTML5 videos, so it’s entirely up to the browser whether to load the video. At a guess, I’d say that desktop browsers will tend to load it, and mobile browsers will tend not to. We could add preload="metadata" so that only the video metadata is loaded until the video is clicked. That discussion should probably be in a new thread, as it’s not really part of this :bug:.

4 Likes

Yep, I have a Vimeo video that is only sharable via private link, whiteboxed to my domain, that autoplays whenever you open the topic. For now, I’ll just have to link to the video instead of one boxing it.

2 Likes

The OP is fixed now, so I am closing this!

4 Likes