aldrinjenson / obsidian-camera

Camera plugin for Obsidian
23 stars 4 forks source link

camera not working #13

Open melliott03 opened 1 year ago

melliott03 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

aldrinjenson commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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?

Hydrock commented 10 months ago

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 commented 8 months ago

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 commented 8 months ago

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. 🤞