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

# XGameStreamingIsStreaming

> XGameStreamingIsStreaming

Determine if the game is currently being streamed.

## Syntax

```cpp theme={null}
bool XGameStreamingIsStreaming();
```

### Return value

Type: bool

`XGameStreamingIsStreaming` returns true if the game is running on an XBOX that has at least one streaming client device connected.

## Remarks

`XGameStreamingIsStreaming` does not differentiate if the console is streaming via Remote Play or via XBOX Game Streaming.

To be notified of individual streaming client devices connecting and/or disconnecting consider registering a callback via [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md).

## Examples

```C++ theme={null}
 if (XGameStreamingIsStreaming())
 {
     // The game is currently streaming to at least one device
     // Enable any customizations that might be useful when running from the cloud
 }
```

## Requirements

**Header:** xgamestreaming.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameStreamingConnectionState](https://docs.xbox.com/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)\
[XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)\
[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)\
[XGameStreaming](https://docs.xbox.com/reference/system/xgamestreaming/xgamestreaming_members.md#ConnectionState)


## Related topics

- [XGameStreamingGetClients](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingGetClientCount](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreaminggetclientcount.md)
- [XGameStreamingGetConnectionState](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreaming (API contents)](https://docs.xbox.com/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)
