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 ...
Get Pro Android Media: Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.