Comments (6)
Hello again :-).
Here is what I need from you:
- open devtools for a "stream page"
- run
var {videoWidth, videoHeight} = document.getElementsByTagName('video')[0]; console.log({videoWidth, videoHeight})
in devtools console - open "network" tab in devtools
- click in the top-left, then bottom-right corners of the video
Paste here:
- output from the second step
- response for
GET wda/screen
request - request payloads for two
POST wda/touch/perform
For iPhone 11 Pro
I got:
{videoWidth: 1126, videoHeight: 2436}
{
"value" : {
"statusBarSize" : {
"width" : 375,
"height" : 44
},
"scale" : 3
},
"sessionId" : "DFA28E6E-0B23-4AF1-B352-9B6ED8CBB7E0"
}
{"actions":[{"action":"tap","options":{"x":2,"y":2}}]}
{"actions":[{"action":"tap","options":{"x":373,"y":811}}]}
from ws-scrcpy.
For iPhone 7 Plus I got:
- {videoWidth: 1080, videoHeight: 1920}
{
"value" : {
"statusBarSize" : {
"width" : 414,
"height" : 20
},
"scale" : 3
},
"sessionId" : "CAAB2212-6AEF-4709-922F-8DBAEF92CAFE"
}
{actions: [{action: "tap", options: {x: 3, y: 3}}]}
{actions: [{action: "tap", options: {x: 356, y: 636}}]}
from ws-scrcpy.
Hi, have you found anything about this issue?
from ws-scrcpy.
Did you try with develop
branch? Looks like this problem has already been fixed there.
In master
: width = videoWidth / scale; height = videoHeight / scale; // (360 x 640)
In develop
: width = statusBarSize.width; height = videoHeight / (videoWidth / statusBarSize.width); // (414 x 736)
from ws-scrcpy.
Hi, I have tried develop branch. Bottom side of the UI does not work properly. I can't click anything from dock.
I tried to clone develop branch like
git clone -b develop https://github.com/NetrisTV/ws-scrcpy.git
from ws-scrcpy.
I tried to clone develop branch like
git clone -b develop https://github.com/NetrisTV/ws-scrcpy.git
OK, this will work too (you could checkout to develop
without cloning everything again).
Unfortunately I can't debug it without a real device. You'll have to deal with it yourself.
For a start you can check coordinates (as you did before) and verify, that they are in the correct range ([0; 414]
, [0; 736]
).
Then try to install Appium Desktop and see what coordinates it generates for clicks on the dock.
P.S. you rebuilt frontend after switching to develop, right? (npm install
;npm run dist:qvhack:frontend
)
from ws-scrcpy.
Related Issues (20)
- Not able to use remotelly HOT 1
- rotation HOT 3
- Embedding in a project
- error while setting up HOT 2
- Error when pull files from sdcard folder in "list files" HOT 4
- The service crashed because of an error HOT 2
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 8
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- unable to start project HOT 4
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.