Upload Live Thumbnails

Generate presigned upload URLs for live stream thumbnails. Supported thumbnail states are preparing, disconnected, and end.

Body
application/json
  • live_asset_id
    Type: string
    required

    Gumlet live video asset id.

  • statuses
    required

    Thumbnail states to upload. You can send an array or a comma-separated string.

    • Type: array string[] enum

      Thumbnail states to upload. You can send an array or a comma-separated string.

      values
      • preparing
      • disconnected
      • end
Responses
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/video/live/assets/thumbnail/upload
import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});

const liveStreamAsset = await client.liveStreamAssets.upload({
  live_asset_id: '68c406b147f9ad0c0d584ce2',
  statuses: ['preparing', 'disconnected'],
});

console.log(liveStreamAsset);
{
  "message": "Upload URLs issued.",
  "presigned_upload_urls": {
    "preparing": "https://gumlet-live-user-uploads.s3.amazonaws.com/live/67e4ecea403562dbea654269/68c406b147f9ad0c0d584ce2/thumbnail-preparing.png?signature=...",
    "disconnected": "https://gumlet-live-user-uploads.s3.amazonaws.com/live/67e4ecea403562dbea654269/68c406b147f9ad0c0d584ce2/thumbnail-disconnected.png?signature=..."
  }
}