npm install ezuikit-js
极简使用方式参见App.vue,下面贴出相关代码:
<template>
<div id="app">
<ezPlayerVue v-bind="liveParam" />
</div>
</template>
<script>
import ezPlayerVue from './components/ez-player.vue';
export default {
name: "App",
components: {
ezPlayerVue,
},
data() {
return {
liveParam: {
id: 1,
// 高空全景摄像机萤石sdk使用的accessToken
token:
"xxx",
// 高空全景摄像机萤石sdk直播地址
url: "ezopen://open.ys7.com/F11575776/1.live",
},
};
},
};
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
width: 800px;
height: 450px;
}
</style>
npm install
npm run serve
npm run build
npm run lint