Viewing NFT images on Oasis Explorer is amazing, but it only supports images. Videos (e.g. mp4 files) are becoming used more frequently but no preview is shown
Hey @CedarMist @buberdds ,
Please have a look over the pull request. I am attaching the screenshots of the updated outcome of this changes for Video NFTs preview.
Is there an existing issue for this?
SUMMARY
Viewing NFT images on Oasis Explorer is amazing, but it only supports images. Videos (e.g. mp4 files) are becoming used more frequently but no preview is shown
DESCRIPTION
If we look at this example NFT:
It shows 'No preview available'.
This is because the frontend will only show previews for images, this is implemented at:
https://github.com/oasisprotocol/explorer/blob/08e3a08c947d695173290af552d0201263927765/src/app/pages/NFTInstanceDashboardPage/InstanceImageCard.tsx#L104