I need to upload video assets to candymachine but I didn't find anything related to it in metaplex docs. Please can anyone assist with it?
1 Answer
I'll explain how to do it with sugar, since this is the current recommended tool for creating candy machines (CM). I'll also assume that you are already aware how to create a CM with images in it and how to properly prepare the assets for it and that you are using MP4 video files.
Even for video NFTs you should include a PNG image into the asset folder and json to have a placeholder image for wallets / dapps that are unable to render video files.
In addition to the process of creating a CM containing images you'll have to do two steps:
- Like shown in the token metadata standard add a animation URL to your json file:
{
...
"image": "0.png",
"animation_url": "0.mp4",
...
}
- Include your mp4 video files into the same asset folder where you also have the PNG and JSON files.
And that's it!