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 can i use one device to control all device? #266

Open
tiennguyen12g opened this issue Mar 31, 2023 · 2 comments
Open

How can i use one device to control all device? #266

tiennguyen12g opened this issue Mar 31, 2023 · 2 comments

Comments

@tiennguyen12g
Copy link

tiennguyen12g commented Mar 31, 2023

Hello everyone, if you have experience with this case, please give me some solution.

  • I connect 5 devices to computer via usb cable.
  • I run server and run command "adb -s forward tcp:8886 tcp:8886 " for each device ( note: change the first tcp to other port such as: 8887 , 8888, 8889 ... and more)
  • I connect url:
    "http://127.0.0.1:8000/#!action=stream&udid=<.device-Id.>&player=broadway&ws=ws%3A%2F%2F127.0.0.1%3A<.port corresponding to device Id.>%2F".
    It mean i open 5 window browsers.

Question:

  1. How can i use one device to control all device?
    ex: I watch Tiktok video, when i scroll to next video or increase/decrease volume, i want other devices do the same thing.
  2. Does the ws-scrcpy project provide the ability to show all devices in a single web window?
    Thank all you. Hope to see your help
  3. How to make the web auto display new device when we connect device to computer via usb cable?
@drauggres
Copy link
Collaborator

  1. Not without modifications. Input events are sent ontly to a specific device.
  2. No. But it's relatively easy to implement.
  3. It already works automatically. And there is no need to forward ports manually. Something is wrong with your build.

@tiennguyen12g
Copy link
Author

  1. Not without modifications. Input events are sent ontly to a specific device.
  2. No. But it's relatively easy to implement.
  3. It already works automatically. And there is no need to forward ports manually. Something is wrong with your build.

Thank bro. I will try...

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