From 8dfc59be13b8c6cbd7705f41330418a299a6bd4b Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Wed, 12 Nov 2025 18:36:56 -0500 Subject: [PATCH] Include pts in incoming video and audio frames --- src/pipecat/transports/smallwebrtc/transport.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipecat/transports/smallwebrtc/transport.py b/src/pipecat/transports/smallwebrtc/transport.py index 0e2ea544e..e8e0a4ae9 100644 --- a/src/pipecat/transports/smallwebrtc/transport.py +++ b/src/pipecat/transports/smallwebrtc/transport.py @@ -332,6 +332,7 @@ class SmallWebRTCClient: format="RGB", ) image_frame.transport_source = video_source + image_frame.pts = frame.pts del frame # free original VideoFrame del image_bytes # reference kept in image_frame @@ -379,6 +380,7 @@ class SmallWebRTCClient: sample_rate=resampled_frame.sample_rate, num_channels=self._audio_in_channels, ) + audio_frame.pts = frame.pts del pcm_bytes # reference kept in audio_frame yield audio_frame @@ -393,6 +395,7 @@ class SmallWebRTCClient: sample_rate=frame.sample_rate, num_channels=self._audio_in_channels, ) + audio_frame.pts = frame.pts del pcm_bytes # reference kept in audio_frame yield audio_frame