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

Camera through USB? #21

Open zigmhount opened 5 months ago

zigmhount commented 5 months ago

Hi, Thanks for this app! Works very well via network, although with some lag of course. I've never used DroidCam, but I understand that it can use the phone's camera through USB as well. Can this be implemented in RemoteCam? Would it eliminate the lag entirely? Or maybe it can be done via ADB and/or scrcpy or something like that?

moh-slimani commented 3 weeks ago

it would be really nice to have the camera over USB support.

drajabr commented 2 weeks ago

@moh-slimani @zigmhount I use https://github.com/zjx2007/CHY_Cot-Hypernet mainly to connect my android tablet as moonlight(artimis fork) client for sunshine(apollo fork) streaming. just today I had idea to stream camera from the tablet so I'm making use of most of its hardware. Sadly Cot Hypernet is just one way proxy for connection from android to internet via PC with no real network between PC and Android.

Luckily there's a solution, which is simply adb forward tcp:8080 tcp:8080 , then connect to 127.0.0.0:8080/cam.mjpeg which luckily can be automated easily with streaming app sunshine, only in my case I had to specfiy which adb device to setup the forward for by using adb -s DEVICE_ID forward ....etc