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

# 管理遊戲串流 (wdgamestream.exe)

> 管理遊戲串流 (wdgamestream.exe)

使用此工具查詢主機目前是否已啟用遊戲串流，並管理此狀態。

| 命令 | 描述 |
| :- | :- |
| [startlistening](#wdgamestream_startlistening) | 開發套件開始接聽連線。 |
| [stoplistening](#wdgamestream_stoplistening) | 開發套件停止接聽連線。 |
| [status](#wdgamestream_status) | 查詢開發套件的串流狀態。 |
| [listconfigs](#wdgamestream_listconfigs) | 列出支援的串流基本設定。 |
| [enableremoteconnect](#wdgamestream_enableremoteconnect) | 為指定的使用者啟用遠端連線。此設定在裝置重新開機後仍會保留。 |
| [disableremoteconnect](#wdgamestream_disableremoteconnect) | 為指定的使用者停用遠端連線。此設定在裝置重新開機後仍會保留。 |
| [remoteconnectstatus](#wdgamestream_remoteconnectstatus) | 查詢指定使用者的遠端連線狀態。 |
| [setconfigoverride](#wdgamestream_setconfigoverride) | 為基本串流設定設定串流設定覆寫。 |
| [clearconfigoverride](#wdgamestream_clearconfigoverride) | 清除透過 `setconfigoverride` 命令設定的串流設定覆寫。 |
| [dumpconfigoverride](#wdgamestream_dumpconfigoverride) | 將透過 `setconfigoverride` 命令設定的任何串流設定覆寫寫入開發套件。 |

<a id="wdgamestream_startlistening" />

## wdgamestream startlistening

開始在開發套件上接聽直接連線串流連線。

`wdgamestream startlistening [version=<version>] [config=<config>]`

<Note>為了獲得最佳相容性，建議**不要**設定 `version` 或 `config`</Note>

| 參數 | 描述 |
| :- | :- |
| version | 選擇性參數，指定要使用的通訊協定版本。預設為主機支援的最新通訊協定版本。 |
| config | 選擇性參數，指定要使用的串流設定。預設為目標開發套件所支援的最高位元速率設定。 |

<a id="wdgamestream_stoplistening" />

## wdgamestream stoplistening

停止在開發套件上接聽直接連線串流連線。

`wdgamestream stoplistening`

<a id="wdgamestream_status" />

## wdgamestream status

查詢開發套件的串流狀態。

`wdgamestream status [/B] [/S]`

| 選項 | 描述 |
| - | - |
| `/B` | 指定精簡格式。啟用時，<b>status</b> 命令只會列印精簡輸出。精簡模式必須與至少一個其他旗標一起使用，以指出您要擷取哪些狀態資料 (例如 <b>/S</b>)。 |
| `/S` | 只指定串流狀態。啟用時，<b>status</b> 命令只會列印開發套件的串流狀態。 |

<a id="wdgamestream_listconfigs" />

## wdgamestream listconfigs

列出支援的串流基本設定。提供一種列出開發套件可用之串流設定選項的方式。

`wdgamestream listconfigs`

<a id="wdgamestream_enableremoteconnect" />

## wdgamestream enableremoteconnect

為指定的使用者啟用遠端連線。

`wdgamestream enableremoteconnect accountEmail=xxxx@y.com`

| 選項 | 描述 |
| - | - |
| `accountEmail` | 必要參數。指定要啟用遠端連線的電子郵件帳戶。請注意，此帳戶目前必須已在 XBOX 上登入才能啟用遠端連線，且登入串流用戶端時應使用此帳戶。 |

<a id="wdgamestream_disableremoteconnect" />

## wdgamestream disableremoteconnect

為指定的使用者停用遠端連線。

`wdgamestream disableremoteconnect accountEmail=xxxx@y.com`

| 選項 | 描述 |
| - | - |
| `accountEmail` | 必要參數。指定要啟用遠端連線的電子郵件帳戶。請注意，此帳戶目前必須已在 XBOX 上登入才能啟用遠端連線，且登入串流用戶端時應使用此帳戶。 |

<a id="wdgamestream_remoteconnectstatus" />

## wdgamestream remoteconnectstatus

查詢指定使用者的遠端連線狀態。

`wdgamestream remoteconnectstatus accountEmail=xxxx@y.com`

| 選項 | 描述 |
| - | - |
| `accountEmail` | 必要參數。指定要啟用遠端連線的電子郵件帳戶。請注意，此帳戶目前必須已在 XBOX 上登入才能啟用遠端連線，且登入串流用戶端時應使用此帳戶。 |

<a id="wdgamestream_setconfigoverride" />

## wdgamestream setconfigoverride

設定基本串流設定的一或多個設定覆寫。直接連線的基本串流設定由 `startlistening` 命令的 `config` 參數指定。遠端連線的基本串流設定由 XBOX 服務決定。設定覆寫會在直接連線的 `startlistening` 時，以及遠端連線的新串流連線上套用。覆寫在重新開機後不會保留，如有需要，必須在重新開機後重新設定。

`wdgamestream setconfigoverride [maxBitrate=<value>] [minBitrate=<value>] [maxResolution=<value>] [minResolution=<value>] [allowDirectCapture=<true | false>]`

| 選項 | 描述 |
| - | - |
| `allowDirectCapture` | 啟用或停用直接擷取的選擇性布林值。預設值：<i>true</i>。 |
| `maxBitrate` | 覆寫串流最大位元速率的選擇性參數。範例值：<i>12000000</i>。 |
| `minBitrate` | 覆寫串流最小位元速率的選擇性參數。範例值：<i>6000000</i>。 |
| `maxResolution` | 覆寫視訊串流建議最大解析度的選擇性參數。範例值：<i>720p</i>、<i>1080p</i>。 |
| `minResolution` | 覆寫視訊串流建議最小解析度的選擇性參數。範例值：<i>720p</i>、<i>1080p</i>。 |

<a id="wdgamestream_clearconfigoverride" />

## wdgamestream clearconfigoverride

清除使用 `setconfigoverride` 命令設定的一或多個設定覆寫。

`wdgamestream clearconfigoverride [/A] [maxBitrate] [minBitrate] [maxResolution] [minResolution] [allowDirectCapture]`

| 選項 | 描述 |
| - | - |
| `/A` | 清除所有覆寫。 |
| `allowDirectCapture` | 清除直接擷取覆寫的選擇性參數。 |
| `maxBitrate` | 清除最大位元速率覆寫的選擇性參數。 |
| `minBitrate` | 清除最小位元速率覆寫的選擇性參數。 |
| `maxResolution` | 清除最大解析度覆寫的選擇性參數。 |
| `minResolution` | 清除最小解析度覆寫的選擇性參數。 |

<a id="wdgamestream_dumpconfigoverride" />

## wdgamestream dumpconfigoverride

將透過 `setconfigoverride` 命令設定的所有設定覆寫寫入開發套件。

`wdgamestream dumpconfigoverride`

## 另請參閱

[管理遊戲串流 (xbgamestream.exe)](/zh-TW/tools/tools-console/commandlinetools/xbgamestream)

[開發套件命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF 傳輸錯誤](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [管理遊戲串流 (xbgamestream.exe)](/zh-TW/tools/tools-console/commandlinetools/xbgamestream.md)
- [主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [適用於 XBOX 的主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/index.md)
- [串流頁面 (Dev Home)](/zh-TW/tools/tools-console/devhome/devhome-streaming.md)
- [遊戲串流延遲補償深入探討](/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive.md)
