Skip to content
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

Request microphone permission when recording video #808

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

Conversation

u2606
Copy link

@u2606 u2606 commented Dec 19, 2023

YPVideoCaptureHelper supports capturing audio, but YPImagePicker does not request microphone permission. As a result, videos silently fail to include audio unless the client app preemptively requests audio permission prior to opening YPImagePicker.

In contrast, YPImagePicker does request photo library permission (in YPLibraryVC) and camera permission (in YPCameraVC and YPVideoCaptureVC). With this change, YPVideoCaptureVC also requests microphone permission, standardizing YPImagePicker's behavior across the three permissions.

YPVideoCaptureHelper supports capturing audio, but YPImagePicker does
not request microphone permission.  As a result, videos silently fail to
include audio unless the client app preemptively requests audio
permission prior to opening YPImagePicker.

In contrast, YPImagePicker does request photo library permission (in
YPLibraryVC) and camera permission (in YPCameraVC and YPVideoCaptureVC).
With this change, YPVideoCaptureVC also requests microphone permission,
standardizing YPImagePicker's behavior across the three permissions.
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.

None yet

1 participant