isPlaying method

Future<bool> isPlaying()

Returns true if the video is playing, or false if it's stopped or paused.

Implementation

Future<bool> isPlaying() async {
  try {
    return await _api.isPlaying() ?? false;
  } catch (exception) {
    return false;
  }
}