aboutsummaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorBenjamin Weiss <benweiss@google.com>2014-12-04 21:34:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-04 21:34:39 +0000
commitd14b00cc8e935cc2388cee3f420f20cdabb8ab75 (patch)
tree59b81900731ab0cbc03409f385ef4da62b6fb956 /media
parent22f97fafe9ea6e61843342112902116e48a11ef5 (diff)
parent88b194fe1acc80491b0e74759c6d2ebacdb7bf89 (diff)
downloadandroid-d14b00cc8e935cc2388cee3f420f20cdabb8ab75.tar.gz
Merge "Updates metadata for "MediaRecorder" sample" into lmp-docs
Diffstat (limited to 'media')
-rw-r--r--media/MediaRecorder/Application/src/main/res/drawable-hdpi/ic_launcher.pngbin4512 -> 3925 bytes
-rw-r--r--media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.pngbin2719 -> 2388 bytes
-rw-r--r--media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.pngbin6345 -> 5433 bytes
-rw-r--r--media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.pngbin11620 -> 9657 bytes
-rw-r--r--media/MediaRecorder/packaging.yaml15
-rw-r--r--media/MediaRecorder/screenshots/big_icon.pngbin0 -> 58738 bytes
-rw-r--r--media/MediaRecorder/screenshots/screnshot1.pngbin0 -> 32245 bytes
-rw-r--r--media/MediaRecorder/screenshots/screnshot2.pngbin0 -> 771229 bytes
-rw-r--r--media/MediaRecorder/template-params.xml59
9 files changed, 47 insertions, 27 deletions
diff --git a/media/MediaRecorder/Application/src/main/res/drawable-hdpi/ic_launcher.png b/media/MediaRecorder/Application/src/main/res/drawable-hdpi/ic_launcher.png
index 13cd1e8e..bea32bc0 100644
--- a/media/MediaRecorder/Application/src/main/res/drawable-hdpi/ic_launcher.png
+++ b/media/MediaRecorder/Application/src/main/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.png b/media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.png
index 00b2bd9a..2a3a4909 100644
--- a/media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.png
+++ b/media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.png b/media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.png
index 953f1cc5..9674428e 100644
--- a/media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.png
+++ b/media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.png b/media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
index f2ccb102..61e322cf 100644
--- a/media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
+++ b/media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/media/MediaRecorder/packaging.yaml b/media/MediaRecorder/packaging.yaml
deleted file mode 100644
index 13cd2e9f..00000000
--- a/media/MediaRecorder/packaging.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-# GOOGLE SAMPLE PACKAGING DATA
-#
-# This file is used by Google as part of our samples packaging process.
-# End users may safely ignore this file. It has no relevance to other systems.
----
-
-status: PUBLISHED
-technologies: [Android]
-categories: [Media]
-languages: [Java]
-solutions: [Mobile]
-github: googlesamples/android-MediaRecorder
-level: BEGINNER
-icon: MediaRecorderSample/src/main/res/drawable-xxhdpi/ic_launcher.png
-license: apache2-android
diff --git a/media/MediaRecorder/screenshots/big_icon.png b/media/MediaRecorder/screenshots/big_icon.png
new file mode 100644
index 00000000..99bd10c3
--- /dev/null
+++ b/media/MediaRecorder/screenshots/big_icon.png
Binary files differ
diff --git a/media/MediaRecorder/screenshots/screnshot1.png b/media/MediaRecorder/screenshots/screnshot1.png
new file mode 100644
index 00000000..888c0423
--- /dev/null
+++ b/media/MediaRecorder/screenshots/screnshot1.png
Binary files differ
diff --git a/media/MediaRecorder/screenshots/screnshot2.png b/media/MediaRecorder/screenshots/screnshot2.png
new file mode 100644
index 00000000..3ae570ef
--- /dev/null
+++ b/media/MediaRecorder/screenshots/screnshot2.png
Binary files differ
diff --git a/media/MediaRecorder/template-params.xml b/media/MediaRecorder/template-params.xml
index 6b6ddc5a..fa4a165d 100644
--- a/media/MediaRecorder/template-params.xml
+++ b/media/MediaRecorder/template-params.xml
@@ -14,27 +14,62 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
-
<sample>
<name>MediaRecorder</name>
<group>Media</group>
<package>com.example.android.mediarecorder</package>
-
- <!-- change minSdk if needed-->
<minSdk>14</minSdk>
-
<strings>
<intro>
- <![CDATA[
- This sample uses the camera/camcorder as the A/V source for the MediaRecorder API.
- A TextureView is used as the camera preview which limits the code to API 14+. This
- can be easily replaced with a SurfaceView to run on older devices.
- ]]>
+<![CDATA[
+This sample uses the camera/camcorder as the A/V source for the MediaRecorder API.
+A TextureView is used as the camera preview which limits the code to API 14+. This
+can be easily replaced with a SurfaceView to run on older devices.
+]]>
</intro>
</strings>
-
<template src="base"/>
<common src="media"/>
+ <metadata>
+ <status>PUBLISHED</status>
+ <categories>Media</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>ADVANCED</level>
+ <icon>screenshots/big_icon.png</icon>
+ <screenshots>
+ <img>screenshots/screenshot1.png</img>
+ <img>screenshots/screenshot2.png</img>
+ </screenshots>
+ <api_refs>
+ <android>android.hardware.Camera</android>
+ <android>android.media.CamcorderProfile</android>
+ <android>android.media.MediaRecorder</android>
+ <android>android.view.TextureView</android>
+ </api_refs>
+ <description>
+<![CDATA[
+This sample uses the camera/camcorder as the A/V source for the MediaRecorder API.
+A TextureView is used as the camera preview which limits the code to API 14+. This
+can be easily replaced with a SurfaceView to run on older devices.
+]]>
+ </description>
+ <intro>
+<![CDATA[
+This sample shows how to use the [MediaRecorder][1] API.
+It uses the [Camera][2] as input source and displays a preview on a [TextureView][3]
+The sample features a button to capture the input and stop capturing afterwards.
+
+It demonstrates how to correctly gain control and release the camera.
+The sample also shows how to save the captured audio and video to persistant storage
+and basic error handling.
+
+
+[1]: https://developer.android.com/reference/android/media/MediaRecorder.html
+[2]: https://developer.android.com/reference/android/graphics/Camera.html
+[3]: https://developer.android.com/reference/android/view/TextureView.html
+]]>
+ </intro>
+ </metadata>
</sample>