|
@@ -19,7 +19,7 @@
|
|
|
:webkit-playsinline="true"
|
|
|
x-webkit-airplay="allow"
|
|
|
x5-video-player-type="h5-page"
|
|
|
- width="100%" height="100%"
|
|
|
+ :initial-time="startTime"
|
|
|
>
|
|
|
</video>
|
|
|
</view>
|
|
@@ -88,6 +88,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ startTime : 0,
|
|
|
play : false,
|
|
|
poster : true,
|
|
|
video : false,
|
|
@@ -108,7 +109,13 @@ export default {
|
|
|
this.play = true;
|
|
|
},
|
|
|
stop : function() {
|
|
|
- this.video.pause();
|
|
|
+ var self = this;
|
|
|
+ //this.poster = true;
|
|
|
+ this.startTime = 0;
|
|
|
+ setTimeout(function() {
|
|
|
+ self.video.pause();
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.play = false;
|
|
|
},
|
|
|
open : function() {
|