ws-scrcpy icon indicating copy to clipboard operation
ws-scrcpy copied to clipboard

possible to disable controls

Open sai-tirunagiri opened this issue 3 years ago • 4 comments

Hi,

On scrcpy there is a flag, --no-control which will disable controls (everything which can interact with the device: input keys, mouse events, etc), is it available on ws-scrcpy or any ideas on how to go about it.

Thanks

sai-tirunagiri avatar Apr 06 '21 11:04 sai-tirunagiri

Hi.

Unlike the original server in scrcpy, server from my fork always accepts control events from users.

Here is the code responsible for handling events: https://github.com/NetrisTV/scrcpy/blob/6b510b71a8433ad15f17318c7ad78b1619959af0/server/src/main/java/com/genymobile/scrcpy/WSServer.java#L130-L131

What exactly are you trying to achieve?

drauggres avatar Apr 06 '21 12:04 drauggres

user 1 : using device user 2: can only view screen and will not have access to control it and also user-2 should see a tag in device-list page as busy or in-use.

krishtoautomate avatar Jun 20 '21 00:06 krishtoautomate

@drauggres , any update on this ? , i am also trying to achieve the same as @krishtoautomate , or can you please suggest any other way to achieve this?

dilip-tc avatar Mar 09 '22 17:03 dilip-tc

@drauggres , any update on this ?

No, nothing has changed. In my case I need everyone to be able to control a device. It will take a lot of work to implement this properly, not breaking it for me.

can you please suggest any other way to achieve this?

You can change server side to process control messages only from the first client if there are more than one.

drauggres avatar Mar 09 '22 18:03 drauggres