Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d99ca2

Browse files
author
邵强强
committed
2 parents f65612e + f7df40a commit 0d99ca2

File tree

7 files changed

+5690
-60
lines changed

7 files changed

+5690
-60
lines changed

demos/react-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"axios": "^1.6.2",
7-
"ezuikit-js": "^7.7.8",
7+
"ezuikit-js": "^7.7.10-alpha.2",
88
"@testing-library/jest-dom": "^5.14.1",
99
"@testing-library/react": "^13.0.0",
1010
"@testing-library/user-event": "^13.2.1",

demos/react-demo/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,10 +4572,10 @@ express@^4.17.3:
45724572
utils-merge "1.0.1"
45734573
vary "~1.1.2"
45744574

4575-
ezuikit-js@^7.7.8:
4576-
version "7.7.8"
4577-
resolved "https://registry.yarnpkg.com/ezuikit-js/-/ezuikit-js-7.7.8.tgz#a864f007501acc320a213315c58e726675cd444f"
4578-
integrity sha512-DfcPxUhLgchkQU5+0WllD3QghAJYG9mCybCCs0znLoSnMupup6WB1+wjrxPtpt49praQDuMrGoBVe0Mtl1z9/w==
4575+
ezuikit-js@^7.7.10-alpha.2:
4576+
version "7.7.10-alpha.2"
4577+
resolved "https://registry.yarnpkg.com/ezuikit-js/-/ezuikit-js-7.7.10-alpha.2.tgz#f58fee14f82d2e1e02be8e9030505e1a2b83cd3d"
4578+
integrity sha512-qQBW1TaLWo3zdIsYLxIvoj7jMBt9Izg5+k8TNf5+1TzZxF7sSm/AntMESbOYvw0G4M8MrH0BH5gS/XNkE6CWgQ==
45794579

45804580
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
45814581
version "3.1.3"

demos/vue-demo/package.json

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,19 @@
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
7+
"dev": "vue-cli-service serve",
78
"build": "vue-cli-service build",
89
"lint": "vue-cli-service lint"
910
},
1011
"dependencies": {
11-
"core-js": "^3.6.4",
12-
"ezuikit-js": "^7.7.6",
13-
"vue": "^2.6.11"
12+
"core-js": "^3.6.5",
13+
"ezuikit-js": "^7.7.10",
14+
"vue": "^2.7"
1415
},
1516
"devDependencies": {
16-
"@vue/cli-plugin-babel": "~4.3.0",
17-
"@vue/cli-plugin-eslint": "~4.3.0",
18-
"@vue/cli-service": "~4.3.0",
19-
"babel-eslint": "^10.1.0",
20-
"eslint": "^6.7.2",
21-
"eslint-plugin-vue": "^6.2.2",
22-
"vue-template-compiler": "^2.6.11"
23-
},
24-
"eslintConfig": {
25-
"root": true,
26-
"env": {
27-
"node": true
28-
},
29-
"extends": [
30-
"plugin:vue/essential",
31-
"eslint:recommended"
32-
],
33-
"parserOptions": {
34-
"parser": "babel-eslint"
35-
},
36-
"rules": {}
17+
"@vue/cli-plugin-babel": "5.0.8",
18+
"@vue/cli-service": "5.0.8",
19+
"vue-template-compiler": "^2.7"
3720
},
3821
"browserslist": [
3922
"> 1%",

demos/vue-demo/src/components/EZUIKitJs.vue

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="hello-ezuikit-js">
3-
<div id="video-container" style="width:600px;height:400px"></div>
3+
<div id="video-container" style="width: 600px; height: 400px"></div>
44
<div>
55
<button v-on:click="stop">stop</button>
66
<button v-on:click="play">play</button>
@@ -29,19 +29,19 @@ export default {
2929
},
3030
mounted: () => {
3131
console.group("mounted 组件挂载完毕状态===============》");
32-
fetch('https://open.ys7.com/jssdk/ezopen/demo/token')
33-
.then(response => response.json())
34-
.then(res => {
32+
fetch("https://open.ys7.com/jssdk/ezopen/demo/token")
33+
.then((response) => response.json())
34+
.then((res) => {
3535
var accessToken = res.data.accessToken;
3636
player = new EZUIKit.EZUIKitPlayer({
37-
id: 'video-container', // 视频容器ID
37+
id: "video-container", // 视频容器ID
3838
accessToken: accessToken,
39-
url: 'ezopen://open.ys7.com/G39444019/1.live',
39+
url: "ezopen://open.ys7.com/G39444019/1.live",
4040
// simple - 极简版; pcLive-pc直播;pcRec-pc回放;mobileLive-移动端直播;mobileRec-移动端回放;security - 安防版;voice-语音版;
4141
//template: 'simple',
42-
plugin: ['talk'], // 加载插件,talk-对讲
42+
plugin: ["talk"], // 加载插件,talk-对讲
4343
width: 600,
44-
height: 400,
44+
height: 400
4545
});
4646
window.player = player;
4747
});
@@ -50,50 +50,52 @@ export default {
5050
play() {
5151
var playPromise = player.play();
5252
playPromise.then((data) => {
53-
console.log("promise 获取 数据", data)
54-
})
53+
console.log("promise 获取 数据", data);
54+
});
5555
},
5656
stop() {
5757
var stopPromise = player.stop();
5858
stopPromise.then((data) => {
59-
console.log("promise 获取 数据", data)
60-
})
59+
console.log("promise 获取 数据", data);
60+
});
6161
},
6262
getOSDTime() {
6363
var getOSDTimePromise = player.getOSDTime();
6464
getOSDTimePromise.then((data) => {
65-
console.log("promise 获取 数据", data)
66-
})
65+
console.log("promise 获取 数据", data);
66+
});
6767
},
6868
capturePicture() {
69-
var capturePicturePromise = player.capturePicture(`${new Date().getTime()}`);
69+
var capturePicturePromise = player.capturePicture(
70+
`${new Date().getTime()}`
71+
);
7072
capturePicturePromise.then((data) => {
71-
console.log("promise 获取 数据", data)
72-
})
73+
console.log("promise 获取 数据", data);
74+
});
7375
},
7476
openSound() {
75-
var openSoundPromise = player.openSound();
77+
var openSoundPromise = player.openSound();
7678
openSoundPromise.then((data) => {
77-
console.log("promise 获取 数据", data)
78-
})
79+
console.log("promise 获取 数据", data);
80+
});
7981
},
8082
closeSound() {
8183
var openSoundPromise = player.closeSound();
8284
openSoundPromise.then((data) => {
83-
console.log("promise 获取 数据", data)
84-
})
85+
console.log("promise 获取 数据", data);
86+
});
8587
},
8688
startSave() {
87-
var startSavePromise = player.startSave(`${new Date().getTime()}`);
89+
var startSavePromise = player.startSave(`${new Date().getTime()}`);
8890
startSavePromise.then((data) => {
89-
console.log("promise 获取 数据", data)
90-
})
91+
console.log("promise 获取 数据", data);
92+
});
9193
},
9294
stopSave() {
9395
var stopSavePromise = player.stopSave();
9496
stopSavePromise.then((data) => {
95-
console.log("promise 获取 数据", data)
96-
})
97+
console.log("promise 获取 数据", data);
98+
});
9799
},
98100
ezopenStartTalk() {
99101
player.startTalk();
@@ -107,8 +109,8 @@ export default {
107109
destroy() {
108110
var destroyPromise = player.destroy();
109111
destroyPromise.then((data) => {
110-
console.log("promise 获取 数据", data)
111-
})
112+
console.log("promise 获取 数据", data);
113+
});
112114
}
113115
}
114116
};

0 commit comments

Comments
 (0)