<template>
|
<div style="display: flex; flex-direction: column; width: 100%">
|
<div style="width: 100%;display: flex;justify-content: center;">
|
<div class="video-container">
|
<easy-player :video-url="url"></easy-player>
|
</div>
|
</div>
|
<div style="margin-top: 15px;display: flex;justify-content: center; width: 100%;">
|
<controller-video :index-code="indexCode"/>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import EasyPlayer from '@easydarwin/easyplayer'
|
import ControllerVideo from '@/components/ControllerVideoWeb'
|
export default {
|
name: 'CameraPTZ1',
|
components: { EasyPlayer, ControllerVideo },
|
data () {
|
return {
|
indexCode: '4',
|
url: 'https://hkpt.xwshtxq.com:1443/mls/openUrl/URyoQJa/live.m3u8?params=eyJpbmRleENvZGUiOiI4OWE1MzkxOGQ5YzE0MTg0OTQ1OWRmMTU0Zjk5MjBjNSIsIm5ldFpvbmVDb2RlIjoiNTMiLCJwcm90b2NvbCI6Imhsc3MiLCJ1c2VyZWRpcmVjdCI6dHJ1ZSwidXNlcklkIjoiYWRtaW4ifQ=='
|
}
|
},
|
methods: {
|
}
|
}
|
</script>
|
|
<style scoped>
|
/* 针对web的样式 */
|
.video-container {
|
height: 370px;
|
width: 700px;
|
}
|
/* 针对手机屏幕的样式 */
|
@media (max-width: 768px) {
|
.video-container {
|
height: 30vh;
|
width: 90vw;
|
}
|
}
|
</style>
|