ConvertVideoToGif: This is where the actual work is done, we write the video file to ffmpeg’s filesystem on line 23.ComponentDidMount & loadFFmpeg: Here, we wait until our react component mounts and then load in the Web Assembly code for ffmpeg, then we set ready to true to indicate we are ready to convert video.Constructor: We create some state items to keep track of the current app state.Line 4: We create an ffmpeg instance and set logging to true so we can see logs in our console.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |