Commit b73b1579 authored by yating.lin's avatar yating.lin

摄像头插件调用

parent b3c4bb8b
......@@ -4821,12 +4821,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -4841,17 +4843,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -4968,7 +4973,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -4980,6 +4986,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -4994,6 +5001,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
......@@ -5001,12 +5009,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -5025,6 +5035,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -5105,7 +5116,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -5117,6 +5129,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -5238,6 +5251,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -5610,6 +5624,9 @@
"xtend": "^4.0.0"
}
},
"hikvisionplugin": {
"version": "file:src/plugins/HikvisionPlugin"
},
"hmac-drbg": {
"version": "1.0.1",
"resolved": "http://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz",
......
......@@ -47,6 +47,7 @@
"echarts": "^4.2.1",
"es6-promise-plugin": "^4.2.2",
"eventemitter3": "^4.0.0",
"hikvisionplugin": "file:src/plugins/HikvisionPlugin",
"ionic-native": "^2.9.0",
"loaders.css": "^0.1.2",
"mqtt": "^2.18.8",
......@@ -96,7 +97,8 @@
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-network-information": {}
"cordova-plugin-network-information": {},
"com.hikvision.sdk": {}
},
"platforms": [
"android",
......
......@@ -2,14 +2,28 @@ import {Component, OnInit} from '@angular/core';
import {Api} from '../service/api';
import {Transfer} from '../service/transfer';
declare let cordova: any;
@Component({
selector: 'v-mine',
templateUrl: './mine.page.html',
styleUrls: ['./mine.page.scss'],
})
export class MinePage implements OnInit {
user: any = {};
videoData = {
address: '222.73.111.148:443',
username: 'admin',
password: 'Landfun2012',
department: 2,
cameraList: [{
name: 'G095_监控点1',
sysCode: '84c7022df192439cbed6f4c06a7de2ff'
}],
role: 5
};
constructor(private api: Api, private tf: Transfer) {
}
......@@ -39,6 +53,7 @@ export class MinePage implements OnInit {
this.api.presentMsgToast(data && data.message ? data.message : '登录失败');
}
}]);
// cordova.plugins.HikvisionPlugin.coolMethod(this.videoData);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment