Touched on here, the Cloudflare Stream Player's preload attribute has a little more to it than simply true or false. The attribute is considered a hint for browsers on how to handle preloading, so the behaviour may vary. If I understand, the hints mean the following:
-
preload=none / preload=metadata / not specifying anything
Any of the above will just load the metadata needed to start video playback when requested.
-
preload=auto
Will preload the beginning of the video.
-
preload=true
Will preload the entire video.
As of 1cb2038, preload=auto is used when preload is requested by a shortcode. I considered this a safer option, as preload=true could result in bill shock, and a poor end-user experience, if the implications aren't fully understood.
Open to discussion:
- Is
auto the appropriate default when preloading is requested?
- Might the ability for the user to specify preload behaviour of beginning (
auto) or entire video (true) be useful?
Touched on here, the Cloudflare Stream Player's
preloadattribute has a little more to it than simply true or false. The attribute is considered a hint for browsers on how to handle preloading, so the behaviour may vary. If I understand, the hints mean the following:preload=none/preload=metadata/ not specifying anythingAny of the above will just load the metadata needed to start video playback when requested.
preload=autoWill preload the beginning of the video.
preload=trueWill preload the entire video.
As of 1cb2038,
preload=autois used when preload is requested by a shortcode. I considered this a safer option, aspreload=truecould result in bill shock, and a poor end-user experience, if the implications aren't fully understood.Open to discussion:
autothe appropriate default when preloading is requested?auto) or entire video (true) be useful?