preload method
Preloads a HAC file from the specified path.
Preloading a HAC file can reduce latency on later calls to play and
playHAC for the same file.
path - The file path to the .hac file. Can be an absolute path
(starting with /) or a relative path (not starting with /) from the
app's assets root.
Returns a Future that completes when the HAC file has started
preloading. Note that the preload process may continue in the background
after this Future completes.
Implementation
Future<void> preload(String path) {
return HapticlabsPlayerPlatform.instance.preload(path);
}