dever 5 years ago
parent
commit
5efae64a82
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lib/dever/components/video.nvue

+ 1 - 3
lib/dever/components/video.nvue

@@ -19,7 +19,6 @@
 				:webkit-playsinline="true"
 				x-webkit-airplay="allow"
 				x5-video-player-type="h5-page"
-				:initial-time="startTime"
 				:page-gesture="false"
 				>
 			</video>
@@ -90,7 +89,6 @@ export default {
 	data() {
 		return {
 			objectFit : 'fill',
-			startTime : 0,
 			play : false,
 			poster : true,
 			video : false,
@@ -108,12 +106,12 @@ export default {
 		start : function()  {
 			this.poster = false;
 			this.video.play();
+			this.video.currentTime = 0 + '';
 			this.play = true;
 		},
 		stop : function(state) {
 			var self = this;
 			//this.poster = true;
-			this.startTime = 0;
 			if (state) {
 				self.video.pause();
 			} else {