Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.83k stars 10.47k forks source link

scrcpy enables web support #4126

Open WQY916 opened 1 year ago

WQY916 commented 1 year ago

There is a well-known project https://ya-webadb.vercel.app that can support scrcpy web, but this project needs to connect to adb through usb or websockify. Of course, the use of usb needs to be limited by the data cable, and when using websockify, it also needs to be signed by a trusted certificate to be able to access it on other devices. If scrcpy natively enables web support, perhaps these problems can be solved.At the moment when ipv6 covers a large area, it may be possible to realize real remote control.

yume-chan commented 1 year ago

313

needs to connect to adb through usb or websockify.

Run WebSockify on the same device as the Web browser, or blame Google for constantly changing the requirements of Direct Sockets API (which enables TCP connections in Web browsers).

WQY916 commented 1 year ago

My idea is to let scrcpy create a web program by itself, create a server like php/python/nodejs, so that we can remote control without relying on websockify

filipef101 commented 11 months ago

A cross platform/mobile app could connect directly, maybe a better solution?

me2sy commented 1 month ago

My idea is to let scrcpy create a web program by itself, create a server like php/python/nodejs, so that we can remote control without relying on websockify

Hi,Try This One https://github.com/me2sy/MYScrcpy/blob/1.1.1/myscrcpy/gui/ng/demo.py