ScreenStream icon indicating copy to clipboard operation
ScreenStream copied to clipboard

Please Add Remote Control.

Open the-mentor opened this issue 6 years ago • 15 comments

This app is great the only thing its missing IMO is the ability to remote control the phone that is being streamed. so i would like to suggest that improvement.

thank you! -DM

the-mentor avatar Jul 16 '19 13:07 the-mentor

What kind of remote control you suggest?

dkrivoruchko avatar Jul 16 '19 16:07 dkrivoruchko

I recommend a way to click and drag with the mouse on the website and relay these clicks to the device. Also keyboard support will also be very useful.

the-mentor avatar Jul 16 '19 16:07 the-mentor

You not the first one with such ideas. The is one issue - for security reasons Android system deny any way to interact one app with other. There is only limited options completely controlled by system. So without rooting device there is no way to do this or I don't know such way. Let me know if you have any.

dkrivoruchko avatar Jul 16 '19 16:07 dkrivoruchko

I think apps like Vysor use the adb over network or adb over USB to control a device without root. And I would very much prefer an open source solution like screen stream

the-mentor avatar Jul 16 '19 17:07 the-mentor

Yes, but this is differently no a simple solution as Start-and-Go. I'll not do this, but any one can do this.

dkrivoruchko avatar Jul 16 '19 17:07 dkrivoruchko

It can be implemented using accessibility services, the user has to enabled it for the app before the controls can work

ItsShadowl avatar Apr 11 '20 12:04 ItsShadowl

@noobshow I am currently looking at trying to implement remote control functionality into this. Have you perhaps already attempted it?

soutieslak avatar Jun 23 '20 20:06 soutieslak

Hi @soutieslak, I eventually stopped the project, the others on the team stopped responding around the COVID outbreak. It should be easy I think.

ItsShadowl avatar Jun 23 '20 21:06 ItsShadowl

@soutieslak @ItsShadowl try this one which is based this project if u have ROOT access. it need ROOT so i will not create pr to this proj.And big thanks to dkrivoruchko. fork proj url is https://github.com/nian0114/ScreenStreamRemoteControl

nian0114 avatar May 21 '24 17:05 nian0114

Maybe these guys have it figured out? Indeed this would be super cool to have.

https://github.com/h-mdm

KopiasCsaba avatar Oct 02 '24 08:10 KopiasCsaba

@KopiasCsaba H-MDM looks interesting for automated tests, but I don't really understand it. Can you point how it can simulate screen touch on the device? Thank you!

aurium avatar Dec 20 '24 01:12 aurium

An update on this, here is a proof of concept that it is possible!

  1. Install this awesome tool: https://play.google.com/store/search?q=automate&c=apps

  2. import this flow: Gesture!.zip (You need to unzip it first). This will create a flow that looks like this: image

And you can see it in this video in action:

  • I start the flow
  • I switch to the browser
  • Automate injects the swipe and the browser interprets that as a reload gesture

https://github.com/user-attachments/assets/de2708ea-1f1a-47e2-a5e8-ce328a6c117a

So upon doing those things, you'll notice it asks permission to be an accessibility service.

So I'm pretty sure that is the key to this, through accessibility service you can inject gestures somehow.

KopiasCsaba avatar Jan 14 '25 09:01 KopiasCsaba

@KopiasCsaba H-MDM looks interesting for automated tests, but I don't really understand it. Can you point how it can simulate screen touch on the device? Thank you!

Great news!

I had hard time finding it in that repo, but based on my prev post i started to dig around, and found it!

So KDEConnect is an opensource tooling from where you can learn how to do it!

I believe the key code parts are here:

  • https://github.com/KDE/kdeconnect-android/blob/49a9cd5ea7d50a0d5fe267ba7b8e568d094adbb2/src/org/kde/kdeconnect/Plugins/MouseReceiverPlugin/MouseReceiverService.java#L147
  • https://github.com/KDE/kdeconnect-android/blob/49a9cd5ea7d50a0d5fe267ba7b8e568d094adbb2/AndroidManifest.xml#L384
  • https://github.com/KDE/kdeconnect-android/blob/49a9cd5ea7d50a0d5fe267ba7b8e568d094adbb2/AndroidManifest.xml#L63C7-L63C20 (I've read this might matter as well)

Here is a confusing video on kdeconnect in action, where I draw with my mouse through wifi on a split screen, so you can see both my mouse and what events happening on the paint canvas.

https://github.com/user-attachments/assets/a708bbf3-aad8-4cf6-8526-a393c29fc707

It would be really awesome to be able to interact with the phone through the browser. I hope I could have shown some useful resources for it.

KopiasCsaba avatar Jan 14 '25 10:01 KopiasCsaba

Thanks for research. Will have a look. But no promises.

dkrivoruchko avatar Jan 14 '25 11:01 dkrivoruchko

Indeed, TeslaDisplay made it real. But I prefer your app with resizing feature. Another feature they have is using local domaine name rather than IP.

Sigmun avatar Mar 04 '25 20:03 Sigmun