Hololight Stream for Unreal Engine component - Connection

Connection

When first connecting to your application with Hololight Stream Client, you may notice a drop in application performance. This will resolve after a few seconds.

Disconnection

The EnableHMD function has an input boolean to use for disabling the HMD. The HMD is enabled automatically in the VR Preview start or when the Start in VR option is selected in a game build. Disabling the HMD via this function will close the connection and disconnect the client.

After that, it can be called again with true to re-enable the HMD and the connection will be reopened for a new client connection.

For more information on EnableHMD in Unreal, check out EnableHMD.

Hololight Stream connection Blueprint functions
Blueprint Description
bool GetConnectionInfo(FStreamConnectionInfo& ConnectionInfo)

Returns true if there is a connection and false if not. Also returns connection information, which consists of remote (client) name, remote (client) version, rendering config, remote (client) device type and the codec in use.

void RegisterConnectionStateHandler(TScriptInterface<IStreamConnectionStateHandler> ConnectionStateHandler)

Registers the object or actor that implements the IStreamConnectionStateHandler interface to the XR System’s OnConnectionStateChanged event. This event returns the new connection state, which can be "Disconnected", "Connecting", "Connected", "Closing", and "Failed".

void UnregisterConnectionStateHandler (TScriptInterface<IStreamConnectionStateHandler> ConnectionStateHandler)

Unregisters the object or actor that implements the IStreamConnectionStateHandler interface from the XR System. Causes the object to stop receiving the events.