Media loader
A widget that would load and cache the provided medias list
. It will load and cache each media one after the other. Meaning, it will only load the next batch after the first one is completed. This is useful if you have a large list of media that would want to cache (and have children load media from this cache). Please noted that it will not wait for the first media to load before rendering the child widget.
Component
Name | Description |
---|---|
component | media-loader |
list | An array of sources of media |
options.mode | wait or no-wait , if wait will wait to load all media before render the child |
Example
{
"component": "media-loader",
"list": [
"https://src1",
"https://src2"
],
"child": {
...an iterator or something similar where its child will render media from the `list`
}
}