Right now we use gifs for some of our local files which causes somewhat poor load performance compared to formats like mp4/webm/ogg.
I already created a Video component that accepts local types and has a parameter for all 3 paths. We simply just need to go through and update the local gifs we use to be in those 3 files types.
Also, if the Docusarus branch isn't merged in before someone works on this, please branch off of that branch instead of main as we will be migrating to use that branch soon.
Right now we use gifs for some of our local files which causes somewhat poor load performance compared to formats like mp4/webm/ogg.
I already created a
Video
component that acceptslocal
types and has a parameter for all 3 paths. We simply just need to go through and update the local gifs we use to be in those 3 files types.A good example of the
Video
component being used already is the video at the top of this page: https://pieces-docs.vercel.app/learn/features/pieces-copilotHere is an example of how to use the video component:
Ensure that you have both
webm
andmp4
files added. You can use the ffmpeg cli to take the gif and convert it towebm
andmp4
like this:GIF to MP4:
GIF to WEBM:
Also, if the
Docusarus
branch isn't merged in before someone works on this, please branch off of that branch instead ofmain
as we will be migrating to use that branch soon.