Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Improve preloading
Signed-off-by: John Molakvoæ <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
skjnldsv committed May 3, 2022
commit 3d5136db3d55de69fe5c510c3ce5b696dc619424
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