phoneCameraConfig

When the configuration of Phone Camera on the device changes or it receives the Request for state synchronization, the Director device sends the configuration data of Phone Camera to the receiver.

For how to configure the receiver, please refer to How to use TouchOSC to control Director.

Address

/status/phoneCameraConfig [json string]

Arguments

Type Description
argument 1 String The configuration data of Phone Camera

Example

After receiving Request for state synchronization, the Director device sends sends the configuration data of Phone Camera to the receiver.

/status/phoneCameraConfig {"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}
Name Type Description
id String The PTZ device ID (Phone Camera ID)
clientVersion String Director Utility App version. Only V3.1.0 and later support remote control via the device
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

Name 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

Name 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

Name 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

Name 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

Name 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

Name Type Description
support Boolean Whether it supports setting flashlight
true: Yes; false: No
enable Boolean Whether flashlight is enabled
true: Yes; false: No

results matching ""

    No results matching ""