playOGG method

Future<void> playOGG(
  1. String path
)

Plays an OGG file from the specified path.

For more information on OGG files, see: https://docs.hapticlabs.io/mobile/oggfiles/

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 haptic playback has terminated.

Implementation

Future<void> playOGG(String path) {
  return HapticlabsPlayerPlatform.instance.playOGG(path);
}