feat: add hardware camera device selection for video preview - #1152
Conversation
|
@vivek0028 is attempting to deploy a commit to the itzzavdhesh's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
Next review available in: 36 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
✍️ DCO Sign-off NeededHey @vivek0028! 👋 One or more commits in this PR are missing a Warning
How to fix: For the latest commit: git commit --amend --signoff
git push --force-with-leaseFor multiple commits, replace git rebase --signoff HEAD~N
git push --force-with-leaseThis comment will update automatically after you push. 🤖 VoiceForge Automation · Updates automatically on edits |
🎉 PR Ready for Mentor ReviewHey @vivek0028! 👋 Your PR passed all checks and is now in the GSSoC review queue. Note 🔗 Closing: #1061 · 📐 198 lines across 3 file(s) · 📬 Review requested @sabeenaviklar @Anushreebasics @itsdakshjain @snehkris @1754riya @Mrigakshi-Rathore @Itzzavdheshh @Nitya-003 @4f4d @lovestaco, this PR is ready for your review — please confirm scope, check behavior and tests, then approve or request changes. Important This is not an approval. Please wait for mentor feedback before expecting a merge. If changes are requested, push them to this same branch and keep the PR focused on the linked issue. 🤖 VoiceForge Automation · Updates automatically on edits |
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
🎊 PR Merged SuccessfullyHey @vivek0028! 👋 Congratulations and thank you for your contribution to VoiceForge! Note 🔗 Linked issue(s): #1061 · ✅ Marked as merged and complete Maintainers may still handle final cleanup, release notes, or follow-up tracking after the merge. 🤖 VoiceForge Automation · Updates automatically on edits |
🚀 Program
GSSoC
📝 Description
This PR adds a hardware camera device selection dropdown to the VoiceForge Call interface, allowing users to dynamically switch between multiple connected cameras, such as a laptop's built-in webcam, an external USB webcam, or a virtual camera.
Previously,
Call.jsxused:which relies on the browser's default camera. This can be limiting for users with multiple cameras, including streamers, professionals, and users working with virtual cameras such as OBS Virtual Camera.
Changes Made
DeviceSelectorcomponent: Added an accessible native<select>dropdown inclient/src/components/DeviceSelector.jsx, styled to match the existing Tailwind light/dark theme.Call.jsxto retrieve available video input devices usingnavigator.mediaDevices.enumerateDevices().devicechangelistener so the camera list automatically refreshes when a camera is connected or disconnected.openCamerato accept the selected device ID and request the specific camera using thedeviceIdconstraint.🔗 Related Issue
Closes #1061
🔄 Type of Change
🧪 How to Test
http://localhost:5173in a browser.📸 Screenshots (if applicable)
✅ Checklist
feat: add voice preview)Summary by cubic
Adds a hardware camera selector to the Call page so users can pick and switch between webcams on the fly. The preview targets the selected device, updates when cameras are plugged/unplugged, and shows a retry option on errors.
DeviceSelectorwith an accessible dropdown; lists video inputs vianavigator.mediaDevices.enumerateDevices(), refreshing ondevicechange.getUserMedia({ video: { deviceId } })and stops previous tracks to prevent leaks.TextToSpeech.Written for commit cf3d8ef. Summary will update on new commits.