PreloadWithUrl
Preloads a URL resource.
static bool PreloadWithUrl(const char* url, Error *err = nullptr)
- Since
- Available since v4.4.0.
After successful preloading, opening the URL resource via OpenWithUrl can be faster, reducing wait time and improving the audio-visual experience.
Note: This method currently only supports URLs starting with
rte://. You can preload up to 20 URLs. If the limit is exceeded, the earliest preloaded URL will be replaced by the newly preloaded one.Scenario
Preloading before opening a media resource can reduce user wait time and provide a smoother audiovisual experience.
Timing
This method must be called before calling OpenWithUrl.
Parameters
- url
- A URL starting with
rte://. - err
- Output parameter for status or error information. See Error.
Return Values
Whether the preload succeeds:
- true: Preload succeeds.
- false: Preload fails.