# addPresetFromCurrentVideoCapturer

Version: 4.2.0+

Description: save the current video capture device and its property values as a separate preset.

Request example:

{
    "method" : "addPresetFromCurrentVideoCapturer",
    "requestId" : "1"
}

Response example:

{
    "method": "addPresetFromCurrentVideoCapturer",
    "requestId" : "1",
    "videoCapturerName": "USB Video Device",
    "videoCapturerDescription": "\\\\?\\usb#vid_046d&pid_0823&mi_02#6&1fd43445&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global",
    "presetId": "1667476138528",
    "isMuted": false,
    "pan": {
        "isPresent": true,
        "value": 9
    },
    "tilt": {
        "isPresent": true,
        "value": -9
    },
    "zoom": {
        "isPresent": true,
        "value": 5
    },
    "preview": {
        "isPresent": true
    },
    "result": true
}

Parameter description:

  • presetId - identifier of the created preset
  • isMuted — the flag indicating if the video capture device is turned on or off
  • pan - property for rotating the video capture device
  • tilt - property of the tilt angle of the video capture device
  • zoom - the zoom property of the video capture device.
  • preview - preview preset
  • videoCapturerName — the name of the current video capture device
  • videoCapturerDescription — the unique identifier of the current video capture device
  • isPresent - a flag indicating the presence of a property in the preset
  • value - property value. Field is absent if isPresent equals false.
  • requestId - unique request identifier. More details can be found here

See also: