Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does Virtual Display implement input event control? #4873

Open
BarleyXu opened this issue Apr 22, 2024 · 2 comments
Open

How does Virtual Display implement input event control? #4873

BarleyXu opened this issue Apr 22, 2024 · 2 comments

Comments

@BarleyXu
Copy link

BarleyXu commented Apr 22, 2024

hi, great product! !

One question, I created Virtual Display on my android device. Then display a specified third-party application on the Virtual Display, which will not affect the display content of the home screen. Then I specify the display id through scrcpy --display. I can see the third-party application interface on the computer and can also do input event control. How is this achieved?

I am also sharing the content of virtual display to the browser through similar webrtc, but when I receive the browser event in Android and trigger the event through injectInputEvent,"I InputDispatcher: Dropping event because there is no touched foreground window appears. in display 34 or gesture monitor to receive it" arised in the Log. How to modify the event handling of virtual display?

@BarleyXu BarleyXu changed the title VirtualDisplay是如何实现事件回传的? How does Virtual Display implement input event control? Apr 22, 2024
@hwf1324
Copy link

hwf1324 commented Apr 22, 2024

Hi

I would like to ask, what is the app you use to create a virtual display?
I am very interested in it.

Thanks

@BarleyXu
Copy link
Author

Hi

I would like to ask, what is the app you use to create a virtual display? I am very interested in it.

Thanks

Hi, I use the createVirtualDisplay method of MediaProjection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants