O'Reilly logo

Pro Android Media: Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets by Shawn Van Every

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Custom Video Capture

With images and audio there are multiple ways to do capture. Video capture is no exception; we don't have quite as many options as we do with audio, but we do have the ability to create a custom video capture example using the MediaRecorder class.

In many ways, building a custom video capture application is a lot like building a custom camera application combined with a custom audio recording application. We have to create a SurfaceView for the camera to draw preview or viewfinder images on, just like we did with our custom camera examples from Chapter 2, and we'll use a MediaRecorder for the actual recording, like we did in Chapter 7 for audio capture.

MediaRecorder for Video

To use the MediaRecorder for video capture, we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required