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

# XGameStreaming (API の内容)

> XGameStreaming

# XGameStreaming

## 初期化

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

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

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

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

### 関数

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

### 列挙型

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

### 構造体

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

## 接続状態

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

### 関数

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

### 列挙型

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

## レイテンシ

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

### 関数

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

## サーバーの場所

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

### 関数

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

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

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

### 関数

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

### 列挙型

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

### 構造体

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

## 解像度

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

### 関数

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

## エラー コード

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

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

## 概念ドキュメント

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

## 関連項目

[System API リファレンス](https://docs.xbox.com/ja-jp/reference/system/gc-reference-system-toc.md)


## Related topics

- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGame (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgame/xgame_members.md)
- [XGameSave (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamesave/xgamesave_members.md)
- [XGameActivation (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameEvent (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameevent/xgameevent_members.md)
