Skip to content

Commit 28a7490

Browse files
committed
demo: update [email protected]
1 parent 17db6aa commit 28a7490

File tree

3 files changed

+159
-14
lines changed

3 files changed

+159
-14
lines changed

demos/vue-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"core-js": "^3.6.5",
13-
"ezuikit-js": "^8.1.1",
13+
"ezuikit-js": "^8.1.2",
1414
"vue": "^2.7"
1515
},
1616
"devDependencies": {

demos/vue-demo/pnpm-lock.yaml

Lines changed: 151 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="hello-ezuikit-js">
3-
<div id="video-container" style="width: 600px; height: 400px"></div>
3+
<div>
4+
<div id="video-container" style="width: 600px; height: 400px"></div>
5+
</div>
46
<div>
57
<button v-on:click="init">init</button>
68
<button v-on:click="stop">stop</button>
@@ -45,9 +47,8 @@ export default {
4547
// });
4648
player = new EZUIKit.EZUIKitPlayer({
4749
id: "video-container", // 视频容器ID
48-
accessToken:
49-
"at.1gskp9sk9b8pol288qw4f0ladj6ow00a-2obk8zrvgd-0icd73x",
50-
url: "ezopen://open.ys7.com/BA7248908/1.hd.live",
50+
accessToken: "at.1gskp9sk9b8pol288qw4f0ladj6ow00a-2obk8zrvgd-0icd73x",
51+
url: "ezopen://open.ys7.com/BC7900686/1.hd.live",
5152
// simple: 极简版; pcLive: pc直播; pcRec: pc回放; mobileLive: 移动端直播; mobileRec: 移动端回放;security: 安防版; voice: 语音版;
5253
template: "pcLive",
5354
// plugin: ["talk"], // 加载插件,talk-对讲
@@ -62,11 +63,10 @@ export default {
6263
// https://open.ys7.com/help/1772?h=domain
6364
// domain默认是 https://open.ys7.com, 如果是私有化部署或海外的环境,请配置对应的domain
6465
// The default domain is https://open.ys7.com If it is a private deployment or overseas (outside of China) environment, please configure the corresponding domain
65-
domain: "https://open.ys7.com"
66-
}
66+
domain: "https://open.ys7.com",
67+
},
6768
});
6869
window.player = player;
69-
7070
},
7171
play() {
7272
var playPromise = player.play();

0 commit comments

Comments
 (0)