MediaCapture.StartRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.StartRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.StartRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.StartRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.StartRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) Method

Definition

Starts recording to a random-access stream.

public : IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream)
IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream) const;
public IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream)
Public Function StartRecordToStreamAsync(encodingProfile As MediaEncodingProfile, stream As IRandomAccessStream) As IAsyncAction
Windows.Media.Capture.MediaCapture.startRecordToStreamAsync(encodingProfile, stream).done( /* Your success and error handlers */ );

Parameters

encodingProfile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

The encoding profile for the recording.

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream where the image data is written.

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.