Open swissspidy opened 1 year ago
Working well, except:
- Poster image is not added (back) after converting from image block to video block (upload still happens though)
Some thoughts:
VideoControls
componentuseEffect
to check whether poster upload for the current attachment has finished
subscribe()
somewhere to wait for poster upload to finish, then look up all blocks with that video attachment ID and add the poster if it's still missingTo-do:
add option to generate poster if absent
Videos are the better GIFs, at least when it comes to file types. Animated GIFs should really not be used anymore.
This project automatically converts animated GIFs to an actual video file during upload. The image block, upon receiving the updated media item, transforms into a video block. Note: Right now, that last part (block transformation) is achieved by patching Gutenberg, as there is no other way to do it.
To-do