getTimeDelta method
Connect to the Onvif device and determine the time delta which is required for future requests.
Implementation
Future<Duration> getTimeDelta() async {
final dateTime = await deviceManagement.getSystemDateAndTime();
return dateTime.utcDateTime != null
? dateTime.utcDateTime!.difference(DateTime.now().toUtc())
: const Duration(seconds: 0);
}