|
|
|
@ -649,6 +649,7 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
int rotation = -1;
|
|
|
|
|
int usb = 0;
|
|
|
|
|
int netCamera = 0;
|
|
|
|
|
Integer chVal = Integer.valueOf(channel);
|
|
|
|
|
if (mChannelCfgs.containsKey(chVal)) {
|
|
|
|
|
JSONObject jsonChannel = mChannelCfgs.get(chVal);
|
|
|
|
@ -658,7 +659,9 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
|
if (orientation > 0) {
|
|
|
|
|
rotation = (orientation - 1) * 90;
|
|
|
|
|
}
|
|
|
|
|
usb = jsonChannel.optInt("usbCamera", 0);
|
|
|
|
|
int cameraType = jsonChannel.optInt("cameraType", 0);
|
|
|
|
|
usb = (cameraType == 1) ? 1 : 0;
|
|
|
|
|
netCamera = (cameraType == 2 || cameraType == 4) ? 1 : 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -669,6 +672,7 @@ public class DeviceActivity extends AppCompatActivity {
|
|
|
|
|
intent.putExtra("cameraId", cameraId);
|
|
|
|
|
intent.putExtra("channel", channel);
|
|
|
|
|
intent.putExtra("rotation", rotation);
|
|
|
|
|
intent.putExtra("netCamera", netCamera);
|
|
|
|
|
intent.putExtra("usb", usb);
|
|
|
|
|
intent.putExtra("cmdid", TextUtils.isEmpty(mAppConfig.cmdid) ? "" : mAppConfig.cmdid);
|
|
|
|
|
// intent.putExtra("info", info);
|
|
|
|
|