hasAudioTrack method

  1. @override
Future<bool> hasAudioTrack(
  1. String filePath
)
override

Implementation

@override
Future<bool> hasAudioTrack(String filePath) async {
  try {
    final hasAudio = await methodChannel.invokeMethod<bool>('hasAudioTrack', {
      'filePath': filePath,
    });
    return hasAudio ?? false;
  } on PlatformException catch (e) {
    debugPrint('Failed to check audio track: $e');
    return false;
  }
}