ApplicationClipCapture.RecordTimespanAsync Method

Recording a clip at specified start and end times.

This method only works on a new instance of ApplicationClipCapture that has not been used for another recording

Syntax

public:
IAsyncOperationWithProgress<ApplicationClip^ , ApplicationClip^ >^ RecordTimespanAsync(
         User^ owner,
         ApplicationClipInfo^ clipInfo,
         DateTime start,
         DateTime end
)  

Parameters

owner
Type: User 

The user recording the clip.

clipInfo
Type: ApplicationClipInfo 

Metadata about the clip.

start
Type: DateTime 

 The time to start recording. This time can be up to 5 minutes in the past. Specify the time as a system time (GMT) not local time.

end
Type: DateTime 

 The time to stop recording. Specify The time as a system time (GMT) not local time.

Return value

Type: IAsyncOperationWithProgress<ApplicationClip^ , ApplicationClip^ > 

An interface for tracking the progress of the asynchronous call. The system calls the Progress method after the all the data has been written to disk. The ApplicationClip object in this call contains information about the local clip.

The system calls the Completed method after the metadata for the clip was uploaded to the cloud. In this call, the ApplicationClip object includes the CloudId in addition to the metadata for the local clip.

For recoverable errors, the system sends ApplicationClipError::UploadPending to the Completed method. The system will retry the upload several times.

For unrecoverable errors, the system sends the appropriate error code to the Completed method.

Requirements

Namespace: Windows.Xbox.Media.Capture

Metadata: windows.winmd

See also

Reference

ApplicationClipCapture Class

ApplicationClipCapture Members

Windows.Xbox.Media.Capture Namespace