From 503bdfc20e4aaf14b23913ecb93e8ff1c915bc99 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Thu, 20 Jun 2024 22:53:51 +0200 Subject: Making TobiiProGlasses2 post processing context to play at realtime fps by default. --- src/argaze/utils/contexts/TobiiProGlasses2.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/argaze/utils/contexts/TobiiProGlasses2.py b/src/argaze/utils/contexts/TobiiProGlasses2.py index e3c68b0..1f7ae13 100644 --- a/src/argaze/utils/contexts/TobiiProGlasses2.py +++ b/src/argaze/utils/contexts/TobiiProGlasses2.py @@ -1403,8 +1403,13 @@ class PostProcessing(ArFeatures.PostProcessingContext): data_list.append((next_data_ts, next_data_object, next_data_object_type)) next_data_ts, next_data_object, next_data_object_type = self.__next_data() + # TODO: Add attribute to disable realtime replay + time.sleep( (next_video_ts - self.__video_ts) * 1e-3 ) + + # Output video and data output = self.__video_ts, self.__video_image, data_list + # Store next video image as current self.__video_ts, self.__video_image = next_video_ts, next_video_image return output -- cgit v1.1