Commit 4d3f0a8d790afea1a3f577ac07cfea258457ebc2

Authored by 648540858
1 parent 17572032

优化海康国标录像播放的控制

src/main/java/com/genersoft/iot/vmp/utils/DateUtil.java
@@ -14,7 +14,7 @@ import java.util.Locale; @@ -14,7 +14,7 @@ import java.util.Locale;
14 14
15 /** 15 /**
16 * 全局时间工具类 16 * 全局时间工具类
17 - * @author swwheihei 17 + * @author lin
18 */ 18 */
19 public class DateUtil { 19 public class DateUtil {
20 20
web_src/src/components/dialog/devicePlayer.vue
@@ -681,7 +681,11 @@ export default { @@ -681,7 +681,11 @@ export default {
681 this.$axios({ 681 this.$axios({
682 method: 'get', 682 method: 'get',
683 url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000) 683 url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000)
684 - }).then(function (res) {}); 684 + }).then( (res)=> {
  685 + setTimeout(()=>{
  686 + this.$refs.videoPlayer.play(this.videoUrl)
  687 + }, 600)
  688 + });
685 } 689 }
686 690
687 } 691 }