Browse Source

雷达录像跳过前两秒

develop
lau572 4 months ago
parent
commit
9ebf442fe3
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue

7
ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue

@ -54,9 +54,16 @@ export default {
methods: {
playVideo() {
this.player?.destroy();
debugger
if (this.videoType == 'flv') {
// const player = await openLiveVideo(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum })
this.player = new HttpLivePlayer(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum, rangeIndex: this.rangeIndex });
} else if (this.videoType == 'mp4'){
//
if (this.url.indexOf('/radar/')!== -1){
this.$refs.videoContainerRef.currentTime = 2;
video.pause(); //
}
}
}
}

Loading…
Cancel
Save