preloadOGG method
Preloads an OGG file from the specified path.
Preloading an OGG file can reduce latency on later calls to playOGG for
the same file.
path - The file path to the .ogg 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 OGG file has started
preloading. Note that the preload process may continue in the background
after this Future completes.
Implementation
Future<void> preloadOGG(String path) {
return HapticlabsPlayerPlatform.instance.preloadOGG(path);
}