getCurrentProgramDateTime method

  1. @override
Future<DateTime?> getCurrentProgramDateTime()
override

Implementation

@override
Future<DateTime?> getCurrentProgramDateTime() {
  int? currentProgramDateTime = _theoPlayerJS.currentProgramDateTime?.getTime();
  if (currentProgramDateTime == null) {
    return Future.value(null);
  }
  return Future.value(DateTime.fromMillisecondsSinceEpoch(currentProgramDateTime));
}