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

Control without capture? #4566

Open
keldian opened this issue Jan 5, 2024 · 4 comments
Open

Control without capture? #4566

keldian opened this issue Jan 5, 2024 · 4 comments

Comments

@keldian
Copy link

keldian commented Jan 5, 2024

Looked around a bit but couldn't find a clear answer. Standard use of scrcpy works great, but running scrcpy -N over TCP/IP I get:

INFO: No video playback, no recording, no V4L2 sink: video disabled
INFO: No audio playback, no recording: audio disabled
ERROR: No video, no audio, no OTG: nothing to do

A bit perplexed as I thought forwarding input (at least key events) qualifies as a "thing to do". Any other way to accomplish this?

@rom1v
Copy link
Collaborator

rom1v commented Jan 5, 2024

Over USB: scrcpy --otg

@keldian
Copy link
Author

keldian commented Jan 5, 2024

Thanks but as I pointed out, my use case is over TCP/IP.

@rom1v
Copy link
Collaborator

rom1v commented Jan 5, 2024

There is currently no solution for controlling the device without mirroring (maybe #4473 will help later).

One reason it is not easy to control without mirroring is that you need to see the screen to know where to click (absolute mode) in default injection mode. Only in HID mode you can have relative mouse events.

Another one is that SDL requires a window on the client side to capture the keyboard and the mouse.

@keldian
Copy link
Author

keldian commented Jan 5, 2024

Fair enough if there's no solution—I'll look into other software.
To address those reasons, as I pointed out, key events would be enough; I don't need pointing input as the use case is to act as a basic TV remote. Also I don't mind a window being open as long as there's no video recording.

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