mattermost-community / mattermost-plugin-jitsi

Jitsi plugin for Mattermost :electric_plug:
Apache License 2.0
197 stars 90 forks source link

Unable to to enable video camera on Mac desktop when Jitsi is embedded #120

Open DHaussermann opened 4 years ago

DHaussermann commented 4 years ago

When using Jitsi with Embed Jitsi video inside Mattermost I'm not able to turn on my camera when using Mattermost Mac OS desktop client v4.5.0 Running build https://github.com/mattermost/mattermost-plugin-jitsi/commit/013533b3f7a835e4cb279a8b3c6cf119b6625038

I see the follow error message Screen Shot 2020-06-24 at 2 32 13 PM

Seems possible I have some OS level issue causing this. Please see if you can reproduce. Steps:

Observed

jespino commented 4 years ago

@DHaussermann yes, looks like permissions related like the share screen problem seen before.

jespino commented 4 years ago

I can explicitly try to request permissions using https://www.electronjs.org/docs/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos

jespino commented 4 years ago

Camera is working for me in desktop app 4.4.0 in Arch Linux, maybe is mac thing

amyblais commented 4 years ago

Please see some additional details here https://github.com/mattermost/desktop/issues/1330#issuecomment-649377999.

dpanic commented 3 years ago

Camera is working for me in desktop app 4.4.0 in Arch Linux, maybe is mac thing

Yes it is MacOS thing...App needs to be signed with entitlements

https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_device_camera https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_device_microphone

alefattorini commented 3 years ago

Any news on this? It's a bit confusing switching to the web version in order to use the jitsi plugin

amyblais commented 3 years ago

Unsure if it helps, but in desktop app v4.6.2 we fixed an issue where macOS entitlements had not been enabled for using camera and microphone on the Desktop App for third-party plugins such as Jitsi -- https://docs.mattermost.com/help/apps/desktop-changelog.html#release-v4-6

dpanic commented 3 years ago

QA in my company tested, and it still doesn't work unfortunately

On Tue, Feb 16, 2021 at 5:00 PM Amy Blais notifications@github.com wrote:

Unsure if it helps, but in desktop app v4.6.2 we fixed an issue where macOS entitlements had not been enabled for using camera and microphone on the Desktop App for third-party plugins such as Jitsi -- https://docs.mattermost.com/help/apps/desktop-changelog.html#release-v4-6

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mattermost/mattermost-plugin-jitsi/issues/120#issuecomment-779933020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACUTPIZGPUCAY7GU7JQHXTS7KJC7ANCNFSM4OHD2SQQ .

estebanz01 commented 3 years ago

I confirm that updating to version 4.6.2 works. I needed to reinstall the app (delete it and add new version) so the permissions can work.

Edit: Tested in in Mac OS Catalina 10.15.7.

hanzei commented 3 years ago

@dpanic Did you test after reinstalling the app?

dpanic commented 3 years ago

Will retest. It didn't worked than (around March this year)

Screenshot from 2021-05-28 09-39-59

larkox commented 3 years ago

@Willyfrog Any thoughts on this?

Willyfrog commented 3 years ago

if you never got any permission request might be because you already especified those permissions in the OS settings? that happened to me on big sur, if I chose not to permit access, I'd have to go to system preferences -> security & privacy -> camera and allow mattermost to use it. On catalina the path might be different.