-
-
Notifications
You must be signed in to change notification settings - Fork 0
3. DataBridge Documentation
DesktopXR DataBridge is an application that sends external data into the DesktopXR heads up display.
DataBridge is configured through a simple .ini file.
This page explains where the configuration file is stored, how to edit it, and what each setting controls.
Launch a VR game with DesktopXR running and the HUD enabled.
DataBridge will create the following file automatically:
%appdata%\DesktopXR\DesktopXR-DataBridge.ini
Open:
DesktopXR-DataBridge.ini
Use Notepad or any other text editor.
After saving changes, restart the DataBridge application for the new settings to take effect.
If DesktopXR-DataBridge.ini does not exist yet, DataBridge will create it automatically the first time it launches.
[DataBridge]
refresh_rate_hz=4
gpu=%
cpu=%
[OBS]
enabled=1
host=127.0.0.1
port=4455
password=xxxxxxxxxxxxxxxx
[YT]
enabled=1
apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
videourl=https://youtube.com/live/xxxxxxxxxx
polling=4
livechat=1
[AudioSwitch]
hotkey=CTRL+ALT+F12Controls how often DataBridge samples and writes telemetry into shared memory.
Higher values update the HUD more frequently.
Default:
refresh_rate_hz=4Example:
refresh_rate_hz=8Controls how GPU performance values are displayed in the DesktopXR HUD.
Valid values:
| Value | Description |
|---|---|
% |
Show GPU usage as a percentage. |
ms |
Show GPU frametime-style values, where lower values indicate faster frame processing. |
Default:
gpu=%Example:
gpu=msControls how CPU performance values are displayed in the DesktopXR HUD.
Valid values:
| Value | Description |
|---|---|
% |
Show CPU usage as a percentage. |
ms |
Show CPU frametime-style values, where lower values indicate faster frame processing. |
Default:
cpu=%Example:
cpu=msEnables or disables OBS integration.
Valid values:
| Value | Description |
|---|---|
0 |
Disabled |
1 |
Enabled |
Default:
enabled=1Example:
enabled=0Sets the OBS WebSocket host address.
For OBS running on the same PC as DataBridge, use 127.0.0.1.
Default:
host=127.0.0.1Sets the OBS WebSocket port.
Default:
port=4455Sets the OBS WebSocket server password.
Example:
password=xxxxxxxxxxxxxxxx-
Start OBS.
-
Open the Tools menu.
-
Select WebSocket Server Settings.
-
Select Show Connect Info.
-
Copy the server password.
-
Paste it into
DesktopXR-DataBridge.iniafterpassword=in the[OBS]section.
Example:
[OBS]
password=xxxxxxxxxxxxxxxxEnables or disables YouTube Live integration.
Valid values:
| Value | Description |
|---|---|
0 |
Disabled |
1 |
Enabled |
Default:
enabled=1Example:
enabled=0Sets the YouTube Data API v3 key used by DataBridge.
Example:
apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxSets the YouTube Live stream URL used for live viewer and chat data.
Example:
videourl=https://youtube.com/live/xxxxxxxxxxControls how often DataBridge polls the YouTube Data API.
The value is in seconds.
Default:
polling=4Example:
polling=8Enables or disables YouTube Live chat data.
Valid values:
| Value | Description |
|---|---|
0 |
Disabled |
1 |
Enabled |
Default:
livechat=1Example:
livechat=0-
Visit:
https://console.cloud.google.com -
Sign in with your Google account.
-
Open the hamburger menu.
-
Select APIs and services.
-
Select Library.
-
Search for:
YouTube Data API v3 -
Select Enable.
-
From the YouTube Data API v3 page, select Credentials.
-
Select Create credentials.
-
Select API key.
-
Enter a name for the API key.
Example:
DesktopXR-DataBridge -
Select Create.
-
In Google Cloud Console, open your API key.
-
Select Show key.
-
Copy the API key.
-
Paste it into
DesktopXR-DataBridge.iniafterapikey=in the[YT]section.
Example:
[YT]
apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAfter setting up your YouTube Live stream, add the stream URL to DesktopXR-DataBridge.ini.
Example:
[YT]
videourl=https://youtube.com/live/xxxxxxxxxxTo enable live chat data:
[YT]
livechat=1YouTube Data API v3 provides 10,000 free quota units per day by default.
Each API request for live viewers and chat messages uses quota.
With the default polling interval of 4 seconds, DataBridge checks for updates every 4 seconds.
You can reduce quota usage by increasing the polling interval.
Example:
polling=8Sets the keybind used to cycle through available Windows audio output devices.
Default:
hotkey=CTRL+ALT+F12Example:
hotkey=CTRL+ALT+F11Audio Switch is designed to make changing audio output devices easier while gaming in VR.
To use it:
-
Set the keybind in
DesktopXR-DataBridge.ini. -
Enable the Desktop toggle in DesktopXR.
-
Make sure your game is not selected.
-
Press the configured hotkey to cycle through available Windows audio output devices.
DataBridge supports standard keyboard keys.
Supported modifiers:
SHIFT
CTRL
ALT
Supported keys:
F1-F12
A-Z
0-9
Escape
Insert
Delete
Home
End
PageUp
PageDown
Avoid keys already used by your VR software, OpenXR runtime, simulator, game, OBS, or streaming software.
If a setting does not appear to work:
-
Confirm the file is named exactly:
DesktopXR-DataBridge.ini -
Confirm the file is located in:
%appdata%\DesktopXR -
Save the file after editing.
-
Restart the DataBridge application.
-
Restart your OpenXR application if HUD data does not update.
-
Reboot your PC if the setting still does not apply.
If OBS data does not appear:
-
Confirm OBS is running.
-
Confirm OBS WebSocket is enabled.
-
Confirm
host,port, andpasswordare correct. -
Confirm the
[OBS]section has:enabled=1
If YouTube Live data does not appear:
-
Confirm the YouTube Data API v3 is enabled.
-
Confirm the API key is correct.
-
Confirm the live stream URL is correct.
-
Confirm the
[YT]section has:enabled=1 -
Increase
pollingif you are reaching your API quota limit.
To reset DataBridge to its default configuration, delete:
%appdata%\DesktopXR\DesktopXR-DataBridge.ini
DataBridge will recreate the file with default settings the next time it launches.