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

# XGameStreaming

> XGameStreaming

# XGameStreaming

## 初期化

ゲーム ストリーミング機能を初期化するために必要な API。

| 関数                                                                                                  | 説明                          |
| :-------------------------------------------------------------------------------------------------- | :-------------------------- |
| [XGameStreamingInitialize](/reference/system/xgamestreaming/functions/xgamestreaminginitialize)     | ゲーム ストリーミング API を初期化します。    |
| [XGameStreamingUninitialize](/reference/system/xgamestreaming/functions/xgamestreaminguninitialize) | ゲーム ストリーミング API の初期化を解除します。 |

<a id="ClientProperties" />

## クライアント プロパティ

ストリーミング デバイスまたはそのゲーム ストリームのプロパティを取得する API

### 関数

| 関数                                                                                                                                            | 説明                                                                   |
| :-------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------- |
| [XGameStreamingClientPropertiesChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback)     | ストリーミング デバイスのプロパティが変更されたときに通知します。                                    |
| [XGameStreamingGetClientIPAddress](/reference/system/xgamestreaming/functions/xgamestreaminggetclientipaddress)                               | **非推奨。** ストリーミング クライアントの IP アドレスを取得します。代わりに XSTS トークン クレームを使用してください。 |
| [XGameStreamingGetDisplayDetails](/reference/system/xgamestreaming/functions/xgamestreaminggetdisplaydetails)                                 | ストリーミング クライアントのディスプレイの詳細を取得します。                                      |
| [XGameStreamingGetSessionId](/reference/system/xgamestreaming/functions/xgamestreaminggetsessionid)                                           | ストリーミング クライアントのセッション ID を取得します。                                      |
| [XGameStreamingGetStreamPhysicalDimensions](/reference/system/xgamestreaming/functions/xgamestreaminggetstreamphysicaldimensions)             | ストリーミング クライアントで現在レンダリングされているビデオ ストリームの物理サイズを取得します。                   |
| [XGameStreamingGetTouchBundleVersion](/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion)                         | 指定されたデバイスで現在使用されているタッチ アダプテーション バンドルのバージョンを取得します。                    |
| [XGameStreamingGetTouchBundleVersionNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversionnamesize)         | 指定されたデバイスのタッチ アダプテーション バンドルで指定されたバージョン名のサイズを取得します。                   |
| [XGameStreamingIsTouchInputEnabled](/reference/system/xgamestreaming/functions/xgamestreamingistouchinputenabled)                             | クライアントがタッチ入力をゲームに送信するかどうかを確認します。                                     |
| [XGameStreamingRegisterClientPropertiesChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged)     | ストリーミング クライアント デバイスのいずれかのプロパティが変更されたときに呼び出されるコールバックを登録します。           |
| [XGameStreamingUnregisterClientPropertiesChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterclientpropertieschanged) | 以前に登録された XGameStreamingClientPropertiesChangedCallback の登録を解除します。    |

### 列挙型

| 列挙型                                                                                                 | 説明                                           |
| :-------------------------------------------------------------------------------------------------- | :------------------------------------------- |
| [XGameStreamingClientProperty](/reference/system/xgamestreaming/enums/xgamestreamingclientproperty) | クライアント ストリーミング デバイスに関してクエリできるプロパティ。          |
| [XGameStreamingVideoFlags](/reference/system/xgamestreaming/enums/xgamestreamingvideoflags)         | クライアント ストリーミング デバイスでサポートされる可能性がある利用可能なビデオ機能。 |

### 構造体

| 構造体                                                                                                   | 説明                                |
| :---------------------------------------------------------------------------------------------------- | :-------------------------------- |
| [XGameStreamingDisplayDetails](/reference/system/xgamestreaming/structs/xgamestreamingdisplaydetails) | ストリーミング クライアント デバイスのディスプレイに関する詳細。 |

<a id="ConnectionState" />

## 接続状態

ストリーミング クライアント デバイスの接続状態を管理するために必要な API。

### 関数

| 関数                                                                                                                                          | 説明                                                               |
| :------------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------------------------- |
| [XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback)     | 接続されたストリーミング クライアントの状態が変化するたびに呼び出されるコールバック関数。                    |
| [XGameStreamingGetClientCount](/reference/system/xgamestreaming/functions/xgamestreaminggetclientcount)                                     | 現在接続されているストリーミング デバイスの数。                                         |
| [XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients)                                             | 現在接続されている各クライアントの識別子を取得します。                                      |
| [XGameStreamingGetConnectionState](/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate)                             | 指定されたデバイスの現在の接続状態を取得します。                                         |
| [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming)                                           | ゲームが現在ストリーミングされているかどうかを判定します。                                    |
| [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)     | ストリーミング クライアント デバイスの接続状態が変化したときに呼び出されるコールバックを登録します。              |
| [XGameStreamingUnregisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged) | 以前に登録された XGameStreamingConnectionStateChangedCallback の登録を解除します。 |

### 列挙型

| 列挙型                                                                                                   | 説明                        |
| :---------------------------------------------------------------------------------------------------- | :------------------------ |
| [XGameStreamingConnectionState](/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate) | ストリーミング クライアント デバイスの接続状態。 |

<a id="Latency" />

## レイテンシ

ストリーミング レイテンシに合わせてゲームプレイを調整する API。

### 関数

| 関数                                                                                                                    | 説明                                                               |
| :-------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------- |
| [XGameStreamingGetStreamAddedLatency](/reference/system/xgamestreaming/functions/xgamestreaminggetstreamaddedlatency) | ストリーミング関連のレイテンシの最近の平均を取得します。                                     |
| [XGameStreamingGetLastFrameDisplayed](/reference/system/xgamestreaming/functions/xgamestreaminggetlastframedisplayed) | **非推奨。** ストリーミング クライアントの画面に最も最近表示されたフレームのフレーム パイプライン トークンを取得します。 |
| [XGameStreamingGetAssociatedFrame](/reference/system/xgamestreaming/functions/xgamestreaminggetassociatedframe)       | **非推奨。** 特定の入力読み取りからフレーム パイプライン トークンを取得します。                      |

## サーバーの場所

ゲームがストリーミングされている場所にアクセスするための API。

### 関数

| 関数                                                                                                                            | 説明                                    |
| :---------------------------------------------------------------------------------------------------------------------------- | :------------------------------------ |
| [XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname)         | ストリーミング サーバーのデータセンターの場所を取得します。        |
| [XGameStreamingGetServerLocationNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize) | ストリーミング サーバーのデータセンターの場所の名前のサイズを取得します。 |

<a id="TouchAdaptation" />

## タッチ アダプテーション

適切なストリーミング クライアントに公開されるタッチ コントローラー レイアウトを管理する API。

### 関数

| 関数                                                                                                                                                          | 説明                                                                              |
| :---------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------ |
| [XGameStreamingGetGamepadPhysicality](/reference/system/xgamestreaming/functions/xgamestreaminggetgamepadphysicality)                                       | 特定のゲームパッド読み取りから入力の物理性マッピングを取得します。                                               |
| [XGameStreamingHideTouchControls](/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrols)                                               | 接続されているすべてのストリーミング クライアント デバイスに、表示中のタッチ レイアウトを非表示にするよう要求します。                    |
| [XGameStreamingHideTouchControlsOnClient](/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrolsonclient)                               | 指定されたストリーミング クライアント デバイスに、表示中のタッチ レイアウトを非表示にするよう要求します。                          |
| [XGameStreamingShowTouchControlLayout](/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout)                                     | 接続されているすべてのストリーミング クライアント デバイスに、指定されたタッチ レイアウトを表示するよう要求します。                     |
| [XGameStreamingShowTouchControlLayoutOnClient](/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayoutonclient)                     | 指定された接続済みストリーミング クライアント デバイスに、指定されたタッチ レイアウトを表示するよう要求します。                       |
| [XGameStreamingShowTouchControlsWithStateUpdate](/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdate)                 | 接続されているすべてのストリーミング クライアント デバイスに、タッチ コントロールの状態を更新した後、指定されたタッチ レイアウトを表示するよう要求します。 |
| [XGameStreamingShowTouchControlsWithStateUpdateOnClient](/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdateonclient) | 指定されたストリーミング クライアント デバイスに、タッチ コントロールの状態を更新した後、指定されたタッチ レイアウトを表示するよう要求します。       |
| [XGameStreamingUpdateTouchControlsState](/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstate)                                 | 接続されているすべてのストリーミング クライアント デバイスでタッチ コントロールの状態を更新します。                             |
| [XGameStreamingUpdateTouchControlsStateOnClient](/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstateonclient)                 | 指定されたストリーミング クライアント デバイスでタッチ コントロールの状態を更新します。                                   |

### 列挙型

| 列挙型                                                                                                                                   | 説明                                                                                                          |
| :------------------------------------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------- |
| [XGameStreamingGamepadPhysicality](/reference/system/xgamestreaming/enums/xgamestreaminggamepadphysicality)                           | 標準的な XBOX ワイヤレス コントローラーのすべてのボタン、スティック、およびトリガーの物理性マッピング。任意のボタン/スティック/トリガーに対して、物理性は不明、物理的、仮想、または両方のいずれかになります。 |
| [XGameStreamingTouchControlsStateOperationKind](/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstateoperationkind) | タッチ コントロール レイアウトの状態を更新する際に実行できる操作。                                                                          |
| [XGameStreamingTouchControlsStateValueKind](/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstatevaluekind)         | タッチ レイアウトに関連付けられた状態の型を指定します。                                                                                |

### 構造体

| 構造体                                                                                                                             | 説明                              |
| :------------------------------------------------------------------------------------------------------------------------------ | :------------------------------ |
| [XGameStreamingTouchControlsStateOperation](/reference/system/xgamestreaming/structs/xgamestreamingtouchcontrolsstateoperation) | 操作、特定の変数へのパス、適用する値を指定します。       |
| [XGameStreamingTouchControlsStateValue](/reference/system/xgamestreaming/structs/xgamestreamingtouchcontrolsstatevalue)         | タッチ コントロール状態の特定の要素の型および値を提供します。 |

## 解像度

ストリームの解像度を管理する API。

### 関数

| 関数                                                                                                    | 説明                   |
| :---------------------------------------------------------------------------------------------------- | :------------------- |
| [XGameStreamingSetResolution](/reference/system/xgamestreaming/functions/xgamestreamingsetresolution) | ビデオ ストリームの解像度を設定します。 |

## エラー コード

XGameStreaming API によって次のエラー コードが返される可能性があります。完全な一覧については、「[エラー コード](/reference/errorcodes)」を参照してください。

| コード                                          | 値          | 説明                                                                                                                                                         |
| -------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| E\_GAMESTREAMING\_NOT\_INITIALIZED           | 0x89245400 | XGameStreaming ランタイムが初期化されていません。他の API を呼び出す前に [XGameStreamingInitialize](/reference/system/xgamestreaming/functions/xgamestreaminginitialize) を呼び出してください。 |
| E\_GAMESTREAMING\_CLIENT\_NOT\_CONNECTED     | 0x89245401 | 指定されたクライアントが接続されていません。                                                                                                                                     |
| E\_GAMESTREAMING\_NO\_DATA                   | 0x89245402 | 要求されたデータが利用できません。データは後で利用できる可能性があります。                                                                                                                      |
| E\_GAMESTREAMING\_NO\_DATACENTER             | 0x89245403 | 現在のマシンはデータセンターで実行されていません。                                                                                                                                  |
| E\_GAMESTREAMING\_NOT\_STREAMING\_CONTROLLER | 0x89245404 | 現在の読み取りはストリーミング コントローラーからのものではありません。                                                                                                                       |

## 概念ドキュメント

* [クラウド対応 API 呼び出し](/build/core-features/common/game-streaming/game-streaming-am-i-streaming)
* [タッチ入門](/build/core-features/common/game-streaming/game-streaming-getting-started-with-touch)
* [ゲーム ストリーミング レイテンシ補正の詳細解説](/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive)
* [ゲーム ストリーミング レイテンシ補正の概要](/build/core-features/common/game-streaming/game-streaming-latency-compensation-overview)
* [ゲーム ストリーミング レイテンシ測定](/build/core-features/common/game-streaming/game-streaming-latency-measurement)

## 関連項目

[System API リファレンス](/reference/system/gc-reference-system-toc)


## Related topics

- [XGameStreamingIsStreaming](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingInitialize](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminginitialize.md)
- [XGameStreamingUninitialize](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminguninitialize.md)
- [XGameStreamingGetClients](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingClientProperty](/ja-jp/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
