Skip to content

fix(uPDP): respect call type camera configuration #1883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oliverlaz
Copy link
Member

💡 Overview

When the camera is disabled on a call type level, we should completely discard any previously stored camera preferences.
Also, we shouldn't prompt for permission (caused by the device listing).

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes camera configuration handling when video is disabled at the call type level by discarding stored camera preferences and preventing unnecessary permission prompts.

  • Conditionally renders video preview components based on call type video settings
  • Discards stored camera device preferences when video is disabled at call type level
  • Prevents device enumeration and permission prompts when camera is disabled

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
sample-apps/react/react-dogfood/components/Lobby.tsx Conditionally renders VideoPreview only when video is enabled in settings
packages/react-sdk/src/hooks/usePersistedDevicePreferences.ts Modifies camera device handling to respect call type video configuration

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.

1 participant