Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fj200821/ShareScreenServer

Repository files navigation

Custom video protocol by Done


屏幕分享服务端,录制屏幕,h264方式编码,通过UDP方式推送到客户端

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 /
/ /
/*********************************************/

About

share android screen live on udp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Java 96.4%
  • C++ 2.5%
  • CMake 1.1%

AltStyle によって変換されたページ (->オリジナル) /