check method
Checks if the provided video file contains an audio track.
This method uses platform channels to invoke native code for checking
the presence of audio in the video file specified by videoPath
.
Implementation
@override
Future<bool> check(String videoPath) async {
try {
final bool hasAudio = await _channel.invokeMethod('hasAudio', {'videoPath': videoPath});
return hasAudio;
} on PlatformException catch (_) {
return false;
}
}