Skip to content

Commit 9822eed

Browse files
committed
debug
1 parent 5c77c32 commit 9822eed

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-video-player",
3-
"version": "3.0.8",
3+
"version": "3.0.9",
44
"description": "Video Player component for Vue2",
55
"main": "index.js",
66
"scripts": {

player.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@
108108
109109
this.on('loadeddata', function() {
110110
this.muted(videoOptions.muted)
111-
this.currentTime(videoOptions.start)
111+
if (!!videoOptions.start) {
112+
this.currentTime(videoOptions.start)
113+
}
112114
emitPlayerState('loadeddata', true)
113115
})
114116

ssr.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ var videoPlayer = {
8989

9090
this.on('loadeddata', function() {
9191
this.muted(options.muted)
92-
this.currentTime(options.start)
92+
if (!!videoOptions.start) {
93+
this.currentTime(videoOptions.start)
94+
}
9395
emitPlayerState('loadeddata', true)
9496
})
9597

0 commit comments

Comments
 (0)