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

# XAppCaptureVideoCaptureSettings

> XAppCaptureVideoCaptureSettings

# XAppCaptureVideoCaptureSettings

GameDVR 影片擷取設定，藉由呼叫 [XAppCaptureGetVideoCaptureSettings](/zh-TW/reference/system/xappcapture/functions/xappcapturegetvideocapturesettings) 取得。

## 語法

```cpp theme={null}
struct XAppCaptureVideoCaptureSettings {
  uint32_t width;
  uint32_t height;
  uint64_t maxRecordTimespanDurationInMs;
  XAppCaptureVideoEncoding encoding;
  XAppCaptureVideoColorFormat colorFormat;
  bool isCaptureByGamesAllowed;
}
```

## 成員

*width*\
類型：uint32\_t

錄製內容的寬度。

*height*\
類型：uint32\_t

錄製內容的高度。

*maxRecordTimespanDurationInMs*\
類型：uint64\_t

最大錄製持續時間 (毫秒)。

*encoding*\
類型：XAppCaptureVideoEncoding

錄製內容的編碼。

*colorFormat*\
類型：XAppCaptureVideoColorFormat

錄製內容的色彩格式。

*isCaptureByGamesAllowed*\
類型：bool

指出是否允許遊戲擷取錄製內容。

## 需求

**標頭：** XAppCapture.h

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

## 另請參閱

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


## Related topics

- [XAppCaptureVideoCaptureSettings](/reference/system/xappcapture/structs/xappcapturevideocapturesettings.md)
- [XAppCaptureGetVideoCaptureSettings](/reference/system/xappcapture/functions/xappcapturegetvideocapturesettings.md)
