ScreenStream
ScreenStream copied to clipboard
Use as fake camera driver
Why not to make the display as a dummy cam and grab it from JavaScript in a browser and for audio the same ?
I'm Android developer not a Web (
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.