Camera page updates - #52
Conversation
- Move the live view into a tab (default), removing the standalone always-visible player above the tabs; drop the Commands tab (Reindex / Drop Index) from the camera detail page. - Key LiveView by cameraId so per-camera quality state resets and the previous camera's WebRTC session is torn down on switch. - Preserve sdpMid/sdpMLineIndex when adding remote ICE candidates, falling back to BUNDLE "0" only for bare go2rtc candidate strings. - Log the requested stream src in /live/ws for diagnostics.
Prevents the scheduled auto-retry from firing after the user clicks Retry, avoiding a redundant reconnect.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe camera page now opens on Live View, retains Timeline and Details, and removes Commands. WebRTC signaling validates answer and ICE payloads, and manual retry clears automatic retry timers. Related tests now select tabs explicitly. ChangesCamera live view
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CameraDetail
participant VideoStream
participant live_ws
participant go2rtc
CameraDetail->>VideoStream: Render Live View tab
VideoStream->>live_ws: Request stream source
live_ws->>go2rtc: Check stream availability
live_ws-->>VideoStream: Send signaling data
VideoStream->>VideoStream: Validate SDP and ICE payloads
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
==========================================
- Coverage 93.04% 92.88% -0.17%
==========================================
Files 81 81
Lines 7438 7377 -61
Branches 755 751 -4
==========================================
- Hits 6921 6852 -69
- Misses 483 491 +8
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The camera detail page now opens on the Live tab by default, keeps useful content (stats, activity chart, timeline) behind the Timeline tab, and drops the Commands tab entirely. The Playwright suite wasn't updated for that, so CI (E2E) was red. - Click the Timeline tab before asserting stat cards / activity chart / timeline bars in both test_cameras.py and test_e2e.py. - Rewrite the tabs-switch test to reflect the Live-default / Timeline / Details layout and assert the Commands tab is gone. - Remove the obsolete Commands panel and Drop Index tests (feature removed). - Update the Hikvision details test to reach "Last Downloaded" under the Timeline tab.
Summary by CodeRabbit
New Features
Removed
Bug Fixes