Skip to content

Commit

Permalink
Merge pull request #1240 from nextcloud/backport/1228/stable24
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed May 10, 2022
2 parents 6ae2dab + 3d5136d commit ce48a16
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 ce48a16

Please sign in to comment.