Skip to content

Documentation for control protocol #673

@jze

Description

@jze

I would like to use the scrcpy server in connection with machine learning. With some adjustments relatd to the new version 1.9 of the server I have been able to use the py-scrcpy Python code https://github.com/jze/py-scrcpy receive the video stream. Is is correct to simple receive the video stream via the first socket. When looking at the original data stream of scrcpy using Wireshark there are some additional characters like OKAY.

Now I am looking for a way to send commands back to the Android device. I think https://github.com/Genymobile/scrcpy/blob/master/server/src/main/java/com/genymobile/scrcpy/ControlMessageReader.java contains the necessary information to understand the control protocol. However, it would be much easier if there was some written documentation or simple demo code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions