MediaCapture.StartRecordToStorageFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts recording asynchronously to a storage file.
public:
virtual IAsyncAction ^ StartRecordToStorageFileAsync(MediaEncodingProfile ^ encodingProfile, IStorageFile ^ file) = StartRecordToStorageFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile const& encodingProfile, IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToStorageFileAsync(MediaEncodingProfile encodingProfile, IStorageFile file);
function startRecordToStorageFileAsync(encodingProfile, file)
Public Function StartRecordToStorageFileAsync (encodingProfile As MediaEncodingProfile, file As IStorageFile) As IAsyncAction
Parameters
- encodingProfile
- MediaEncodingProfile
The encoding profile for the recording.
- file
- IStorageFile
The storage file where the image is saved.
Returns
Returns a IAsyncAction object that is used to control the asynchronous operation.
- Attributes
Windows requirements
App capabilities |
backgroundMediaRecording
microphone
webcam
|
Remarks
For how-to guidance on recording to a file, see Basic photo, video, and audio capture with MediaCapture.