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

This commit is contained in:
648540858 2022-05-13 15:41:50 +08:00
parent 37c61c4fb0
commit 91170a292e
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import java.util.Locale;
/** /**
* 全局时间工具类 * 全局时间工具类
* @author swwheihei * @author lin
*/ */
public class DateUtil { public class DateUtil {

View File

@ -681,7 +681,11 @@ export default {
this.$axios({ this.$axios({
method: 'get', method: 'get',
url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000) url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000)
}).then(function (res) {}); }).then( (res)=> {
setTimeout(()=>{
this.$refs.videoPlayer.play(this.videoUrl)
}, 600)
});
} }
} }