sujinwen
2017-07-24 1a10d546c76f474d33e23c5958c08aa0afcdae67
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/DeviceMng.java
@@ -69,6 +69,7 @@
                params.addBodyParameter(Device.FieldNames.sn, authorationId);
                params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.ANDROID_DEVICE);
                params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getAndroidDevice().getCompanyId());
                x.http().post(params, new BaseCommonCallBack() {
                    public void success() {
                        loadAfterReturn(getList(Device.class));
@@ -98,6 +99,7 @@
                        RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.Query.DEVICE_QUERY);
                        params.addBodyParameter(Device.FieldNames.belongId, device.getBelongId());
                        params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.CAMERA1);
                        params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getAndroidDevice().getCompanyId());
                        x.http().post(params, new BaseCommonCallBack() {
                            public void success() {
                                List<Device> devices = resultBean.getList(Device.class);
@@ -112,6 +114,7 @@
                        params = new RequestParams(AppApi.BASE_URL + AppApi.Query.DEVICE_QUERY);
                        params.addBodyParameter(Device.FieldNames.belongId, device.getBelongId());
                        params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.CAMERA2);
                        params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getAndroidDevice().getCompanyId());
                        x.http().post(params, new BaseCommonCallBack() {
                            public void success() {
                                List<Device> devices = resultBean.getList(Device.class);
@@ -218,6 +221,7 @@
//        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.132:554/h264/ch1/sub/av_stream";
//        return "rtsp://admin:a1234567@192.168.1.132:554/h264/ch1/main/av_stream";
    }
    public String getCamera2Address() {
@@ -243,7 +247,9 @@
        //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/sub/av_stream";
//        return "rtsp://admin:a1234567@192.168.1.69:554/h264/ch1/sub/av_stream";
        return "rtsp://Admin:1234@192.168.1.22/h264";
    }
}