• story(input): StoryMetadata
  • Creates a valid StoryMetadata.

    Parameters

    • input: StoryOptions

      Use your IDE suggestions for an enhanced development experience

    Returns StoryMetadata

    Example

    const metadata = story({
    asset: {
    item: 'https://example.com/story.mp4',
    type: MediaVideoMimeType.MP4,
    cover: 'https://example.com/thumbnail.png',
    duration: 123,
    altTag: 'The story of my life',
    },
    });