Share via


MediaStore.ActionVideoCapture Field

Definition

Standard Intent action that can be sent to have the camera application capture a video and return it.

[Android.Runtime.Register("ACTION_VIDEO_CAPTURE")]
public const string ActionVideoCapture;
[<Android.Runtime.Register("ACTION_VIDEO_CAPTURE")>]
val mutable ActionVideoCapture : string

Field Value

Attributes

Remarks

Standard Intent action that can be sent to have the camera application capture a video and return it.

The caller may pass in an extra EXTRA_VIDEO_QUALITY to control the video quality.

The caller may pass in an extra EXTRA_OUTPUT to control where the video is written. <ul> <li>If EXTRA_OUTPUT is not present, the video will be written to the standard location for videos, and the Uri of that location will be returned in the data field of the Uri. android.hardware.Camera#ACTION_NEW_VIDEO will also be broadcasted when the video is recorded. <li>If EXTRA_OUTPUT is assigned a Uri value, no android.hardware.Camera#ACTION_NEW_VIDEO will be broadcasted. As of android.os.Build.VERSION_CODES#LOLLIPOP, this uri can also be supplied through android.content.Intent#setClipData(ClipData). If using this approach, you still must supply the uri through the EXTRA_OUTPUT field for compatibility with old applications. If you don't set a ClipData, it will be copied there for you when calling Context#startActivity(Intent). </ul>

Note: if you app targets android.os.Build.VERSION_CODES#M M and above and declares as using the android.Manifest.permission#CAMERA permission which is not granted, then atempting to use this action will result in a java.lang.SecurityException.

Java documentation for android.provider.MediaStore.ACTION_VIDEO_CAPTURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also