Skip to content

fix: CallbackVideoTrack._send_sync_frame → _capture_sync_frame#20

Merged
cyberdepa merged 1 commit into
cyberwave-os:mainfrom
paoloantinori:fix/callback-track-sync-frame-method-name
May 22, 2026
Merged

fix: CallbackVideoTrack._send_sync_frame → _capture_sync_frame#20
cyberdepa merged 1 commit into
cyberwave-os:mainfrom
paoloantinori:fix/callback-track-sync-frame-method-name

Conversation

@paoloantinori
Copy link
Copy Markdown
Contributor

Summary

What Changed

One-line fix in cyberwave/sensor/camera_callback.py line 115:

-        self._send_sync_frame(timestamp, timestamp_monotonic, video_frame.pts)
+        self._capture_sync_frame(timestamp, timestamp_monotonic, video_frame.pts)

CV2VideoTrack in camera_cv2.py already uses the correct method name.

Testing

Tested with a CallbackCameraStreamer that relays frames from a UGV Beast robot to the Cyberwave cloud:

Metric Before After
Frames streamed via WebRTC 0 (AttributeError on every frame) 30+/min
capture_frame() via REST "No frame available" Real JPEG

Test plan

  • CallbackCameraStreamer streams frames successfully
  • Frames arrive in Redis and are accessible via capture_frame()
  • No regressions in CV2CameraStreamer (already uses correct method)

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

CallbackVideoTrack.recv() calls self._send_sync_frame() but
BaseVideoTrack only defines _capture_sync_frame(). This causes
an AttributeError on every frame, preventing CallbackCameraStreamer
from streaming any frames via WebRTC.

CV2VideoTrack (camera_cv2.py) already uses the correct method name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@KhushiSharma22
Copy link
Copy Markdown
Collaborator

Hi @paoloantinori
Thank you for your contribution! We'll review the same and will let you know of the updates!

Tagging @erlapso for a quick review on this one!

@cyberdepa
Copy link
Copy Markdown
Contributor

Hi @paoloantinori, thank you for the contribution 😄 Happy to say that this got merged!

@cyberdepa cyberdepa merged commit 527dbe1 into cyberwave-os:main May 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CallbackVideoTrack.recv() calls non-existent _send_sync_frame method

3 participants