ScreenStream icon indicating copy to clipboard operation
ScreenStream copied to clipboard

Use as fake camera driver

Open ROBERT-MCDOWELL opened this issue 3 years ago • 2 comments

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

ROBERT-MCDOWELL avatar Jan 04 '22 13:01 ROBERT-MCDOWELL

I'm Android developer not a Web (

dkrivoruchko avatar Jan 04 '22 17:01 dkrivoruchko

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.

FrostKiwi avatar Dec 25 '22 08:12 FrostKiwi