getPhoneCameraConfig
Use the interface to get the configuration info of the Phone Camera under control in the current show.
Request Mode
POST/GET http://ip/V1.0/ptz/getPhoneCameraConfig
Request Data
Null
Response Body
{
"status": 0,
"message": "SUCCESS",
"info": {
"cameraList": [
{
"name": "Front-facing",
"position": 2,
"uniqueId": "com.apple.avfoundation.avcapturedevice.built-in_video:1"
},
{
"name": "Back-facing",
"position": 1,
"uniqueId": "com.apple.avfoundation.avcapturedevice.built-in_video:0"
},
{
"name": "Back Ultra Wide Camera",
"position": 1,
"uniqueId": "com.apple.avfoundation.avcapturedevice.built-in_video:5"
},
{
"name": "Back Dual Wide Camera",
"position": 1,
"uniqueId": "com.apple.avfoundation.avcapturedevice.built-in_video:6"
}
],
"currentDevice": "com.apple.avfoundation.avcapturedevice.built-in_video:0",
"duration": 0,
"exposureTargetBias": {
"currentValue": 2,
"maxValue": 2,
"minValue": -2,
"stepValue": 0.2,
"support": true
},
"flashlight": {
"enable": false,
"support": true
},
"focusLens": {
"continuousAuto": false,
"currentValue": 0,
"maxValue": 1,
"minValue": 0,
"support": true
},
"id": "faad1f50232f48f4bd63e848d584c1f6",
"isRecording": false,
"iso": {
"continuousAuto": false,
"currentValue": 34,
"maxValue": 1360,
"minValue": 34,
"support": true
},
"lastErrorCode": 0,
"micMute": false,
"videoStabilization": {
"enable": false,
"support": true
},
"whiteBalance": {
"currentValue": 3714.533,
"maxValue": 60000,
"minValue": 2000,
"mode": 0,
"support": true
},
"clientVersion": "3.1.1",
"clientPlatform": "iOS",
"name": "Camera #2",
"resolution": 1080,
"fpsx1000": 30000,
"videoBitrate": 8192
}
}
Parameter | Type | Description |
---|---|---|
status | Int | Response status. 0: success |
message | String | Service status description. 0: Success |
info | Info | Configuration information |
Parameter | Type | Description |
---|---|---|
id | String | PTZ device ID (Phone camera ID) |
clientVersion | String | Director Utility App version. Only V3.1.0 and later support remote control via the device |
clientPlatform | String | The platforms on which the Director Utility App operates, iOS or Android |
name | String | Phone camera name |
resolution | String | Phone camera resolution 720:720p 1080:1080p |
fpsx1000 | Int | Phone camera frame rate * 1000 |
videoBitrate | Int | Phone camera video bitrate, in Mbps |
isRecording | Int | Whether it is recording true: Yes; false: No |
duration | Boolean | Recording duration |
lastErrorCode | Int | The status code of the last record 0: Normal 1: Limited by file size 2: Limited by disk free space 3: Recording duration is less than 1s |
micMute | Boolean | Whether to capture the audio true: Yes; false: No |
currentDevice | String | The current video capture device ID |
cameraList | Array of Camera | Video capture device list |
whiteBalance | whiteBalanceInfo | White Balance settings |
iso | isoInfo | ISO settings |
exposureTargetBias | exposureTargetBiasInfo | Exposure Bias settings |
focusLens | focusLensInfo | Focus settings |
videoStabilization | videoStabilizationInfo | Video stabilization settings |
flashlight | flashlightInfo | Flashlight settings |
whiteBalanceInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting White Balance true: Yes; false: No |
mode | Int | White Balance mode 0: Custom 1: Auto 2: Incandescent 3: Fluorescent 5: Daylight 6: Cloudy |
currentValue | Int | Current value |
minValue | Int | The minimum value |
maxValue | Int | The maximum value |
isoInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting ISO true: Yes; false: No |
continuousAuto | Boolean | Whether it is Auto mode true: Yes; false: No |
currentValue | Int | Current value |
minValue | Int | The minimum value |
maxValue | Int | The maximum value |
exposureTargetBiasInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting Exposure Bias true: Yes; false: No |
currentValue | Int | Current value |
minValue | Double | The minimum value |
maxValue | Double | The maximum value |
stepValue | Double | Suggested difference value for each modification |
focusLensInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting Focus true: Yes; false: No |
continuousAuto | Boolean | Whether it is Auto mode true: Yes; false: No |
currentValue | Double | Current value |
minValue | Double | The minimum value |
maxValue | Double | The maximum value |
videoStabilizationInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting video stabilization true: Yes; false: No |
enable | Boolean | Whether video stabilization is enabled true: Yes; false: No |
flashlightInfo
Parameter | Type | Description |
---|---|---|
support | Boolean | Whether it supports setting flashlight true: Yes; false: No |
enable | Boolean | Whether flashlight is enabled true: Yes; false: No |