Skip to content

Commit

Permalink
[player] fix thumbnail dimension in video progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Oct 12, 2023
1 parent 74a5305 commit 38d5a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/components/pages/playlists/PlaylistPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1316,10 +1316,7 @@ export default {
},
onVideoLoaded() {
this.movieDimensions = {
width: this.currentPreview.width,
height: this.currentPreview.height
}
this.movieDimensions = this.$refs['raw-player'].getNaturalDimensions()
},
onPreviewChanged(entity, previewFile) {
Expand Down
5 changes: 1 addition & 4 deletions src/components/previews/PreviewPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1638,10 +1638,7 @@ export default {
onVideoLoaded() {
if (this.isMovie) {
this.movieDimensions = {
width: this.currentPreview.width,
height: this.currentPreview.height
}
this.movieDimensions = this.previewViewer.getNaturalDimensions()
}
},
Expand Down

0 comments on commit 38d5a8b

Please sign in to comment.