getVideoDuration method
Implementation
Future<int> getVideoDuration() async {
int videoDuration = 0;
try {
videoDuration = await _channel.invokeMethod('getDuration');
} on PlatformException catch (e) {
logger.e("getVideoDuration error: ${e.details} - ${e.message}");
}
return videoDuration;
}