title: API's for Android 4.4 screen recording?
body: <p>One of the <a href="http://developer.android.com/about/versions/kitkat.html#44-screen-recording" rel="nofollow">features of Android 4.4 (Kit Kat)</a> is that it provides a way for developers to capture an MP4 video of the screen using <code>adb shell screenrecord</code>.  Does Android 4.4 provide any new API's for applications to capture and encode video, or does it just provide the <code>screenrecord</code> utility/binary?</p>
  
  <p>I ask because I would like to do some screen capture work in an application I'm writing.  Before anyone asks, yes, the application <em>would</em> have framebuffer access.  However, the only Android-provided capturing/encoding API that I've seen (<a href="http://developer.android.com/reference/android/media/MediaRecorder.html" rel="nofollow">MediaRecorder</a>) seems to be limited to recording video <a href="http://developer.android.com/reference/android/media/MediaRecorder.VideoSource.html" rel="nofollow">from the device's camera</a>.</p>
  
  <p>The only screen capture solutions I've seen mentioned on StackOverfow seem to revolve around taking screenshots at a regular interval or using JNI to encode the framebuffer with a ported version of ffmpeg.  Are there more elegant, native solutions?</p>