Skip to content

Commit ce48a16

Browse files
authored
Merge pull request #1240 from nextcloud/backport/1228/stable24
2 parents 6ae2dab + 3d5136d commit ce48a16

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

js/viewer-main.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Videos.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
width: width + 'px'
3232
}">
3333
<video ref="video"
34-
:autoplay="active"
34+
:autoplay="active ? true : null"
3535
:playsinline="true"
3636
:poster="livePhotoPath"
3737
:src="davPath"
@@ -140,6 +140,10 @@ export default {
140140

141141
onLoadedMetadata() {
142142
this.updateVideoSize()
143+
// Force any further loading once we have the metadata
144+
if (!this.active) {
145+
this.player.stop()
146+
}
143147
},
144148
},
145149
}

0 commit comments

Comments
 (0)