getVideoDuration method
Implementation
@override
Future<num?> getVideoDuration(String playerReference) async {
try {
return await methodChannel.invokeMethod<num>('getVideoDuration', {'playerReference': playerReference});
} on PlatformException catch (e) {
debugPrint('Failed to get video duration: ${e.message}');
rethrow;
}
}