ScreenshotOne icon

ScreenshotOne

Render PDFs, screenshots, scrolling screenshots, and short videos using ScreenshotOne

Record Short Video

AI-generated

Overview

This node uses the ScreenshotOne API to record short videos from a specified source input, which can be a URL, HTML, or Markdown content. It is useful for generating short video clips of web content or rendered HTML/Markdown for purposes such as previews, demonstrations, or content sharing. For example, a user can input a URL of a webpage and record a short video of that page's rendering, or input custom HTML/Markdown to create a video representation.

Use Case Examples

  1. Recording a 5-second MP4 video of a webpage by providing its URL.
  2. Creating a GIF short video from custom HTML content for social media sharing.

Properties

Name Meaning
Source The type of input to render, which can be URL, HTML, or Markdown.
URL The URL to render when the source is set to URL.
HTML The HTML content to render when the source is set to HTML.
Markdown The Markdown content to render when the source is set to Markdown.
Response Type Determines the format of the rendering result, such as JSON for URL, binary base64 string, or empty response.
Format The video format of the short video output, either MP4 or GIF.
Duration The duration of the video in seconds.
Cache Whether to enable or disable caching for this request.
Cache TTL (Seconds) Time to live for cache in seconds, with a minimum of 14400 seconds.
Cache Key Custom cache key for this request.

Output

JSON

  • json - The JSON response containing the rendering result, such as the URL or metadata of the recorded short video.

Dependencies

  • ScreenshotOne API accessed via an API key credential named 'screenshotOneCredentialsApi'

Troubleshooting

  • If the source input type is unsupported, the node throws an error indicating the unsupported source.
  • Errors related to API authentication or request failures will throw API errors; ensure the ScreenshotOne API credentials are correctly configured.
  • If caching is enabled but the cache key or TTL is misconfigured, the request might not cache properly or might return stale data.

Links

Discussion