Skip to content

Commit 5e353d9

Browse files
authored
Merge pull request #1237 from nextcloud/revert-1236-revert-1231-backport/1228/stable24
2 parents 9eeaeff + 1f09e8c commit 5e353d9

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

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)