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

camera not working #13

Open
melliott03 opened this issue Dec 28, 2022 · 8 comments
Open

camera not working #13

melliott03 opened this issue Dec 28, 2022 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@melliott03
Copy link

melliott03 commented Dec 28, 2022

I'm getting "Error in loading videostream in your device" and "DOMException: Could not start video source". Any idea why? I'm on a Apple M1 Max Mac OS Monterey. To troubleshoot, I downloaded the repo, changed it so the parameters to the getUserMedia takes only audio and the audio worked by itself but the getUserMedia doesn't work when you add video: true

Screen Shot 2022-12-27 at 9 58 28 PM

@ohmygaugh-crypto
Copy link

Just checking in. I'm encountering the same error.
image

looks like video stream cannot be assigned null value?

I'm looking into this too, so I'll keep y'all posted if I remedy this. I'm guessing there was some type of breaking change during aldrinjenson's last commit.

@danraymond
Copy link

This is happening now for me too on a Google Pixel 7 Pro, Was okay on my Galaxy Note 8

@aldrinjenson
Copy link
Owner

Hi,
This issue seems device specific.
The navigator.mediaDevices.getUserMedia API does not seem to be available for these certain devices.

Not sure, but please see if any of the past releases helps solve this.
https://github.com/aldrinjenson/obsidian-camera/releases

@elfomze
Copy link

elfomze commented May 29, 2023

I tried all versions back to the one named "allow camera in mobile screens" where I got a different error. On this version, I get told by obsidian that it can't get the required permission, despite having granted all possible permissions in the app's settings:
Screenshot_20230529-202123__01.png

On all versions until this 1.5.0, I can reproduce the original issue posted on a ONEPLUS 5T running android 13 (paranoid android topaz 1).

@ericjding
Copy link

I'm seeing the same problem on a Pixel 4a running Android 13. Could this be happening because Obsidian does not have permissions to access the camera?

@aldrinjenson aldrinjenson added the help wanted Extra attention is needed label Jul 27, 2023
@Hydrock
Copy link

Hydrock commented Dec 10, 2023

I assume this is related to the Obsidian build

Usually, when you try to connect to user media as

navigator.mediaDevices.getUserMedia({ video: true, audio: true, });

browser immediately showing window

image

but not on my mac m1

Strangely, in the settings, Obsidian has access to the microphone, but does not have access to the camera. When creating a stream, access is not requested either - apparently Electorne does not do this. But the camera indicator is on. The cat thinks that everything is OK, but at the system level, the camera does not give data

image

image

@aldrinjenson
Copy link
Owner

Hi everyone,
I recently got a macbook and was able to understand this issue(Previously I was developing in a Linux machine).

After some digging around, I think the issue has to do with modifying electron (framework used to develop obsidian) configs for specific platforms

This is a stackoverflow question about similar issue on macOS. Unfortunately, the solution proposed here can only be enabled in the actual Obsidian code and not in the code for any plugins.
The camera configuration request has to be made by the parent electron wrapper which (only) when granted can then be used with any other plugins requesting it as well.

Hence, I'm afraid this is beyond the scope of this plugin at the moment.
Thank You for understanding.

@aldrinjenson
Copy link
Owner

P.S. As a last bit effort, tagging @joethei here in the hope that hey may be able to shed some light on this issue. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants
@danraymond @elfomze @ericjding @melliott03 @Hydrock @aldrinjenson @ohmygaugh-crypto and others