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 committed May 3, 2022
1 parent 6ae2dab commit 3d5136d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/components/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
width: width + 'px'
}">
<video ref="video"
:autoplay="active"
:autoplay="active ? true : null"
:playsinline="true"
:poster="livePhotoPath"
:src="davPath"
Expand Down Expand Up @@ -140,6 +140,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 3d5136d

Please sign in to comment.