observers: add a timestamp to on_push_frame()

This commit is contained in:
Aleix Conchillo Flaqué
2025-01-15 10:15:36 -08:00
parent 45039e7cde
commit 08f1dda94e
4 changed files with 27 additions and 6 deletions

View File

@@ -579,7 +579,12 @@ class RTVIObserver(BaseObserver):
self._frames_seen = set()
async def on_push_frame(
self, src: FrameProcessor, dst: FrameProcessor, frame: Frame, direction: FrameDirection
self,
src: FrameProcessor,
dst: FrameProcessor,
frame: Frame,
direction: FrameDirection,
timestamp: int,
):
# If we have already seen this frame, let's skip it.
if frame.id in self._frames_seen: