dkrivoruchko / ScreenStream

ScreenStream Android App
https://screenstream.io
MIT License
1.56k stars 320 forks source link

Use as fake camera driver #190

Open ROBERT-MCDOWELL opened 2 years ago

ROBERT-MCDOWELL commented 2 years ago

Why not to make the display as a dummy cam and grab it from JavaScript in a browser and for audio the same ?

dkrivoruchko commented 2 years ago

I'm Android developer not a Web (

FrostKiwi commented 1 year ago

Why not to make the display as a dummy cam and grab it from JavaScript in a browser and for audio the same ?

This technique may not be practical for this app specifically, though you may refer to multiple setups. The browser may grab cameras for the client. The "dummy webcam" thus has to be installed on the client. The app would require a driver, akin to OBS Virtual cam. So I'm not sure about the use-case.

You may also refer to the phone's browser being the client in this scenario and grabbing and displaying it's device capture as a camera. This however would require system level access to implement. Something a mere android app does not posess.

The act of grabbing audio on an android device is not difficult in of itself, by going through the phone call api. It is in fact how many apps implement rudemantary audio transfer, like robot vacuums. Though you limit yourself to very compressed mono audio.