isPlaying method

  1. @override
Future<bool> isPlaying(
  1. int viewId
)
override

Implementation

@override
Future<bool> isPlaying(int viewId) async {
  try {
    var methodChannel = MethodChannel('${channelPrefix}_$viewId');
    return await methodChannel.invokeMethod<bool>('playing') ?? false;
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
    return false;
  }
}