hasAudioTrack method
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;
}
}