aldrinjenson / obsidian-camera

Camera plugin for Obsidian
23 stars 4 forks source link

Snap distorted; Does not run on mobile #1

Closed merlinuwe closed 2 years ago

merlinuwe commented 2 years ago

Hi, thanks for your plugin.

I use a Logitech WebCam with HD1080p. When I make a snap, it is distorted:

image

(I think, the functionality is not yet available on Android Smartphones, isn't it?)

aldrinjenson commented 2 years ago

Hi @merlinuwe , I have modified the snap function to use the same dimensions as that of the web cam. Can you pull from the latest commit and try once again please.

(I think, the functionality is not yet available on Android Smartphones, isn't it?)

This plugin was initially developed with just desktop in mind. I tried testing on Android, but the permission APIs were failing to get the videoStream. For now, I've added a file picker in addition which may be helpful in Android.(as in, direct snap is not possible, but you may still be able to access camera from the file manager) Please try both these issues when free and let me know if you have any suggestions. Thanks.

merlinuwe commented 2 years ago

Thank you very much, the snaps dimensions are now ok. ;-)

It is possible, to make a photo with your select file ("Datei auswählen") button.

Screenshot_2022-06-03-19-12-09-428_md obsidian

But sadly, I cannot add videos, as you said in your comment. Is a workaround possible?

aldrinjenson commented 2 years ago

Hi, I missed the video aspect initially, but I've added it now. I have also hidden the unnecessary buttons in mobile view when the permission denied error occurs.

aldrinjenson commented 2 years ago

Hi, since the problems mentioned have been fixed, I'm closing this.