> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XAppCaptureLocalResult

> XAppCaptureLocalResult

# XAppCaptureLocalResult

Contains the result from calling [XAppCaptureRecordTimespan](/reference/system/xappcapture/functions/xappcapturerecordtimespan).

## Syntax

```cpp theme={null}
struct XAppCaptureLocalResult {
  XAppCaptureLocalStreamHandle clipHandle;
  size_t fileSizeInBytes;
  SYSTEMTIME clipStartTimestamp;
  uint64_t durationInMilliseconds;
  uint32_t width;
  uint32_t height;
  XAppCaptureVideoEncoding encoding;
  XAppCaptureVideoColorFormat colorFormat;
}
```

## Members

*clipHandle*\
Type: XAppCaptureLocalStreamHandle

Handle to the local .mp4 file.  The handle is used in [XAppCaptureReadLocalStream](/reference/system/xappcapture/functions/xappcapturereadlocalstream) and [XAppCaptureCloseLocalStream](/reference/system/xappcapture/functions/xappcapturecloselocalstream).\
Once a recording is made, [XAppCaptureCloseLocalStream](/reference/system/xappcapture/functions/xappcapturecloselocalstream) should always be called on the handle in order to free up system resources.

*fileSizeInBytes*\
Type: size\_t

Size of the recording in bytes.

*clipStartTimestamp*\
Type: SYSTEMTIME

The start time of the recording.

*durationInMilliseconds*\
Type: uint64\_t

The actual duration of the recording in milliseconds. This may be different from the duration passed in [XAppCaptureRecordTimespan](/reference/system/xappcapture/functions/xappcapturerecordtimespan). For example, the recording does not include any time when the game was not in foreground.

*width*\
Type: uint32\_t

Width of the recording.

*height*\
Type: uint32\_t

Height of the recording.

*encoding*\
Type: XAppCaptureVideoEncoding

The encoding format of the recording.

*colorFormat*\
Type: XAppCaptureVideoColorFormat

The color format of the recording.

## Requirements

**Header:** XAppCapture.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XAppCapture members](/reference/system/xappcapture/xappcapture_members)


## Related topics

- [XAppCaptureReadLocalStream](/reference/system/xappcapture/functions/xappcapturereadlocalstream.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureRecordTimespan](/reference/system/xappcapture/functions/xappcapturerecordtimespan.md)
- [XAppCaptureTakeScreenshotResult](/reference/system/xappcapture/structs/xappcapturetakescreenshotresult.md)
- [XAppCaptureCloseLocalStream](/reference/system/xappcapture/functions/xappcapturecloselocalstream.md)
