Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No thumbnail of video files #854

Closed
Valdnet opened this issue Aug 20, 2021 · 9 comments
Closed

No thumbnail of video files #854

Valdnet opened this issue Aug 20, 2021 · 9 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working high High priority regression Regression of a previous working feature

Comments

@Valdnet
Copy link
Contributor

Valdnet commented Aug 20, 2021

Describe the bug
Video thumbnails (mp4) are not displayed when viewing photos or videos.

Expected behavior
Display the standard thumbnail of video files (mp4) or the thumbnail of the video file frame.

Screenshots
obraz

Apps:
Nextcloud 22.1.0
Photos 1.4.0
Firefox 91.0.1

@Valdnet Valdnet added bug Something isn't working 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Aug 20, 2021
@PVince81
Copy link
Member

confirmed happening also on Nextcloud 22.1.1 with the bundled photos app:
image

@PVince81 PVince81 added 1. to develop Accepted and waiting to be taken care of regression Regression of a previous working feature high High priority and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Aug 27, 2021
@PVince81
Copy link
Member

Very strange, on stable22 I was able to have the thumbnails generated.

And the error about the missing "empty.svg" only happens when switching sections in the left sidebar.
I suspect that the latter might be a webpack issue where the SVG is perhaps not compiled in.

@PVince81
Copy link
Member

ok, on my local setup I have the "Movie" preview provider installed, I'll retry with it disabled so we should see placeholders for the videos I guess

@PVince81
Copy link
Member

alright, bug confirmed when the "Movie" provider is disabled:

image

on stable22

  • server stable22 389123ac3c17a09759ef78571417f4819fc16884
  • photos stable22 4142e5a

@PVince81
Copy link
Member

I managed to make the error disappear by replacing https://github.com/nextcloud/photos/blob/stable22/src/components/EmptyContent.vue#L102 with

const illustration = await import('../assets/Illustrations/empty.svg')

I suspect it might not be possible to put a variable name when importing like this, but not sure.
Maybe someone more familiar with webpack chunks can have a look.

Sadly this doesn't make the placeholder thumbnail appear, the web UI still looks like above screenshot.

Also I checked those SVGs and the "empty.svg" one seems to be for a completely empty list, not a single item's placeholder.
So probably something else is broken here.

@skjnldsv can you have a look ?

@skjnldsv
Copy link
Member

I suspect it might not be possible to put a variable name when importing like this, but not sure.

Yes it is, webpack understands it and split chunks accordingly

@skjnldsv
Copy link
Member

#842

@skjnldsv
Copy link
Member

Completely forgot about this, I forgot to backport.

@PVince81
Copy link
Member

the backport was done here: #876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working high High priority regression Regression of a previous working feature
Projects
None yet
Development

No branches or pull requests

3 participants