Streaming Video, Audio Input Devices, and Screen Capture¶
Video and audio input devices recognize by your OS are automatically detected and can be used as data sources.
Video Devices¶
PhysioLabXR automatically detects the video input devices
connected to your computer. Their name will be listed in the Add Stream dropdown as Camera <camera id>.
To add an video input stream:
Click on the drop down of Add Stream and select the video device you want to add.
Click on Add button.
Audio Input Devices¶
Similar to the the video input devices, PhysioLabXR automatically detects the audio input devices
connected to your computer. Their name will be listed in the Add Stream dropdown.
To add an audio input stream:
Click on the drop down of Add Stream and select the audio device you want to add.
Once selected, a few new options settings will show up on the right of the dropdown.
Set the sampling rate (default: 8192), frame/buffer (default: 128), and data type (default: paInt16) of the audio device.
Click on Add button.
Note
Please refer to the PyAudio documentation for more information about parameters for audio interface.
Screen Capture¶
Similar to the the video input devices, PhysioLabXR supports streaming screen capture. The name of the screen capture stream will be monitor 0 as default.
To add an video input stream:
Click on the drop down of Add Stream and select
monitor 0.Click on Add button.
Refresh the list of devices¶
If you have connected a new device, you can refresh the list of devices by going to File > Settings > Video Device,
and click Reload Video Devices. Similarly, you can refresh the list of audio devices by going to
File > Settings > Audio Device, and click Reload Audio Devices.
If your device is recognized by the OS, but not by PhysioLabXR and the data is not streamed correctly. Please submit an issue here.