UNPKG

@gotake/gotake-sdk

Version:

SDK for interacting with GoTake blockchain contracts

37 lines 1.14 kB
/** * Video API module for interacting with the backend API */ import { VideoMetadata, VideoStatusInfo } from '../types'; import { VideoUploadConfig } from './types'; /** * Video API client for interacting with backend video services */ export declare class VideoApi { private config; private statusTracker; /** * Create VideoApi instance * @param config API configuration */ constructor(config: VideoUploadConfig); /** * Upload a video to the platform * @param file Video file to upload * @param metadata Video metadata * @returns Promise resolving to video ID */ uploadVideo(file: File, metadata: VideoMetadata): Promise<string>; /** * Get video information from the API * @param videoId Video ID * @returns Promise resolving to video status information */ getVideoInfo(videoId: string): Promise<VideoStatusInfo>; /** * Map API status string to VideoStatus enum * @param apiStatus Status string from API * @returns Mapped VideoStatus */ private mapApiStatusToVideoStatus; } //# sourceMappingURL=videoApi.d.ts.map