Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9: Using Multimedia — Audio, Vid... > Recording Audio and Video

Recording Audio and Video

In this section you will learn how to record audio and video. We will discuss using intents to record video and see how to use the media recorder.

The easiest way to capture audio and video is to use intents to launch the video recorder. This method allows you to control the storage location along with the video recording quality, while still letting the native application handle all other controls for the video.

When you need more fine-grained control, the MediaRecorder object lets you control all aspects of the recording process.

Before any media can be recorded in Android, the following uses-permissions must be added to the program manifest:

<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.RECORD_VIDEO"/>

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial