diff options
author | Benjamin Weiss <benweiss@google.com> | 2014-12-04 21:34:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-12-04 21:34:39 +0000 |
commit | d14b00cc8e935cc2388cee3f420f20cdabb8ab75 (patch) | |
tree | 59b81900731ab0cbc03409f385ef4da62b6fb956 /media | |
parent | 22f97fafe9ea6e61843342112902116e48a11ef5 (diff) | |
parent | 88b194fe1acc80491b0e74759c6d2ebacdb7bf89 (diff) | |
download | android-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.png | bin | 4512 -> 3925 bytes | |||
-rw-r--r-- | media/MediaRecorder/Application/src/main/res/drawable-mdpi/ic_launcher.png | bin | 2719 -> 2388 bytes | |||
-rw-r--r-- | media/MediaRecorder/Application/src/main/res/drawable-xhdpi/ic_launcher.png | bin | 6345 -> 5433 bytes | |||
-rw-r--r-- | media/MediaRecorder/Application/src/main/res/drawable-xxhdpi/ic_launcher.png | bin | 11620 -> 9657 bytes | |||
-rw-r--r-- | media/MediaRecorder/packaging.yaml | 15 | ||||
-rw-r--r-- | media/MediaRecorder/screenshots/big_icon.png | bin | 0 -> 58738 bytes | |||
-rw-r--r-- | media/MediaRecorder/screenshots/screnshot1.png | bin | 0 -> 32245 bytes | |||
-rw-r--r-- | media/MediaRecorder/screenshots/screnshot2.png | bin | 0 -> 771229 bytes | |||
-rw-r--r-- | media/MediaRecorder/template-params.xml | 59 |
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 Binary files differindex 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 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 Binary files differindex 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 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 Binary files differindex 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 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 Binary files differindex 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 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 Binary files differnew file mode 100644 index 00000000..99bd10c3 --- /dev/null +++ b/media/MediaRecorder/screenshots/big_icon.png diff --git a/media/MediaRecorder/screenshots/screnshot1.png b/media/MediaRecorder/screenshots/screnshot1.png Binary files differnew file mode 100644 index 00000000..888c0423 --- /dev/null +++ b/media/MediaRecorder/screenshots/screnshot1.png diff --git a/media/MediaRecorder/screenshots/screnshot2.png b/media/MediaRecorder/screenshots/screnshot2.png Binary files differnew file mode 100644 index 00000000..3ae570ef --- /dev/null +++ b/media/MediaRecorder/screenshots/screnshot2.png 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> |