Skip to content

Conversation

@ADARSHsri2004
Copy link
Contributor

@ADARSHsri2004 ADARSHsri2004 commented Nov 7, 2025

Description

This pull request implements the Video Preview Before Joining feature in the PeerCall application.
It allows users to preview their camera and microphone setup before entering a video room, ensuring a smoother and more reliable call experience.

Key Features

Pre-Join Preview Screen
Displays a live video feed using navigator.mediaDevices.getUserMedia().
Includes camera and microphone toggle controls.
Allows users to verify audio/video setup before joining.

UI Enhancements

Added PreJoinPreview component integrated with the JoinRoom page.
Consistent visual style with the rest of the app using Tailwind + shadcn components.
Device & Stream Management
Handles permissions gracefully with error alerts.
Stops and releases media streams on exit or navigation to prevent leaks.
In-Room Controls
Integrated camera and mic toggle functionality in InRoom component.

##Technical Notes

Uses useEffect for media initialization and cleanup.
Added proper track management for video/mic states.
Modularized preview logic for reusability and testing.

image image

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #23

Checklist

@04shubham7
Copy link
Member

can you add ss here of the changes?

@04shubham7
Copy link
Member

pls add ss of your applied changes

@ADARSHsri2004
Copy link
Contributor Author

@04shubham7 i have added the ss

@04shubham7 04shubham7 merged commit 20234b5 into OPCODE-Open-Spring-Fest:main Nov 8, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Implement Video Preview Before Joining

2 participants