Ruddle / RemoteCam

Your android camera streamed on your desktop: use as a source for OBS, or as a webcam with v4l2. Free✅, No Ads✅, Open Source✅
MIT License
477 stars 55 forks source link

fix: fix Pixel series crash #11

Closed SherlockGougou closed 11 months ago

SherlockGougou commented 11 months ago

fix Pixel series crash. Change the method of obtaining the camera list.

我发现,在我的Pixel 4上面启动就会闪退,另外我在现存的issues中也发现了同样的错误。调试后发现是获取摄像头错误导致的。我查阅了源码后,对获取摄像头列表的方法进行了更换。很抱歉的是,我不太明白原始的写法的作用。如果你觉得这样的改动没问题,就可以合并这个PR。

Below is Google Translate: I found that it crashed when I started it on my Pixel 4. In addition, I also found the same error in existing issues. After debugging, it was found that it was caused by an error in acquiring the camera. After checking the source code, I changed the method of obtaining the camera list. Sorry, I don't quite understand what the original writing does. If you think such changes are okay, you can merge this PR.

:)

SherlockGougou commented 11 months ago

emm...there seems to be some problem, wait a moment...

: (