w2016561536 / android_virtual_cam

xposed安卓虚拟摄像头 android virtual camera on xposed hook
MIT License
1.37k stars 381 forks source link

Hallo I just wanna ask, is it possible to capture with default camera, exclusively for MIUI Rom? #28

Closed amican closed 2 years ago

amican commented 2 years ago

I've been tested with MIUI ROM, it's only work for preview but when i capture image, it show original input hardware camera

w2016561536 commented 2 years ago

If you want to hook the image capture. Perhaps you need to create 1000.bmp under the specific path.

If it's convenient for you, send me the log of xposed.

fahadpk007 commented 2 years ago

Hi. I tried with snapchat and another camera app. But snapchat would give error of no camera detected. I placed virtual.mp4 and 1000.bmp in the specified folder. But still the same issue with both the apps. I tried placing disable.jpg in the specified folder, it let the snapchat app detect camera but no image was replaced. Could you please guide me the proper procedure to get it work and where I am doing something incorrect?

w2016561536 commented 2 years ago

Er... I have not found the reason this may be a tough problem

fahadpk007 commented 2 years ago

Ohh. Do you have it working or tested on snapchat for yourself? May be you will be able to identify the problem. If it is convenient for you, could you please prepare a video link for us to understand how to configure this module to work properly? In my case, I may be mixing things up. You tutorial could help me get things sorted. Thanks in advance.

w2016561536 commented 2 years ago

I have test it, but it reports error (illeagleStateException) when trying to provide content for surface. till now , I have not found the reason

fahadpk007 commented 2 years ago

Ohh okay. Hoping for the best and wish it get sorted out asap. Really like the idea of the module. Very best wishes to you bro.

w2016561536 commented 2 years ago

The snapchat is very strange, even doesn't invoke createCaptureSession. In most demo app and Camera2 api invoke tutorials , the method would be invoked when open camera. Perhaps I need to analyze the code of snap chat.