Skip to content

Fix getDispayMedia() getUserMedia() permission prompt on macOS #1195

@pewsheen

Description

@pewsheen

Current Status on macOS 14

  • getUserMedia(): Show permission prompt for camera and microphone twice (application level and webview level)
  • getDispayMedia(): Normal

but with requestMediaCapturePermissionForOrigin delegated in wry

  • getUserMedia(): Normal
  • getDispayMedia(): Permission denied due to not showing picker for a display device (SCContentSharingPicker)

A possible fix for now is delegating both requestMediaCapturePermissionForOrigin and requestDisplayCapturePermissionForOrigin. But when we are calling getDispayMedia(), it can choose a screen only.

Upstream tracking: https://bugs.webkit.org/show_bug.cgi?id=271688

Workaround PR: #1196

--- outdated ---

The media permission prompt was suppressed when macOS 14.0 introduced

Issue: #1101, tauri-apps/tauri#2600
PR: #1111

note: #1111 brings a regression issue: tauri-apps/tauri#9178

After an OS update, which could be 14.2 (not sure), the original issue was solved by Apple, so we revert the fix:

Issue: tauri-apps/tauri#8979
PR: #1186

We need to find the affected OS version (14.0 ~ 14.x.x) and apply the version check like #1111

TODO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions