dotnet/maui

WebRTC (navigator.mediaDevices) is not available on MacCatalyst but works with iOS

datvm opened this issue · 1 comments

Description

I have a project that uses navigator.mediaDevices for Camera and Microphone following the example at MackinnonBuck/MauiBlazorPermissionsExample. It works well on iOS (left) but on Mac with the same code and Info.plist, navigator.mediaDevices is undefined (right):

image

Steps to Reproduce

  1. Clone https://github.com/MackinnonBuck/MauiBlazorPermissionsExample
  2. Run it on Mac
  3. Go to Camera section:

image

  1. Optionally: Open Safari Inspector and check for navigator.mediaDevices in the console, it's undefined.

Link to public reproduction project repository

https://github.com/MackinnonBuck/MauiBlazorPermissionsExample

Version with bug

8.0.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response