mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
@suite-native/video-assets
This package is responsible for video compression and rendering.
How to add or update icon
-
Put the desired MP4 video in the
assets/rawfolder. -
Rename the source file to follow the camel case convention (e. g. Onboarding Bitcoin.mp4 => onboardingBitcoin.mp4).
-
Install FFmpeg software.
-
Run
yarn generate-videos- This command uses FFmpeg to compress the source videos from therawfolder and places the result in thecompressedfolder. It will also regenerate thesrc/vidoe.tsfile. -
You can use your newly added videos 🎉. Example usage of the
Videocomponent:<Video name="onboardingBitcoin" />