Documentation
¶
Overview ¶
Package preload defines the Preload type and its predefined values.
Media content preload behavior hint for optimal user experience. Controls how much media content is downloaded in advance to balance startup speed with bandwidth usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // None Do not preload any media content. Provides fastest page load time but slower media startup // when user initiates playback. Best for bandwidth-constrained environments. None = Preload("none") // Metadata Preload only metadata (duration, dimensions, first frame). Balanced approach that enables // UI setup while conserving bandwidth. Good compromise for most use cases. Metadata = Preload("metadata") // Auto Preload the entire media file. Provides fastest media startup time but slower initial page // load and higher bandwidth usage. Default browser behavior. Auto = Preload("auto") )
Variables for Preload values
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.