Dela via


MediaCapture.StartRecordToStreamAsync Method

Definition

Starts recording to a random-access stream.

public:
 virtual IAsyncAction ^ StartRecordToStreamAsync(MediaEncodingProfile ^ encodingProfile, IRandomAccessStream ^ stream) = StartRecordToStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile const& encodingProfile, IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream);
function startRecordToStreamAsync(encodingProfile, stream)
Public Function StartRecordToStreamAsync (encodingProfile As MediaEncodingProfile, stream As IRandomAccessStream) As IAsyncAction

Parameters

encodingProfile
MediaEncodingProfile

The encoding profile for the recording.

stream
IRandomAccessStream

The stream where the image data is written.

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.

Applies to