XGameStreamingGetClientCount

Get the number of clients which are currently streaming the game.

Syntax

uint32_t XGameStreamingGetClientCount()

Parameters

None

Return value

Type: uint32_t

Returns the number of clients which are currently streaming the game.

Remarks

Returns the number of clients which are currently streaming the game. This value may be zero if no clients are currently streaming.

Use this to get the count of connected devices before allocating memory for the call to XGameStreamingGetClients.

If the game is only trying to identify if ANY device is connected and streaming, consider using XGameStreamingIsStreaming.

If the game wants to get notifcation when a streaming client connects and/or disconnects, consider using XGameStreamingRegisterConnectionStateChanged.

Requirements

Header: xgamestreaming.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameStreamingIsStreaming
XGameStreamingRegisterConnectionStateChanged
XGameStreamingGetClients
XGameStreaming