Use your IDE suggestions for an enhanced development experience
Single video:
const metadata = video({
title: 'Great video!',
video: {
item: 'https://example.com/video.mp4',
type: MediaVideoMimeType.MP4,
cover: 'https://example.com/thumbnail.png',
duration: 123,
altTag: 'The video of my life',
license: MetadataLicenseType.CCO,
},
content: `
In this video I will show you how to make a great video.
And maybe I will show you how to make a great video about making a great video.
`
});
Video with attachments:
const metadata = video({
title: 'Great video!',
video: {
item: 'https://example.com/video.mp4',
type: MediaVideoMimeType.MP4,
cover: 'https://example.com/thumbnail.png',
duration: 123,
altTag: 'The video of my life',
license: MetadataLicenseType.CCO,
},
attachments: [
{
item: 'https://example.com/soundtrack.mp3',
type: MediaAudioMimeType.MP3,
license: MetadataLicenseType.CCO,
}
]
});
Creates a valid VideoMetadata.