6

I want to mirror Android Screen to desktop web browser. I am able to capture the screen using MediaProjection - thanks to sample app.

But next part is hard one - sending captured data to desktop! I know the technique to establish HTTP connection to desktop program by ADB port forwarding but I guess FPS will be very low.

How can I stream this captured screen data to desktop? What sort of connection would I need and what codecs would I need on Android side to ensure speed?

Thanks

iuq
  • 1,487
  • 1
  • 20
  • 42
  • The `screenrecord` v1.2 shell command can be used to stream H.264 over ADB. I successfully piped it into vlc on a Linux system, though I'm afraid I didn't save the command line arguments to vlc. ADB is pretty slow, but you can cap the maximum bit rate with the video encoder configuration. The trick is to configure the tty for raw data -- see https://android.googlesource.com/platform/frameworks/av/+/marshmallow-mr1-release/cmds/screenrecord/screenrecord.cpp#487 – fadden Jan 27 '16 at 16:44
  • @fadden I am trying to build a Java solution. Something like [vysor.io](http://www.vysor.io/). Its based on MediaProjection but not sure of streaming part. Any hints? – iuq Jan 28 '16 at 13:01
  • Is It for debug or capture? – tiny sunlight Jan 30 '16 at 04:25

0 Answers0