getDuration method
Obtiene la duración total del video en segundos
Implementation
Future<double> getDuration() async {
try {
final duration = await _methodChannel.invokeMethod('getDuration');
return (duration as num?)?.toDouble() ?? 0.0;
} catch (e) {
debugPrint('[NativeVideoPlayer] Error al obtener duración: $e');
return 0.0;
}
}