可以试试 ws-scrcpy
为 lx1, ly1, rx2, ry2 计算出面积 max_area
没看懂,是说 max_area = (rx2 - lx1) * (ly1 - ry2) 吗
https://github.com/nanoscopic/WebDriverAgent/commit/3ad6454200cfcce93b9eb72a11f01a1a5d42d28d 大佬有试过这个方法吗,感觉纯点坐标明显比原有 wda 的 handleTap 要快不少
minitouch 不是最新的吧,没看到这个日志
新的 minitouch 应该能连接 STFService 上的 agent 来进行触摸
"然后将获取 H264 视频流直接映射至网页再解析最后绘制在 canvas 上"大佬能详细讲讲这部分吗 ,前端解析 h264 流是怎么弄的,目前用的https://github.com/MarkRepo/wfs.js解析,虽然能拿到画面,但是浏览器兼容性不太行
oppo 这玩意就是黏在一起的很恶心 ,如果是要做安装按钮的点击话,考虑特判一下?点这整个元素的右边部分
大佬能看下这个错误怎么解决吗 ,试着拿一台 iOS12.0.1 的 6sp 跑了一下一直报 Resource busy
$ python3 main.py -u xxxx udp
2021-03-18 15:21:28,603 - util.py[line:53] - INFO: Find Device UDID: xxxx
2021-03-18 15:21:28,604 - consumer.py[line:100] - INFO: listen UDP: udp/h264://127.0.0.1:8880
2021-03-18 15:21:28,604 - util.py[line:84] - INFO: Enabling hidden QT config
Traceback (most recent call last):
File "main.py", line 60, in <module>
main()
File "main.py", line 56, in main
args.func(args)
File "main.py", line 21, in cmd_record_udp
start_reading(consumer, device, stopSignal)
File "/home/curtain/ios-screen-record/screen/util.py", line 147, in start_reading
device.set_configuration()
File "/home/curtain/.local/lib/python3.6/site-packages/usb/core.py", line 905, in set_configuration
self._ctx.managed_set_configuration(self, configuration)
File "/home/curtain/.local/lib/python3.6/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
File "/home/curtain/.local/lib/python3.6/site-packages/usb/core.py", line 159, in managed_set_configuration
self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
File "/home/curtain/.local/lib/python3.6/site-packages/usb/backend/libusb1.py", line 812, in set_configuration
_check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
File "/home/curtain/.local/lib/python3.6/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy