xuxiuxi
2017-07-04 3e3e3753178aa7f8d239b540daa4c974b5ccaa3d
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/DeviceMng.java
@@ -62,6 +62,7 @@
//                return;
//            }
            RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.Query.DEVICE_QUERY);
            params.addBodyParameter(Device.FieldNames.sn, authorationId);
            params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.ANDROID_DEVICE);
            x.http().post(params, new BaseCommonCallBack() {
@@ -188,7 +189,10 @@
//            port = camera1.getString("fragment_device_right_camera1_port", "");
//        }
        return "rtsp://"+username+":"+password+"@"+ip+":"+port+"/h264/ch1/sub/av_stream";
//        return "rtsp://"+username+":"+password+"@"+ip+":"+port+"/h264/ch1/sub/av_stream";
//        return "rtsp://Admin:1234@192.168.1.22/h264";
        return "rtsp://admin:a1234567@192.168.1.68:554/h264/ch1/main/av_stream";
    }
    public String getCamera2Address() {
@@ -207,11 +211,14 @@
//        if (!"".equals(camera1.getString("fragment_device_right_camera1_ip", ""))) {
//            ip = camera1.getString("fragment_device_right_camera1_ip", "");
//        }
//        if (!"".equals(camera1.getString("fragment_device_right_camera1_port", ""))) {
//        if (!"".equals(camera1.getString("fragment_device_right_camera1_port", ?
// ""))) {
//            port = camera1.getString("fragment_device_right_camera1_port", "");
//        }
        return "rtsp://"+username+":"+password+"@"+ip+":"+port+"/h264/ch1/sub/av_stream";
        //return "rtsp://"+username+":"+password+"@"+ip+":"+port+"/h264/ch1/sub/av_stream";
//        return "rtsp://admin:a1234567@192.168.1.68:554/h264/ch1/main/av_stream";
        return "rtsp://admin:a1234567@192.168.1.69:554/h264/ch1/main/av_stream";
    }
}