File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-video-player" ,
3
- "version" : " 3.0.8 " ,
3
+ "version" : " 3.0.9 " ,
4
4
"description" : " Video Player component for Vue2" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 108
108
109
109
this .on (' loadeddata' , function () {
110
110
this .muted (videoOptions .muted )
111
- this .currentTime (videoOptions .start )
111
+ if (!! videoOptions .start ) {
112
+ this .currentTime (videoOptions .start )
113
+ }
112
114
emitPlayerState (' loadeddata' , true )
113
115
})
114
116
Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ var videoPlayer = {
89
89
90
90
this . on ( 'loadeddata' , function ( ) {
91
91
this . muted ( options . muted )
92
- this . currentTime ( options . start )
92
+ if ( ! ! videoOptions . start ) {
93
+ this . currentTime ( videoOptions . start )
94
+ }
93
95
emitPlayerState ( 'loadeddata' , true )
94
96
} )
95
97
You can’t perform that action at this time.
0 commit comments