Giter Club home page Giter Club logo

sharescreenclient's Introduction

Custom video protocol by Done


分享屏幕客户端,需要结合使用服务端程序,硬解H264码,暂不支持屏幕反向控制功能

request structure METHOD CSeq length Content CRLF

response structure STATUS CSeq length Content CRLF

METHOD Lists

  • SETUP //operate transport param such as client control port/TCP and video port/UDP
  • PLAY //start transfer video for phone window
  • TEARDOWN //stop transmission
  • HEART //heart package for keeping communicating
  • HOME //mock clicking home key
  • BACK //mock clicking back key
  • MENU //mock clicking menu key
  • VOLUME //mock clicking menu key
  • CLICK //mock clicking window
  • TOUCH //mock touching window

control port is Odd Number such as PORT%2 = 1

video port is Even Number such as PORT%2 = 0





sample:

/******************** C->S **********************/
//                                               /
//   METHOD                                      /
//     |                                         /
//     |  CSeq                                   /
//     |   |                                     /
//     |   |Length                               /
//     |   |  |                                  /
//     |   |  |           Content                /
//     |   |  |              |                   /
//     |   |  |              |     CRLF          /
//     |   |  |              |      |            /
//     |   |  |              |      |            /
//   SETUP 1 17 client-port=60001 \r\n           /
//                                               /
/************************************************/




/********************************* S->C *********************************/
/                                                                        /
/    STATUS                                                              /
/      | CSeq                                                            /
/      |  |Length                                                        /
/      |  |  |                  Content                                  /
/      |  |  |                     |              CRLF                   /
/      |  |  |                     |               |                     /
/      |  |  |                     |               |                     /
/      |  |  |                     |               |                     /
/      |  |  |                     |               |                     /
/      |  |  | ---------------------------------   |                     /
/     200 1 33 client-port=60001;server-port=999 \r\n                    /
/                                                                        /
/************************************************************************/




/****************** C->S *****************/
//                                        /
//   METHOD                               /
//     |                                  /
//     |  CSeq                            /
//     |   |                              /
//     |   |Length                        /
//     |   |  |                           /
//     |   |  |      Content              /
//     |   |  |        |                  /
//     |   |  |        |           CRLF   /
//     |   |  |        |            |     /
//     |   |  |        |            |     /
//  VOLUME 1 17 set=up;type=alarm \r\n    /
//                                        /
/*****************************************/

/********************* S->C ******************/
/                                             /
/    STATUS                                   /
/      | CSeq                                 /
/      |  |Length                             /
/      |  | |   Content                       /
/      |  | |     |    CRLF                   /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | | --------  |                     /
/     200 1 8 alarm=ok \r\n                   /
/                                             /
/*********************************************/




/********************** C->S **********************/
//                                                 /
//   METHOD                                        /
//     |                                           /
//     |  CSeq                                     /
//     |   |                                       /
//     |   |Length                                 /
//     |   | |                                     /
//     |   | |    Content                          /
//     |   | |      |                              /
//     |   | |      |                      CRLF    /
//     |   | |      |                       |      /
//     |   | |      |                       |      /
//   CLICK 1 8 src=1280,720;order=200,250 \r\n     /
//                                                 /
/**************************************************/

/********************* S->C ******************/
/                                             /
/    STATUS                                   /
/      | CSeq                                 /
/      |  |Length                             /
/      |  | |   Content                       /
/      |  | |     |    CRLF                   /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | | --------  |                     /
/     200 1 8 click=ok \r\n                   /
/                                             /
/*********************************************/


/************************** C->S **************************/
//                                                         /
//   METHOD                                                /
//     |                                                   /
//     |  CSeq                                             /
//     |   |                                               /
//     |   |Length                                         /
//     |   | |                                             /
//     |   | |            Content                          /
//     |   | |              |                              /
//     |   | |              |                      CRLF    /
//     |   | |              |                       |      /
//     |   | |              |                       |      /
//   TOUCH 1 8 src=1280,720;order=200,250,200,300 \r\n     /
//                                                         /
/**********************************************************/

/********************* S->C ******************/
/                                             /
/    STATUS                                   /
/      | CSeq                                 /
/      |  |Length                             /
/      |  | |   Content                       /
/      |  | |     |    CRLF                   /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | |     |     |                     /
/      |  | | --------  |                     /
/     200 1 8 touch=ok \r\n                   /
/                                             /
/*********************************************/


sharescreenclient's People

Contributors

donemr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.