소스 검색

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

648540858 3 년 전
부모
커밋
4d3f0a8d79
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/main/java/com/genersoft/iot/vmp/utils/DateUtil.java
  2. 5 1
      web_src/src/components/dialog/devicePlayer.vue

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/utils/DateUtil.java

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

+ 5 - 1
web_src/src/components/dialog/devicePlayer.vue

@@ -681,7 +681,11 @@ export default {
           this.$axios({
             method: 'get',
             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)
+          });
         }
 
     }