• Creates a valid VideoMetadata.

    Parameters

    • input: VideoOptions

      Use your IDE suggestions for an enhanced development experience

    Returns VideoMetadata

    Example

    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.
    `
    });

    Example

    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,
    }
    ]
    });