Generate thumbnails for showcase materials #36

Open
opened 4 months ago by MartinFouilleul · 2 comments

The previews for the videos in the community showcase panel appear black on Safari 13.1. (webm support is flaky in old versions of Safari, but mp4 previews also appear black)

The previews for the videos in the community showcase panel appear black on Safari 13.1. (webm support is flaky in old versions of Safari, but mp4 previews also appear black)
Owner

The video previews are jank and need to be replaced with a proper thumbnail thing. They're literally just <video> tags with some attributes set so they don't load more than the initial thumbnail. Chrome and Firefox display the first frame of the video when you do this. Unfortunately Safari does not. (I knew this was the case on mobile, but apparently this is also true on desktop.)

What we should actually be doing is extracting the first frame of the video using ffmpeg or whatever, and saving that as a separate linked asset.

The video previews are jank and need to be replaced with a proper thumbnail thing. They're literally just `<video>` tags with some attributes set so they don't load more than the initial thumbnail. Chrome and Firefox display the first frame of the video when you do this. Unfortunately Safari does not. (I knew this was the case on mobile, but apparently this is also true on desktop.) What we should _actually_ be doing is extracting the first frame of the video using ffmpeg or whatever, and saving that as a separate linked asset.
bvisness added this to the Jam 2022 milestone 3 months ago
bvisness changed title from Community showcase video previews don't work on Safari 13.1 to Generate thumbnails for showcase materials 1 month ago
Owner

Turns out our issues extend beyond video. The showcase right now is loading a GIF that is a whopping 25MB. So we'll need to extract the first frame there too.

Turns out our issues extend beyond video. The showcase right now is loading a GIF that is a whopping 25MB. So we'll need to extract the first frame there too.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: hmn/hmn#36
Loading…
There is no content yet.