Skip to content

Add camera and microphone capture permission requests - #252

Open
sierpinskid wants to merge 2 commits into
mainfrom
feature/UNI-281-capture-permission
Open

sierpinskid wants to merge 2 commits into
mainfrom
feature/UNI-281-capture-permission

Conversation

@sierpinskid

Copy link
Copy Markdown
Member

Summary

  • Adds HasCapturePermission and RequestCapturePermissionAsync on the camera and microphone device managers. One shared helper owns the platform order, so the samples can stop copying it after this lands.
  • The Editor and desktop players report granted and do not show a dialog, including when the active build target is Android or iOS. Android and iOS players prompt only when the new method is called and permission is not already granted. Denial is a returned status.
  • Creating the client and selecting a device do not prompt. These additive interface members break implementers and mocks only. The samples are unchanged on purpose.

Linear: https://linear.app/stream/issue/UNI-281/add-camera-and-microphone-capture-permission-requests

Test plan

  • CapturePermissionTests: 16 passed, 0 failed, Unity 2021.3.21f1 EditMode, filter CapturePermissionTests. The 2021.3.26f1 editor binary is not installed on this machine.
  • Android and iOS system dialogs. Not run.
  • Switch the UI Toolkit and uGUI samples onto this API after merge.

… Editor.

Customers were copying a flow that checks the result before the system dialog returns, and the Editor followed the active mobile build target. The new methods return a status and prompt only on Android and iOS players.

Co-authored-by: Cursor <cursoragent@cursor.com>
@getstream-metis

getstream-metis Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

👋 Thanks, Daniel! I'm on it.

How to work with me

  • 💬 Disagree with a finding? Reply in its thread and tell me why. I'll withdraw it, or answer with evidence.
  • 🔁 Fixed it? Just push. The next round checks your fix and resolves the thread.
  • 👍 👎 Rate my findings. I learn what your team doesn't want flagged.
  • ✅ I approve once nothing blocking is left: must-fix always blocks; should-fix blocks in the first two rounds, and after that until you fix it or reply in its thread. CI isn't part of that; branch protection still holds the merge until it's green. On repos that require a human approval, a teammate still has to approve too.
Commands

Comment any of these on the PR:

  • /jeffery review · start a review
  • /jeffery next-round · start the next round now
  • /jeffery pause · /jeffery resume · stop or restart reviews on this PR
  • /jeffery status · where things stand
  • /jeffery help · all commands

@getstream-metis getstream-metis Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Round 1 · 🆕 2 new · nothing blocking

➡️ Round 2 started on dedf518.

getstream-metis[bot]
getstream-metis Bot previously approved these changes Dec 5, 2026

@getstream-metis getstream-metis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎉 Approved · round 1

Nice work, Daniel! Nothing blocking is left on 70804dca5b38. Ship it 🚀

Left open, your call:

…troyed.

The task otherwise stays incomplete after dispose or runner teardown. A result that already arrived is left unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
@getstream-metis
getstream-metis Bot dismissed their stale review December 6, 2026 08:56

Withdrawing approval until dedf518 is reviewed.

@getstream-metis getstream-metis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Round 2 · 🆕 2 new · ✅ 1 fixed · nothing blocking

@getstream-metis getstream-metis Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎉 Approved · round 2

Nice work, Daniel! Nothing blocking is left on dedf518d5260. Ship it 🚀

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.

1 participant