getCurrentPosition method

Future<double> getCurrentPosition()

Obtiene la posición actual del video en segundos

Implementation

Future<double> getCurrentPosition() async {
  try {
    final position = await _methodChannel.invokeMethod('getCurrentPosition');
    return (position as num?)?.toDouble() ?? 0.0;
  } catch (e) {
    debugPrint('[NativeVideoPlayer] Error al obtener posición: $e');
    return 0.0;
  }
}