MediaCapture.StartRecordToStorageFileAsync(MediaEncodingProfile, IStorageFile) MediaCapture.StartRecordToStorageFileAsync(MediaEncodingProfile, IStorageFile) MediaCapture.StartRecordToStorageFileAsync(MediaEncodingProfile, IStorageFile) MediaCapture.StartRecordToStorageFileAsync(MediaEncodingProfile, IStorageFile) MediaCapture.StartRecordToStorageFileAsync(MediaEncodingProfile, IStorageFile) Method

Definition

Starts recording asynchronously to a storage file.

public : IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file)
IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file) const;
public IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file)
Public Function StartRecordToStorageFileAsync(encodingProfile As MediaEncodingProfile, file As IStorageFile) As IAsyncAction
Windows.Media.Capture.MediaCapture.startRecordToStorageFileAsync(encodingProfile, file).done( /* Your success and error handlers */ );

Parameters

encodingProfile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

The encoding profile for the recording.

file
IStorageFile IStorageFile IStorageFile

The storage file where the image is saved.

Returns

Returns a IAsyncAction object that is used to control the asynchronous operation.

Additional features and requirements

Capabilities
webcam backgroundMediaRecording microphone

Remarks

For how-to guidance on recording to a file, see Basic photo, video, and audio capture with MediaCapture.

See also