Commit 8e98183e by Tianqing Liu

feat: h5播放器暴露方法

1 parent f69e4e60
......@@ -61,6 +61,11 @@ export default {
created() {
// this.init();
},
mounted() {
window.playWebVideo = this.playWebVideo;
window.stopPlay = this.stopPlay;
window.screenshot = this.screenshot;
},
methods: {
// 时间线改变
videoTimeChange(val) {
......
......@@ -88,10 +88,10 @@ export default {
markTime: [],
isNoBack:true,
maxDay: new Date(),
minDay: new Date(2022,1,1),
ptzControlShow:false,
isCanFastRight:false,
timeColumns:[],
......@@ -200,7 +200,7 @@ export default {
this.isNoBack = this.startMeddleTime == moment().format('YYYY-MM-DD HH:mm:ss')
this.ptzControlShow = false
this.isCanFast()
},
// 时间选择点击
timeSelectShow() {
......@@ -264,7 +264,7 @@ export default {
if(this.showTimeSelectShow){
return false;
}
let startTimeArr = this.startTime.split(':')
let timeColumns = []
let maxHour = 23
......@@ -312,7 +312,7 @@ export default {
this.ptzControlShow = false
this.$forceUpdate()
},
// 云台控制显示
ptzControlChange() {
this.ptzControlShow = !this.ptzControlShow
......@@ -327,7 +327,7 @@ export default {
this.ptzControlType = ''
this.$emit('ptzControlClick','stop')
},
// 快退/快进
fastChangeStartTime(val) {
let newTime = val>0?moment(this.showDay + ' ' + this.startTime).add(val, "seconds").format('YYYY-MM-DD HH:mm:ss'):moment(this.showDay + ' ' + this.startTime).subtract(val*-1, "seconds").format('YYYY-MM-DD HH:mm:ss');
......@@ -372,7 +372,7 @@ export default {
font-size: 15px;
cursor: pointer;
}
}
.operation-module-center{
position: absolute;
......@@ -387,7 +387,7 @@ export default {
.go-back-realtime-btn {
margin-left: 20px;
}
.time-input-box{
width: 110px;
display: inline-flex;
......@@ -430,7 +430,7 @@ export default {
text-align: center!important;
}
}
}
.operation-module-right {
position: relative;
......@@ -485,7 +485,7 @@ export default {
color: #ffffff;
margin-right: 20px;
}
}
/deep/.el-input {
......@@ -519,7 +519,7 @@ export default {
width: 100%;
height: 40px;
position: relative;
}
}
.date-axis{
......@@ -533,7 +533,7 @@ export default {
align-items: center;
font-size: 14px;
color:#fff;
width: 76px;
width: 80px;
.day-select-btn-icon{
margin-left: 2px;
}
......@@ -721,4 +721,4 @@ export default {
/deep/.van-calendar__popup{
height: 64%!important;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!