@dfsj/components 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +203 -0
- package/LICENSE +22 -0
- package/README.md +27 -0
- package/dist/components/Boards/index.d.ts +4 -0
- package/dist/components/Boards/src/Boards.vue.d.ts +33 -0
- package/dist/components/Boards/src/Boards.vue.js +5 -0
- package/dist/components/Boards/src/Boards.vue2.js +113 -0
- package/dist/components/Boards/src/props.d.ts +27 -0
- package/dist/components/Boards/src/props.js +18 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/src/composables/use-month-range-header.d.ts +16 -0
- package/dist/components/DatePicker/src/composables/use-month-range-header.js +52 -0
- package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +100 -0
- package/dist/components/DatePicker/src/composables/use-range-picker.js +99 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +19 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.js +5 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +564 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +16 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.js +5 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +210 -0
- package/dist/components/DatePicker/src/index.d.ts +196 -0
- package/dist/components/DatePicker/src/index.js +87 -0
- package/dist/components/DatePicker/src/panel-utils.d.ts +2 -0
- package/dist/components/DatePicker/src/panel-utils.js +25 -0
- package/dist/components/Editor/index.d.ts +6 -0
- package/dist/components/Editor/src/Editor.vue.d.ts +50 -0
- package/dist/components/Editor/src/Editor.vue.js +5 -0
- package/dist/components/Editor/src/Editor.vue2.js +138 -0
- package/dist/components/Form/index.d.ts +16 -0
- package/dist/components/Form/src/Form.vue.d.ts +164 -0
- package/dist/components/Form/src/Form.vue.js +5 -0
- package/dist/components/Form/src/Form.vue2.js +378 -0
- package/dist/components/Form/src/components/useRenderCheckbox.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderCheckbox.js +33 -0
- package/dist/components/Form/src/components/useRenderRadio.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderRadio.js +33 -0
- package/dist/components/Form/src/components/useRenderSelect.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderSelect.js +52 -0
- package/dist/components/Form/src/helper/componentMap.d.ts +5 -0
- package/dist/components/Form/src/helper/componentMap.js +35 -0
- package/dist/components/Form/src/helper/index.d.ts +7 -0
- package/dist/components/Form/src/helper/index.js +109 -0
- package/dist/components/Form/src/types/index.d.ts +533 -0
- package/dist/components/Form/src/types/index.js +31 -0
- package/dist/components/Form/src/useForm.d.ts +1 -0
- package/dist/components/Form/src/useForm.js +290 -0
- package/dist/components/Highlight/index.d.ts +2 -0
- package/dist/components/Highlight/src/Highlight.vue.d.ts +41 -0
- package/dist/components/Highlight/src/Highlight.vue.js +5 -0
- package/dist/components/Highlight/src/Highlight.vue2.js +62 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/src/Icon.vue.d.ts +49 -0
- package/dist/components/Icon/src/Icon.vue.js +5 -0
- package/dist/components/Icon/src/Icon.vue2.js +123 -0
- package/dist/components/Icon/src/SvgIcon.vue.d.ts +45 -0
- package/dist/components/Icon/src/SvgIcon.vue.js +7 -0
- package/dist/components/Icon/src/SvgIcon.vue2.js +45 -0
- package/dist/components/Icon/src/SvgIcon.vue3.js +14 -0
- package/dist/components/InputPassword/index.d.ts +2 -0
- package/dist/components/InputPassword/src/InputPassword.vue.d.ts +27 -0
- package/dist/components/InputPassword/src/InputPassword.vue.js +5 -0
- package/dist/components/InputPassword/src/InputPassword.vue2.js +58 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/src/BasicModal.vue.d.ts +280 -0
- package/dist/components/Modal/src/BasicModal.vue.js +5 -0
- package/dist/components/Modal/src/BasicModal.vue2.js +150 -0
- package/dist/components/Modal/src/components/ModalFooter.vue.d.ts +86 -0
- package/dist/components/Modal/src/components/ModalFooter.vue.js +5 -0
- package/dist/components/Modal/src/components/ModalFooter.vue2.js +30 -0
- package/dist/components/Modal/src/components/ModalHeader.vue.d.ts +142 -0
- package/dist/components/Modal/src/components/ModalHeader.vue.js +5 -0
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +63 -0
- package/dist/components/Modal/src/config.d.ts +24 -0
- package/dist/components/Modal/src/config.js +25 -0
- package/dist/components/Modal/src/hooks/useModalDrag.d.ts +24 -0
- package/dist/components/Modal/src/hooks/useModalDrag.js +108 -0
- package/dist/components/Modal/src/hooks/useTimeout.d.ts +15 -0
- package/dist/components/Modal/src/hooks/useTimeout.js +53 -0
- package/dist/components/Modal/src/props.d.ts +131 -0
- package/dist/components/Modal/src/props.js +107 -0
- package/dist/components/Modal/src/utils/index.d.ts +3 -0
- package/dist/components/Modal/src/utils/index.js +86 -0
- package/dist/components/Stateful/index.d.ts +4 -0
- package/dist/components/Stateful/src/State.d.ts +20 -0
- package/dist/components/Stateful/src/State.js +82 -0
- package/dist/components/Stateful/src/Stateful.vue.d.ts +44 -0
- package/dist/components/Stateful/src/Stateful.vue.js +5 -0
- package/dist/components/Stateful/src/Stateful.vue2.js +46 -0
- package/dist/components/Stateful/src/props.d.ts +39 -0
- package/dist/components/Stateful/src/props.js +29 -0
- package/dist/components/Table/index.d.ts +14 -0
- package/dist/components/Table/src/Table.vue.d.ts +537 -0
- package/dist/components/Table/src/Table.vue.js +5 -0
- package/dist/components/Table/src/Table.vue2.js +582 -0
- package/dist/components/Table/src/components/ColumnSetting.vue.d.ts +30 -0
- package/dist/components/Table/src/components/ColumnSetting.vue.js +5 -0
- package/dist/components/Table/src/components/ColumnSetting.vue2.js +264 -0
- package/dist/components/Table/src/components/TableActions.vue.d.ts +20 -0
- package/dist/components/Table/src/components/TableActions.vue.js +5 -0
- package/dist/components/Table/src/components/TableActions.vue2.js +108 -0
- package/dist/components/Table/src/helper/index.d.ts +2 -0
- package/dist/components/Table/src/helper/index.js +11 -0
- package/dist/components/Table/src/types/index.d.ts +87 -0
- package/dist/components/Table/src/useTable.d.ts +1 -0
- package/dist/components/Table/src/useTable.js +284 -0
- package/dist/components/UnifyChart/index.d.ts +4 -0
- package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +63 -0
- package/dist/components/UnifyChart/src/ChartToolbox.vue.js +5 -0
- package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +83 -0
- package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +185 -0
- package/dist/components/UnifyChart/src/UnifyChart.vue.js +5 -0
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +54 -0
- package/dist/components/UnifyChart/src/hooks/useLoader.d.ts +11 -0
- package/dist/components/UnifyChart/src/hooks/useRender.d.ts +24 -0
- package/dist/components/UnifyChart/src/hooks/useRender.js +49 -0
- package/dist/components/UnifyChart/src/props.d.ts +145 -0
- package/dist/components/UnifyChart/src/props.js +33 -0
- package/dist/components/Video/index.d.ts +2 -0
- package/dist/components/Video/src/VideoPlayer.vue.d.ts +60 -0
- package/dist/components/Video/src/VideoPlayer.vue.js +5 -0
- package/dist/components/Video/src/VideoPlayer.vue2.js +107 -0
- package/dist/components/Video/src/VideoPlayerToolbar.vue.d.ts +34 -0
- package/dist/components/Video/src/VideoPlayerToolbar.vue.js +5 -0
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +65 -0
- package/dist/components/Video/src/abstract/AbstractVideoControl.d.ts +7 -0
- package/dist/components/Video/src/abstract/Observable.d.ts +6 -0
- package/dist/components/Video/src/abstract/Observable.js +89 -0
- package/dist/components/Video/src/abstract/VideoControl.d.ts +32 -0
- package/dist/components/Video/src/abstract/VideoControl.js +50 -0
- package/dist/components/Video/src/control/DaHua.d.ts +12 -0
- package/dist/components/Video/src/control/DaHua.js +156 -0
- package/dist/components/Video/src/control/Hikvision.d.ts +28 -0
- package/dist/components/Video/src/control/Hikvision.js +251 -0
- package/dist/components/Video/src/control/VideoFactory.d.ts +3 -0
- package/dist/components/Video/src/control/VideoFactory.js +32 -0
- package/dist/components/Video/src/enums/CommonEnum.d.ts +26 -0
- package/dist/components/Video/src/enums/CommonEnum.js +31 -0
- package/dist/components/Windows/index.d.ts +4 -0
- package/dist/components/Windows/src/ModalWrap.vue.d.ts +14 -0
- package/dist/components/Windows/src/ModalWrap.vue.js +5 -0
- package/dist/components/Windows/src/ModalWrap.vue2.js +90 -0
- package/dist/components/Windows/src/Windows.vue.d.ts +18 -0
- package/dist/components/Windows/src/Windows.vue.js +7 -0
- package/dist/components/Windows/src/Windows.vue2.js +51 -0
- package/dist/components/Windows/src/Windows.vue3.js +22 -0
- package/dist/components/Windows/src/props.d.ts +20 -0
- package/dist/components/Windows/src/props.js +9 -0
- package/dist/directives/clickOutside.d.ts +3 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/repeatClick.d.ts +3 -0
- package/dist/helper/lang.d.ts +1 -0
- package/dist/helper/lang.js +546 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +36 -0
- package/dist/index.min.css +6 -0
- package/dist/node_modules/.pnpm/@vueuse_core@10.7.2_vue@3.4.21/node_modules/@vueuse/core/index.js +268 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@10.7.2_vue@3.4.21/node_modules/@vueuse/shared/index.js +34 -0
- package/dist/themes/index.d.ts +1 -0
- package/dist/themes/index.js +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.js +24 -0
- package/dist/utils/is.d.ts +25 -0
- package/dist/utils/is.js +36 -0
- package/dist/utils/propTypes.d.ts +10 -0
- package/dist/utils/propTypes.js +35 -0
- package/dist/utils/tsxHelper.d.ts +5 -0
- package/dist/utils/tsxHelper.js +18 -0
- package/package.json +64 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import AbstractVideoControl from "./AbstractVideoControl";
|
|
2
|
+
import Observable from "./Observable";
|
|
3
|
+
export interface VideoBaseOpt {
|
|
4
|
+
ip: string;
|
|
5
|
+
port: string | number;
|
|
6
|
+
channel: string | number;
|
|
7
|
+
username: string;
|
|
8
|
+
streamType: string | number;
|
|
9
|
+
password: string;
|
|
10
|
+
wrapEl: any;
|
|
11
|
+
canvasEl: any;
|
|
12
|
+
videoEl: any;
|
|
13
|
+
needPlugin: boolean;
|
|
14
|
+
needLogin: boolean;
|
|
15
|
+
}
|
|
16
|
+
export default class VideoControl extends Observable implements AbstractVideoControl {
|
|
17
|
+
ip: string;
|
|
18
|
+
port: string | number;
|
|
19
|
+
channel: string | number;
|
|
20
|
+
streamType: string | number;
|
|
21
|
+
username: string;
|
|
22
|
+
password: string;
|
|
23
|
+
wrapEl: any;
|
|
24
|
+
isPlayback: boolean;
|
|
25
|
+
playbackIndex: number;
|
|
26
|
+
state: object;
|
|
27
|
+
player: any;
|
|
28
|
+
needPlugin: boolean;
|
|
29
|
+
needLogin: boolean;
|
|
30
|
+
constructor(opt: Partial<VideoBaseOpt>);
|
|
31
|
+
get identify(): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
4
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
5
|
+
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
6
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import Observable from './Observable.js';
|
|
9
|
+
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
+
var VideoControl = /*#__PURE__*/function (_Observable) {
|
|
13
|
+
_inherits(VideoControl, _Observable);
|
|
14
|
+
function VideoControl(opt) {
|
|
15
|
+
var _this;
|
|
16
|
+
_classCallCheck(this, VideoControl);
|
|
17
|
+
_this = _callSuper(this, VideoControl);
|
|
18
|
+
_defineProperty(_assertThisInitialized(_this), "ip", void 0);
|
|
19
|
+
_defineProperty(_assertThisInitialized(_this), "port", void 0);
|
|
20
|
+
_defineProperty(_assertThisInitialized(_this), "channel", void 0);
|
|
21
|
+
_defineProperty(_assertThisInitialized(_this), "streamType", void 0);
|
|
22
|
+
_defineProperty(_assertThisInitialized(_this), "username", void 0);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "password", void 0);
|
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "wrapEl", void 0);
|
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "isPlayback", void 0);
|
|
26
|
+
_defineProperty(_assertThisInitialized(_this), "playbackIndex", void 0);
|
|
27
|
+
_defineProperty(_assertThisInitialized(_this), "state", void 0);
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "player", void 0);
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "needPlugin", void 0);
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "needLogin", void 0);
|
|
31
|
+
console.log('opt', opt);
|
|
32
|
+
_this.ip = opt.ip;
|
|
33
|
+
_this.port = opt.port;
|
|
34
|
+
_this.channel = opt.channel;
|
|
35
|
+
_this.streamType = opt.streamType;
|
|
36
|
+
_this.username = opt.username;
|
|
37
|
+
_this.password = opt.password;
|
|
38
|
+
_this.wrapEl = opt.wrapEl;
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
_createClass(VideoControl, [{
|
|
42
|
+
key: "identify",
|
|
43
|
+
get: function get() {
|
|
44
|
+
return this.ip + '_' + this.port;
|
|
45
|
+
}
|
|
46
|
+
}]);
|
|
47
|
+
return VideoControl;
|
|
48
|
+
}(Observable);
|
|
49
|
+
|
|
50
|
+
export { VideoControl as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import VideoControl, { VideoBaseOpt } from "../abstract/VideoControl";
|
|
2
|
+
export default class DaHua extends VideoControl {
|
|
3
|
+
canvasEl: any;
|
|
4
|
+
videoEl: any;
|
|
5
|
+
constructor(opts: Partial<VideoBaseOpt>);
|
|
6
|
+
generateEl(): void;
|
|
7
|
+
removeEl(): void;
|
|
8
|
+
login(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
play(isPlayback?: boolean): void;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
4
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
5
|
+
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
6
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import VideoControl from '../abstract/VideoControl.js';
|
|
9
|
+
import { EventEnum } from '../enums/CommonEnum.js';
|
|
10
|
+
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
|
+
var DEF = {
|
|
16
|
+
ip: '172.168.1.247',
|
|
17
|
+
port: 80,
|
|
18
|
+
username: 'admin',
|
|
19
|
+
password: 'admin123',
|
|
20
|
+
channel: 1,
|
|
21
|
+
streamType: 0
|
|
22
|
+
};
|
|
23
|
+
var DaHua = /*#__PURE__*/function (_VideoControl) {
|
|
24
|
+
_inherits(DaHua, _VideoControl);
|
|
25
|
+
function DaHua(opts) {
|
|
26
|
+
var _this;
|
|
27
|
+
_classCallCheck(this, DaHua);
|
|
28
|
+
_this = _callSuper(this, DaHua, [_objectSpread(_objectSpread({}, DEF), opts)]);
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "canvasEl", void 0);
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "videoEl", void 0);
|
|
31
|
+
_this.isPlayback = false;
|
|
32
|
+
_this.playbackIndex = 0;
|
|
33
|
+
_this.generateEl();
|
|
34
|
+
_this.play();
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
_createClass(DaHua, [{
|
|
38
|
+
key: "generateEl",
|
|
39
|
+
value: function generateEl() {
|
|
40
|
+
this.canvasEl = document.createElement('canvas');
|
|
41
|
+
this.canvasEl.style.cssText = "position: absolute;left: 0;top: 0;width: 100%;height: 100%;";
|
|
42
|
+
this.videoEl = document.createElement('video');
|
|
43
|
+
this.videoEl.style.cssText = "display: none;width:100%;height:100%;position:absolute;top:0;left:0";
|
|
44
|
+
if (this.wrapEl) {
|
|
45
|
+
this.wrapEl.appendChild(this.canvasEl);
|
|
46
|
+
this.wrapEl.appendChild(this.videoEl);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "removeEl",
|
|
51
|
+
value: function removeEl() {
|
|
52
|
+
var remove = function remove(el) {
|
|
53
|
+
var parent = el === null || el === void 0 ? void 0 : el.parentNode;
|
|
54
|
+
if (parent) {
|
|
55
|
+
parent.removeChild(el);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
remove(this.videoEl);
|
|
59
|
+
remove(this.canvasEl);
|
|
60
|
+
this.videoEl = null;
|
|
61
|
+
this.canvasEl = null;
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
key: "login",
|
|
65
|
+
value: function login() {
|
|
66
|
+
var ip = this.ip,
|
|
67
|
+
port = this.port,
|
|
68
|
+
username = this.username,
|
|
69
|
+
password = this.password;
|
|
70
|
+
var target = ip + ':' + port;
|
|
71
|
+
setIP(target);
|
|
72
|
+
RPC.login(username, password, false).then(function (res) {
|
|
73
|
+
console.info('登录成功', res);
|
|
74
|
+
RPC.keepAlive(300, 60000, _getSession(), target);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "stop",
|
|
79
|
+
value: function stop() {
|
|
80
|
+
var _this$player, _this$player$pause;
|
|
81
|
+
this === null || this === void 0 || (_this$player = this.player) === null || _this$player === void 0 || (_this$player$pause = _this$player.pause) === null || _this$player$pause === void 0 || _this$player$pause.call(_this$player);
|
|
82
|
+
this.dispatch(EventEnum.PAUSE, {
|
|
83
|
+
type: 'Pause',
|
|
84
|
+
target: this
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
key: "play",
|
|
89
|
+
value: function play() {
|
|
90
|
+
var _this2 = this;
|
|
91
|
+
var isPlayback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
92
|
+
this.stop();
|
|
93
|
+
var ip = this.ip,
|
|
94
|
+
port = this.port,
|
|
95
|
+
username = this.username,
|
|
96
|
+
password = this.password,
|
|
97
|
+
streamType = this.streamType,
|
|
98
|
+
channel = this.channel;
|
|
99
|
+
var url;
|
|
100
|
+
var options = {
|
|
101
|
+
wsURL: 'ws://' + ip + ':' + port + '/rtspoverwebsocket',
|
|
102
|
+
rtspURL: !isPlayback ? 'rtsp://' + ip + ':' + port + '/cam/realmonitor?channel=' + channel + '&subtype=' + streamType + '&proto=Private3' : 'rtsp://' + ip + ':' + port + '/' + url,
|
|
103
|
+
username: username,
|
|
104
|
+
password: password,
|
|
105
|
+
lessRateCanvas: true,
|
|
106
|
+
playback: this.isPlayback,
|
|
107
|
+
isPrivateProtocol: false,
|
|
108
|
+
realm: RPC.realm,
|
|
109
|
+
playbackIndex: this.playbackIndex
|
|
110
|
+
};
|
|
111
|
+
this.player = new PlayerControl(options);
|
|
112
|
+
console.log('this.player', this.player);
|
|
113
|
+
this.player.on('PlayStart', function (e) {
|
|
114
|
+
_this2.dispatch(EventEnum.PLAY, {
|
|
115
|
+
type: 'PlayStart',
|
|
116
|
+
target: _this2
|
|
117
|
+
});
|
|
118
|
+
console.log('PlayStart', e);
|
|
119
|
+
if (!_this2.player.isPlayback) ;
|
|
120
|
+
});
|
|
121
|
+
this.player.on('Error', function (e) {
|
|
122
|
+
console.log('Error: ' + JSON.stringify(e));
|
|
123
|
+
_this2.dispatch(EventEnum.ERROR, {
|
|
124
|
+
type: 'Error',
|
|
125
|
+
code: ''
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
this.player.on('WorkerReady', function (ev) {
|
|
129
|
+
_this2.dispatch(EventEnum.READY, {
|
|
130
|
+
type: 'WorkerReady',
|
|
131
|
+
target: _this2
|
|
132
|
+
});
|
|
133
|
+
console.log('准备好了 开始链接播放..', ev);
|
|
134
|
+
_this2.player.connect();
|
|
135
|
+
});
|
|
136
|
+
console.log('this.', this);
|
|
137
|
+
this.player.init(this.canvasEl, this.videoEl);
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
key: "dispose",
|
|
141
|
+
value: function dispose() {
|
|
142
|
+
var _this$player2, _this$player2$stop, _this$player3, _this$player3$close;
|
|
143
|
+
this.dispatch(EventEnum.DISPOSE, {
|
|
144
|
+
type: 'dispose',
|
|
145
|
+
target: this
|
|
146
|
+
});
|
|
147
|
+
this.player && ((_this$player2 = this.player) === null || _this$player2 === void 0 || (_this$player2$stop = _this$player2.stop) === null || _this$player2$stop === void 0 ? void 0 : _this$player2$stop.call(_this$player2));
|
|
148
|
+
this.player && ((_this$player3 = this.player) === null || _this$player3 === void 0 || (_this$player3$close = _this$player3.close) === null || _this$player3$close === void 0 ? void 0 : _this$player3$close.call(_this$player3));
|
|
149
|
+
this.removeEl();
|
|
150
|
+
this.player = null;
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
return DaHua;
|
|
154
|
+
}(VideoControl);
|
|
155
|
+
|
|
156
|
+
export { DaHua as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import VideoControl, { VideoBaseOpt } from '../abstract/VideoControl';
|
|
2
|
+
interface IHikvision {
|
|
3
|
+
elId: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
szBasePath: string;
|
|
7
|
+
}
|
|
8
|
+
type HikvisionOpt = Partial<VideoBaseOpt> & IHikvision;
|
|
9
|
+
export default class Hikvision extends VideoControl {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
elId: string;
|
|
13
|
+
container: any;
|
|
14
|
+
szBasePath: string;
|
|
15
|
+
constructor(opts: Partial<HikvisionOpt>);
|
|
16
|
+
get pluginElId(): string;
|
|
17
|
+
generateEl(): void;
|
|
18
|
+
removeEl(): void;
|
|
19
|
+
checkPlugin(): boolean;
|
|
20
|
+
play(): void;
|
|
21
|
+
stop(): void;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
login(): void;
|
|
24
|
+
logout(): void;
|
|
25
|
+
fullScreen(flag: boolean): void;
|
|
26
|
+
downloadPlugin(): void;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
4
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
5
|
+
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
6
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import VideoControl from '../abstract/VideoControl.js';
|
|
9
|
+
import { EventEnum } from '../enums/CommonEnum.js';
|
|
10
|
+
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
|
+
var DEF = {
|
|
16
|
+
ip: '172.168.1.247',
|
|
17
|
+
port: 80,
|
|
18
|
+
username: 'admin',
|
|
19
|
+
password: 'admin123',
|
|
20
|
+
channel: 1,
|
|
21
|
+
streamType: 1,
|
|
22
|
+
width: 600,
|
|
23
|
+
height: 400,
|
|
24
|
+
elId: 'divPlugin',
|
|
25
|
+
szBasePath: "libs/hikvision/"
|
|
26
|
+
};
|
|
27
|
+
var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
28
|
+
_inherits(Hikvision, _VideoControl);
|
|
29
|
+
function Hikvision(opts) {
|
|
30
|
+
var _this;
|
|
31
|
+
_classCallCheck(this, Hikvision);
|
|
32
|
+
var def = _objectSpread(_objectSpread({}, DEF), opts);
|
|
33
|
+
_this = _callSuper(this, Hikvision, [def]);
|
|
34
|
+
_defineProperty(_assertThisInitialized(_this), "width", void 0);
|
|
35
|
+
_defineProperty(_assertThisInitialized(_this), "height", void 0);
|
|
36
|
+
_defineProperty(_assertThisInitialized(_this), "elId", void 0);
|
|
37
|
+
_defineProperty(_assertThisInitialized(_this), "container", void 0);
|
|
38
|
+
_defineProperty(_assertThisInitialized(_this), "szBasePath", void 0);
|
|
39
|
+
_this.isPlayback = false;
|
|
40
|
+
_this.playbackIndex = 0;
|
|
41
|
+
_this.needPlugin = true;
|
|
42
|
+
_this.needLogin = true;
|
|
43
|
+
console.log('WebVideoCtrl 海康', WebVideoCtrl);
|
|
44
|
+
_this.width = def.width;
|
|
45
|
+
_this.height = def.height;
|
|
46
|
+
_this.elId = def.elId;
|
|
47
|
+
_this.szBasePath = def.szBasePath;
|
|
48
|
+
_this.generateEl();
|
|
49
|
+
if (_this.needPlugin) {
|
|
50
|
+
var install = _this.checkPlugin();
|
|
51
|
+
if (install) {
|
|
52
|
+
WebVideoCtrl.I_InitPlugin(_this.width, _this.height, {
|
|
53
|
+
szBasePath: _this.szBasePath,
|
|
54
|
+
bWndFull: false,
|
|
55
|
+
iWndowType: 1,
|
|
56
|
+
cbSelWnd: function cbSelWnd(xmlDoc) {
|
|
57
|
+
console.log('当前选择的窗口编号', xmlDoc);
|
|
58
|
+
},
|
|
59
|
+
cbDoubleClickWnd: function cbDoubleClickWnd(iWndIndex, bFullScreen) {
|
|
60
|
+
console.log('当前放大的窗口编号');
|
|
61
|
+
},
|
|
62
|
+
cbEvent: function cbEvent(iEventType, iParam1, iParam2) {
|
|
63
|
+
console.log('回看');
|
|
64
|
+
},
|
|
65
|
+
cbInitPluginComplete: function cbInitPluginComplete() {
|
|
66
|
+
WebVideoCtrl.I_InsertOBJECTPlugin(_this.pluginElId);
|
|
67
|
+
if (-1 == WebVideoCtrl.I_CheckPluginVersion()) {
|
|
68
|
+
alert("检测到新的插件版本,双击开发包目录里的WebComponentsKit.exe升级!");
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
_this.login();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
_createClass(Hikvision, [{
|
|
79
|
+
key: "pluginElId",
|
|
80
|
+
get: function get() {
|
|
81
|
+
return "divPlugin".concat(this.elId);
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
key: "generateEl",
|
|
85
|
+
value: function generateEl() {
|
|
86
|
+
var _this$width, _this$height;
|
|
87
|
+
this.container = document.createElement('div');
|
|
88
|
+
this.container.style.cssText = "width: ".concat((_this$width = this.width) !== null && _this$width !== void 0 ? _this$width : '100%', ";height: ").concat((_this$height = this.height) !== null && _this$height !== void 0 ? _this$height : '100%', ";");
|
|
89
|
+
this.container.setAttribute('id', this.pluginElId);
|
|
90
|
+
if (this.wrapEl) {
|
|
91
|
+
this.wrapEl.appendChild(this.container);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
key: "removeEl",
|
|
96
|
+
value: function removeEl() {
|
|
97
|
+
var remove = function remove(el) {
|
|
98
|
+
var parent = el === null || el === void 0 ? void 0 : el.parentNode;
|
|
99
|
+
if (parent) {
|
|
100
|
+
parent.removeChild(el);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
remove(this.container);
|
|
104
|
+
this.container = null;
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
key: "checkPlugin",
|
|
108
|
+
value: function checkPlugin() {
|
|
109
|
+
var iRet = WebVideoCtrl.I_CheckPluginInstall();
|
|
110
|
+
console.log('iRet', iRet);
|
|
111
|
+
if (-1 == iRet) {
|
|
112
|
+
this.dispatch(EventEnum.PLUGIN, {
|
|
113
|
+
type: 'Plugin',
|
|
114
|
+
target: this,
|
|
115
|
+
msg: '插件初始化失败,请确认是否已安装插件;如果未安装,请双击开发包目录里的HCWebSDKPlugin.exe安装!'
|
|
116
|
+
});
|
|
117
|
+
console.log('您还未安装过插件,双击开发包目录里的WebComponentsKit.exe安装!');
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
key: "play",
|
|
124
|
+
value: function play() {
|
|
125
|
+
var _WebVideoCtrl,
|
|
126
|
+
_this2 = this;
|
|
127
|
+
var oWndInfo = (_WebVideoCtrl = WebVideoCtrl) === null || _WebVideoCtrl === void 0 ? void 0 : _WebVideoCtrl.I_GetWindowStatus(0);
|
|
128
|
+
var startRealPlay = function startRealPlay() {
|
|
129
|
+
WebVideoCtrl.I_StartRealPlay(_this2.identify, {
|
|
130
|
+
iStreamType: _this2.streamType,
|
|
131
|
+
iChannelID: _this2.channel,
|
|
132
|
+
success: function success() {
|
|
133
|
+
_this2.dispatch(EventEnum.PLAY, {
|
|
134
|
+
type: 'PlayStart',
|
|
135
|
+
target: _this2
|
|
136
|
+
});
|
|
137
|
+
console.log('开始预览成功');
|
|
138
|
+
},
|
|
139
|
+
error: function error(oError) {
|
|
140
|
+
console.log('开始预览失败', oError);
|
|
141
|
+
_this2.dispatch(EventEnum.ERROR, {
|
|
142
|
+
type: 'Error',
|
|
143
|
+
code: ''
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
if (oWndInfo != null) {
|
|
149
|
+
WebVideoCtrl.I_Stop({
|
|
150
|
+
success: function success() {
|
|
151
|
+
startRealPlay();
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
} else {
|
|
155
|
+
startRealPlay();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "stop",
|
|
160
|
+
value: function stop() {
|
|
161
|
+
var _this3 = this;
|
|
162
|
+
var oWndInfo = WebVideoCtrl.I_GetWindowStatus(0);
|
|
163
|
+
if (oWndInfo != null) {
|
|
164
|
+
WebVideoCtrl.I_Stop({
|
|
165
|
+
success: function success() {
|
|
166
|
+
_this3.dispatch(EventEnum.PAUSE, {
|
|
167
|
+
type: 'PlayStart',
|
|
168
|
+
target: _this3
|
|
169
|
+
});
|
|
170
|
+
console.log('停止预览成功');
|
|
171
|
+
},
|
|
172
|
+
error: function error(oError) {
|
|
173
|
+
console.log('停止预览失败');
|
|
174
|
+
_this3.dispatch(EventEnum.ERROR, {
|
|
175
|
+
type: 'Error',
|
|
176
|
+
code: ''
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "dispose",
|
|
184
|
+
value: function dispose() {
|
|
185
|
+
WebVideoCtrl.I_Stop();
|
|
186
|
+
WebVideoCtrl.I_DestroyPlugin();
|
|
187
|
+
this.logout();
|
|
188
|
+
this.removeEl();
|
|
189
|
+
this.dispatch(EventEnum.DISPOSE, {
|
|
190
|
+
type: 'PlayStart',
|
|
191
|
+
target: this
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}, {
|
|
195
|
+
key: "login",
|
|
196
|
+
value: function login() {
|
|
197
|
+
var _WebVideoCtrl2,
|
|
198
|
+
_this4 = this;
|
|
199
|
+
var ip = this.ip,
|
|
200
|
+
port = this.port,
|
|
201
|
+
username = this.username,
|
|
202
|
+
password = this.password;
|
|
203
|
+
(_WebVideoCtrl2 = WebVideoCtrl) === null || _WebVideoCtrl2 === void 0 || _WebVideoCtrl2.I_Login(ip, 1, port, username, password, {
|
|
204
|
+
timeout: 3000,
|
|
205
|
+
success: function success(xmlDoc) {
|
|
206
|
+
console.log('登录成功', xmlDoc);
|
|
207
|
+
_this4.play();
|
|
208
|
+
},
|
|
209
|
+
error: function error(oError) {
|
|
210
|
+
console.log('登录失败', oError);
|
|
211
|
+
_this4.dispatch(EventEnum.ERROR, {
|
|
212
|
+
type: 'Error',
|
|
213
|
+
code: ''
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: "logout",
|
|
220
|
+
value: function logout() {
|
|
221
|
+
var _WebVideoCtrl3,
|
|
222
|
+
_this5 = this;
|
|
223
|
+
(_WebVideoCtrl3 = WebVideoCtrl) === null || _WebVideoCtrl3 === void 0 || _WebVideoCtrl3.I_Logout(this.identify).then(function () {
|
|
224
|
+
console.log('退出成功');
|
|
225
|
+
}, function () {
|
|
226
|
+
console.log('退出失败');
|
|
227
|
+
_this5.dispatch(EventEnum.ERROR, {
|
|
228
|
+
type: 'Error',
|
|
229
|
+
code: ''
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}, {
|
|
234
|
+
key: "fullScreen",
|
|
235
|
+
value: function fullScreen(flag) {
|
|
236
|
+
WebVideoCtrl.I_FullScreen(flag);
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
key: "downloadPlugin",
|
|
240
|
+
value: function downloadPlugin() {
|
|
241
|
+
var fileUrl = this.szBasePath + 'WebComponentsKit.exe';
|
|
242
|
+
var link = document.createElement('a');
|
|
243
|
+
link.href = fileUrl;
|
|
244
|
+
link.download = 'WebComponentsKit.exe';
|
|
245
|
+
link.click();
|
|
246
|
+
}
|
|
247
|
+
}]);
|
|
248
|
+
return Hikvision;
|
|
249
|
+
}(VideoControl);
|
|
250
|
+
|
|
251
|
+
export { Hikvision as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import { VideoType } from '../enums/CommonEnum.js';
|
|
4
|
+
import DaHua from './DaHua.js';
|
|
5
|
+
import Hikvision from './Hikvision.js';
|
|
6
|
+
|
|
7
|
+
var VideoFactory = /*#__PURE__*/function () {
|
|
8
|
+
function VideoFactory() {
|
|
9
|
+
_classCallCheck(this, VideoFactory);
|
|
10
|
+
}
|
|
11
|
+
_createClass(VideoFactory, null, [{
|
|
12
|
+
key: "create",
|
|
13
|
+
value: function create(type, options) {
|
|
14
|
+
var coach = null;
|
|
15
|
+
switch (type) {
|
|
16
|
+
case VideoType.DaHua:
|
|
17
|
+
coach = DaHua;
|
|
18
|
+
break;
|
|
19
|
+
case VideoType.Hikvision:
|
|
20
|
+
coach = Hikvision;
|
|
21
|
+
break;
|
|
22
|
+
default:
|
|
23
|
+
coach = null;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
if (coach) return new coach(options);
|
|
27
|
+
}
|
|
28
|
+
}]);
|
|
29
|
+
return VideoFactory;
|
|
30
|
+
}();
|
|
31
|
+
|
|
32
|
+
export { VideoFactory as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum EHiStateCode {
|
|
2
|
+
ERROR_CODE_UNKNOWN = 1000,
|
|
3
|
+
ERROR_CODE_NETWORKERROR = 1001,
|
|
4
|
+
ERROR_CODE_PARAMERROR = 1002,
|
|
5
|
+
ERROR_CODE_LOGIN_NOLOGIN = 2000,
|
|
6
|
+
ERROR_CODE_LOGIN_REPEATLOGIN = 2001,
|
|
7
|
+
ERROR_CODE_LOGIN_NOSUPPORT = 2002,
|
|
8
|
+
ERROR_CODE_PLAY_PLUGININITFAIL = 3000,
|
|
9
|
+
ERROR_CODE_PLAY_NOREPEATPLAY = 3001,
|
|
10
|
+
ERROR_CODE_PLAY_PLAYBACKABNORMAL = 3002,
|
|
11
|
+
ERROR_CODE_PLAY_PLAYBACKSTOP = 3003,
|
|
12
|
+
ERROR_CODE_PLAY_NOFREESPACE = 3004,
|
|
13
|
+
ERROR_CODE_TALK_FAIL = 5000
|
|
14
|
+
}
|
|
15
|
+
export declare enum VideoType {
|
|
16
|
+
DaHua = "DaHua",
|
|
17
|
+
Hikvision = "Hikvision"
|
|
18
|
+
}
|
|
19
|
+
export declare enum EventEnum {
|
|
20
|
+
READY = "READY",
|
|
21
|
+
PLAY = "PLAY",
|
|
22
|
+
PAUSE = "PAUSE",
|
|
23
|
+
DISPOSE = "DISPOSE",
|
|
24
|
+
ERROR = "ERROR",
|
|
25
|
+
PLUGIN = "PLUGIN"
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var EHiStateCode;
|
|
2
|
+
(function (EHiStateCode) {
|
|
3
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_UNKNOWN"] = 1000] = "ERROR_CODE_UNKNOWN";
|
|
4
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_NETWORKERROR"] = 1001] = "ERROR_CODE_NETWORKERROR";
|
|
5
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PARAMERROR"] = 1002] = "ERROR_CODE_PARAMERROR";
|
|
6
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_LOGIN_NOLOGIN"] = 2000] = "ERROR_CODE_LOGIN_NOLOGIN";
|
|
7
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_LOGIN_REPEATLOGIN"] = 2001] = "ERROR_CODE_LOGIN_REPEATLOGIN";
|
|
8
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_LOGIN_NOSUPPORT"] = 2002] = "ERROR_CODE_LOGIN_NOSUPPORT";
|
|
9
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PLAY_PLUGININITFAIL"] = 3000] = "ERROR_CODE_PLAY_PLUGININITFAIL";
|
|
10
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PLAY_NOREPEATPLAY"] = 3001] = "ERROR_CODE_PLAY_NOREPEATPLAY";
|
|
11
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PLAY_PLAYBACKABNORMAL"] = 3002] = "ERROR_CODE_PLAY_PLAYBACKABNORMAL";
|
|
12
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PLAY_PLAYBACKSTOP"] = 3003] = "ERROR_CODE_PLAY_PLAYBACKSTOP";
|
|
13
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_PLAY_NOFREESPACE"] = 3004] = "ERROR_CODE_PLAY_NOFREESPACE";
|
|
14
|
+
EHiStateCode[EHiStateCode["ERROR_CODE_TALK_FAIL"] = 5000] = "ERROR_CODE_TALK_FAIL";
|
|
15
|
+
})(EHiStateCode || (EHiStateCode = {}));
|
|
16
|
+
var VideoType;
|
|
17
|
+
(function (VideoType) {
|
|
18
|
+
VideoType["DaHua"] = "DaHua";
|
|
19
|
+
VideoType["Hikvision"] = "Hikvision";
|
|
20
|
+
})(VideoType || (VideoType = {}));
|
|
21
|
+
var EventEnum;
|
|
22
|
+
(function (EventEnum) {
|
|
23
|
+
EventEnum["READY"] = "READY";
|
|
24
|
+
EventEnum["PLAY"] = "PLAY";
|
|
25
|
+
EventEnum["PAUSE"] = "PAUSE";
|
|
26
|
+
EventEnum["DISPOSE"] = "DISPOSE";
|
|
27
|
+
EventEnum["ERROR"] = "ERROR";
|
|
28
|
+
EventEnum["PLUGIN"] = "PLUGIN";
|
|
29
|
+
})(EventEnum || (EventEnum = {}));
|
|
30
|
+
|
|
31
|
+
export { EHiStateCode, EventEnum, VideoType };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { Options } from './props';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
zIndex: NumberConstructor;
|
|
5
|
+
options: PropType<Options>;
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
zIndex: NumberConstructor;
|
|
10
|
+
options: PropType<Options>;
|
|
11
|
+
}>> & {
|
|
12
|
+
onClose?: (...args: any[]) => any;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export default _default;
|