1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<sample>
18    <name>MediaRecorder</name>
19    <group>Media</group>
20    <package>com.example.android.mediarecorder</package>
21    <minSdk>16</minSdk>
22    <targetSdkVersion>22</targetSdkVersion>
23    <strings>
24        <intro>
25<![CDATA[
26This sample uses the camera/camcorder as the A/V source for the MediaRecorder API.
27A TextureView is used as the camera preview which limits the code to API 14+. This
28can be easily replaced with a SurfaceView to run on older devices.
29]]>
30        </intro>
31    </strings>
32    <template src="base"/>
33    <common src="media"/>
34        <metadata>
35        <status>PUBLISHED</status>
36        <categories>Media</categories>
37        <technologies>Android</technologies>
38        <languages>Java</languages>
39        <solutions>Mobile</solutions>
40        <level>ADVANCED</level>
41        <icon>screenshots/big_icon.png</icon>
42        <screenshots>
43            <img>screenshots/screenshot1.png</img>
44            <img>screenshots/screenshot2.png</img>
45        </screenshots>
46        <api_refs>
47            <android>android.hardware.Camera</android>
48            <android>android.media.CamcorderProfile</android>
49            <android>android.media.MediaRecorder</android>
50            <android>android.view.TextureView</android>
51        </api_refs>
52        <description>
53<![CDATA[
54This sample uses the camera/camcorder as the A/V source for the MediaRecorder API.
55A TextureView is used as the camera preview which limits the code to API 14+. This
56can be easily replaced with a SurfaceView to run on older devices.
57]]>
58        </description>
59        <intro>
60<![CDATA[
61This sample shows how to use the [MediaRecorder][1] API.
62It uses the [Camera][2] as input source and displays a preview on a [TextureView][3]
63The sample features a button to capture the input and stop capturing afterwards.
64
65It demonstrates how to correctly gain control and release the camera.
66The sample also shows how to save the captured audio and video to persistant storage
67and basic error handling.
68
69
70[1]: https://developer.android.com/reference/android/media/MediaRecorder.html
71[2]: https://developer.android.com/reference/android/graphics/Camera.html
72[3]: https://developer.android.com/reference/android/view/TextureView.html
73]]>
74        </intro>
75    </metadata>
76</sample>
77