| | |
| | | const playerData = ref([]) |
| | | const showFullScreen = ref(false) |
| | | const fullIndex = ref() |
| | | let timer = null |
| | | |
| | | // 全屏弹窗 |
| | | const handleFullScreen = (index) => { |
| | |
| | | getFlowVideoData({pointId: id, pointName: searchVal.value}).then(async res => { |
| | | playerData.value = res.data |
| | | }) |
| | | |
| | | if(timer) clearTimeout(timer) |
| | | |
| | | timer = setInterval(() => { |
| | | getFlowVideoData({pointId: id, pointName: searchVal.value}).then(async res => { |
| | | playerData.value = res.data |
| | | }) |
| | | }, 10000) |
| | | } |
| | | |
| | | |
| | |
| | | <div class="item" v-for="(item, index) in playerData" :key="index"> |
| | | <div class="title">{{ item.pointName }}</div> |
| | | <div class="item-video" :id="`player${index}`"> |
| | | <VideoPlayer :item="item" :autoPlay="false" /> |
| | | <VideoPlayer :item="item" :autoPlay="true" /> |
| | | </div> |
| | | <div class="info"> |
| | | <div class="info-list"> |