1

i about a a week that i am chasing my tail to run some of the examples here(media coec examples): http://bigflake.com/mediacodec/

some of them are build for CTS but can implement with some changes. I hope that i am not the only one who deal with it.

I want to ask about this patch:"Android Breakout game recorder patch "

I already loaded to game project to eclipse and can run it on my device.
But when i apply the patch through "Team->apply patch" in eclise. the patch was apply but with error of "missing files" on some of the changes.

Is anybody can help me to apply it well?

There is not git working examples yet with media codec. and any help with the setup will be great.

Many Thanks for any answer!

update : please,NEVER use cynogenMod ROM for new API development. I could not run many classes with their 4.3.1(API 18).after switch to official all run as expected

4

1 回答 1

1

Make sure you're building for API 18 -- part of the patch updates android:minSdkVersion in the manifest. The best way to apply the patch is to download the Breakout sources with git, save the patch in the top directory, and use git am <patchfile> to apply the patch with git. (The patch file was created with git format-patch.)

FWIW, if you want to see simultaneous screen rendering and recording in action, the "Show + capture camera" feature of Grafika also does this. That's also juggling the camera, and trying to keep the video encoder running across activity restarts and device sleeps, so the code is a little more complex. As with the Breakout patch, it operates by rendering the same scene twice, to two different surfaces.

Grafika includes a TextureView-based video player -- select camera-test.mp4 to play back the video.

于 2013-12-21T19:25:07.367 回答