Skip to content

Commit

Permalink
Improve preloading
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and backportbot-nextcloud[bot] committed May 3, 2022
1 parent cc30198 commit fbd2d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
width: width + 'px'
}">
<video ref="video"
:autoplay="active"
:autoplay="active ? true : null"
:playsinline="true"
:poster="livePhotoPath"
:src="davPath"
Expand Down Expand Up @@ -139,6 +139,10 @@ export default {

onLoadedMetadata() {
this.updateVideoSize()
// Force any further loading once we have the metadata
if (!this.active) {
this.player.stop()
}
},
},
}
Expand Down

0 comments on commit fbd2d9e

Please sign in to comment.