Skip to content

connect the mobile phone through ws to perform Scrcpy operation, and report an error Error: Socket closed after stopping. #606

Answered by yume-chan
greathh asked this question in Q&A
Discussion options

You must be logged in to vote

What Android version is it?

scrcpy server exited prematurely

Put a breakpoint at https://github.com/tango-adb/old-demo/blob/156d7f5f5f79d3999f685d291883dc125258ea73/packages/demo/src/components/scrcpy/state.tsx#L563 and inspect e.output to see server's output.

there may be a large number of mouse hover events on the interface that cause the lag

This is possible, but only with very poor network.

on the phone there are only touch events

Only some UI elements responds to hover move events. Android is mostly designed for touch after all.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@greathh
Comment options

@greathh
Comment options

@greathh
Comment options

@yume-chan
Comment options

Answer selected by greathh
@greathh
Comment options

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants