Does Discourse automatically generate video thumbnails for uploaded videos?
By default, Discourse does not automatically generate video thumbnails for uploaded videos. However, the Insert Video (theme component) plugin does generate video thumbnails automatically. Is there a way to enable Discourse to automatically generate video thumbnails for uploaded videos by default?
Note: The Insert Video (theme component) plugin currently only works with MP4 videos. Support for mov, ogg, webm videos is needed.
This was the case before, but the preloading of video metadata has been disabled in a recent PR.
Preloading just metadata is not always respected by browsers, and
sometimes the whole video will be downloaded. This switches to using a
placeholder image for the video and only loads the video when the play
button is clicked.
It is possible to see corresponding reports on metadata loading the whole video and what could else lead to this PR to go into production? It seems like this be better to be optional, toggled by discourse instance’s admins, if they believe it’s needed. Now we have all the videos uploaded (a lot of media uploaded to our forum) as black boxes, which ruins the user experience. We had never had any issues that are described in the PR you referenced, and everything was fine.
It puts back the old HTML. I did not test it extensively, but it seems to work fine.
I believe the developers have a valid reason to remove this by default as it could affect the user experience. However, providing an option would be reasonable too.(well, a theme component is an option ).