Skip to content

Commit 745821b

Browse files
committed
Improve preloading
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 parent 4ca3832 commit 745821b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Videos.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
width: width + 'px'
3131
}">
3232
<video ref="video"
33-
:autoplay="active"
33+
:autoplay="active ? true : null"
3434
:playsinline="true"
3535
:poster="livePhotoPath"
3636
:src="davPath"
@@ -139,6 +139,8 @@ export default {
139139
140140
onLoadedMetadata() {
141141
this.updateVideoSize()
142+
// Force any further loading once we have the metadata
143+
this.player.stop()
142144
},
143145
},
144146
}

0 commit comments

Comments
 (0)