isPlaying method

Future<bool> isPlaying()

The isPlaying function on HMSAudioFilePlayerNode to check if audio is playing or not. It will return bool

Refer Audio sharing in iOS guide here

Implementation

Future<bool> isPlaying() async {
  var result = await PlatformService.invokeMethod(
      PlatformMethod.audioSharePlaying,
      arguments: {"name": methodName});
  if (result["success"]) {
    return result["data"]["is_playing"];
  }
  return false;
}