> ## 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

包含呼叫 [XAppCaptureRecordTimespan](/zh-TW/reference/system/xappcapture/functions/xappcapturerecordtimespan) 的結果。

## 語法

```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;
}
```

## 成員

*clipHandle*\
類型：XAppCaptureLocalStreamHandle

本機 .mp4 檔案的控制代碼。此控制代碼用於 [XAppCaptureReadLocalStream](/zh-TW/reference/system/xappcapture/functions/xappcapturereadlocalstream) 和 [XAppCaptureCloseLocalStream](/zh-TW/reference/system/xappcapture/functions/xappcapturecloselocalstream)。\
進行錄製之後，一律應該對此控制代碼呼叫 [XAppCaptureCloseLocalStream](/zh-TW/reference/system/xappcapture/functions/xappcapturecloselocalstream)，以釋放系統資源。

*fileSizeInBytes*\
類型：size\_t

錄製內容的大小 (位元組)。

*clipStartTimestamp*\
類型：SYSTEMTIME

錄製的開始時間。

*durationInMilliseconds*\
類型：uint64\_t

錄製的實際持續時間 (毫秒)。這可能與傳入 [XAppCaptureRecordTimespan](/zh-TW/reference/system/xappcapture/functions/xappcapturerecordtimespan) 的持續時間不同。例如，錄製內容不包含遊戲不在前景的任何時間。

*width*\
類型：uint32\_t

錄製內容的寬度。

*height*\
類型：uint32\_t

錄製內容的高度。

*encoding*\
類型：XAppCaptureVideoEncoding

錄製內容的編碼格式。

*colorFormat*\
類型：XAppCaptureVideoColorFormat

錄製內容的色彩格式。

## 需求

**標頭：** XAppCapture.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XAppCapture 成員](/zh-TW/reference/system/xappcapture/xappcapture_members)


## Related topics

- [XAppCaptureLocalResult](/ko/reference/system/xappcapture/structs/xappcapturelocalresult.md)
- [XAppCaptureReadLocalStream](/reference/system/xappcapture/functions/xappcapturereadlocalstream.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
