getHardware
getHardware
Description: get the list of devices.
The response also includes a list of application windows and desktops available for content sharing.
Request example:
{
"method" : "getHardware",
"requestId" : "1"
}Response example:
{
"audioCapturers" : [
{
"name" : "Microphone (Realtek High Definition Audio)",
"description" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_0233&subsys_104316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rtmicinwave",
"type" : 1
},
{
"name" : "Microphone (2- Realtek High Definition Audio)",
"description" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_5445&subsys_789316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rtmicinwave",
"type" : 1
}
],
"currentAudioCapturerName" : "Microphone (Realtek High Definition Audio)",
"currentAudioCapturerDescription" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_0233&subsys_104316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rtmicinwave",
"currentAudioCapturerType" : 1,
"audioRenderers" : [
{
"name" : "Speakers (Realtek High Definition Audio)",
"description" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_0233&subsys_104316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rearlineoutwave3",
"type" : 1
},
{
"name" : "Speakers (2- Realtek High Definition Audio)",
"description" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_5445&subsys_789316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rtmicinwave",
"type" : 1
}
],
"currentAudioRendererName" : "Speakers (Realtek High Definition Audio)",
"currentAudioRendererDescription" : "{2}.\\\\?\\hdaudio#func_01&ven_10ec&dev_0233&subsys_104316ed&rev_1000#4&2fb6304b&0&0001#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\rearlineoutwave3",
"currentAudioRendererType" : 1,
"videoCapturers" : [
{
"name" : "USB2.0 UVC HD Webcam",
"description" : "\\\\?\\usb#vid_13d3&pid_5656&mi_00#6&8b7b718&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\\global",
"type": 1,
"connected": true
},
{
"name" : "USB2.0 UVC HD Webcam #2",
"description" : "\\\\?\\usb#vid_0bda&pid_58b0&mi_00#7&25249c4a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global",
"type": 1,
"connected": true
}
],
"currentVideoCapturerName" : "USB2.0 UVC HD Webcam",
"currentVideoCapturerDescription" : "\\\\?\\usb#vid_13d3&pid_5656&mi_00#6&8b7b718&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\\global",
"currentVideoCapturerType": 1,
"defaultContentSource": "TrueConf VideoCapturer 4K",
"DSCaptureList" : [
{
"name" : "Google - Opera",
"id" : 132268
},
{
"name" : "Readme - Notepad",
"id" : 2097374
}
],
"comPorts" : [
"COM3"
],
"method" : "getHardware",
"requestId" : "1",
"result" : true
}Parameter description:
currentAudioCapturerNameβ Current name of an audio capture devicecurrentAudioCapturerDescriptionβ Current identifier of an audio capture devicecurrentAudioCapturerTypeβ the type of the current audio capture device. The following values are possible:1β a hardware device (microphone)2β an NDI device4β an empty device (none)
currentAudioRendererNameβ Current name of an audio playback devicecurrentAudioRendererDescriptionβ the identifier of the current audio playback devicecurrentAudioRendererTypeβ the type of the current audio playback device. The following values are possible:1β a hardware device (speaker)4β an empty device (none)
currentVideoCapturerNameβ Current name of a video capture devicecurrentVideoCapturerDescriptionβ Current identifier of a video capture devicecurrentVideoCapturerTypeβ the type of the video capture device. The following values are possible:0β a capture card1- camera connected to TrueConf Room API (webcam, document camera, PTZ)2β an NDI device3β desktop capture mode4β an empty device (none)
DSCaptureListβ application windows and monitors available for content sharing. The following fields are included:nameβ Capture source nameidβ Capture source identifier
requestId- a unique request identifier. You can find more details about it here.audioCapturersβ List of audio capture devicesaudioRenderersβ List of audio playback devicesvideoCapturersβ List of video capture devicescomPorts- a list of available COM ports for PTZ camera controldefaultContentSource- default content source
Each device in the list includes the following parameters:
name- unique name of the capture sourcedescription- unique equipment identifiertypeβ the type of a device. The following values are possible:0β the video capture card (can be used only for capturing video)1β a hardware device (microphone, camera, speaker)2β NDI device (can be used only for capturing video and audio)3β desktop capture mode (only video capture)4β an empty device (none)
connected- the connection status of the device. Only video devices include this parameter. For supported capture cards, this parameter will reflect the actual connection status of the capture card. For other devices, the status will always be true.true- the video device is connected to the signal sourcefalse- the video device is not connected to the signal source
See also: