|
|
|
@ -258,6 +258,7 @@ public class ChannelActivity extends AppCompatActivity {
|
|
|
|
|
jsonObject.put("sceneMode", sceneMode);
|
|
|
|
|
jsonObject.put("exposureTime", Integer.parseInt(binding.exposuretime.getText().toString()));
|
|
|
|
|
jsonObject.put("sensibility", Integer.parseInt(binding.sensitivity.getText().toString()));
|
|
|
|
|
jsonObject.put("zoom", binding.btnZoom.isChecked() ? 1 : 0);
|
|
|
|
|
jsonObject.put("orientation", binding.orientations.getSelectedItemPosition());
|
|
|
|
|
jsonObject.put("recognization", binding.recognization.getSelectedItemPosition());
|
|
|
|
|
// binding.cameraId.setText(jsonObject.optString("cameraId", ""));
|
|
|
|
@ -266,6 +267,11 @@ public class ChannelActivity extends AppCompatActivity {
|
|
|
|
|
} else {
|
|
|
|
|
jsonObject.remove("cameraId");
|
|
|
|
|
}
|
|
|
|
|
if (binding.zoomRatio.getSelectedItemPosition() >= 0) {
|
|
|
|
|
jsonObject.put("zoomRatio", Float.valueOf(binding.zoomRatio.getSelectedItem().toString()));
|
|
|
|
|
} else {
|
|
|
|
|
jsonObject.put("zoomRatio", 0f);
|
|
|
|
|
}
|
|
|
|
|
if (!TextUtils.isEmpty(binding.resolutionCX.getText().toString())) {
|
|
|
|
|
jsonObject.put("resolutionCX", Integer.parseInt(binding.resolutionCX.getText().toString()));
|
|
|
|
|
} else {
|
|
|
|
|