Skip to content

Commit 9f9a995

Browse files
authored
Merge pull request #1228 from nextcloud/feat/improve-preloading
2 parents 518ba2e + 66bb78a commit 9f9a995

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

js/viewer-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Videos.vue

Lines changed: 5 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,10 @@ export default {
139139
140140
onLoadedMetadata() {
141141
this.updateVideoSize()
142+
// Force any further loading once we have the metadata
143+
if (!this.active) {
144+
this.player.stop()
145+
}
142146
},
143147
},
144148
}

0 commit comments

Comments
 (0)