UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

26 lines 876 B
/** * Internal dependencies */ import type { ResourceType } from './resourceType'; import type { SequenceResource } from './sequenceResource'; import type { ResourceId } from './resource'; export interface TrimData { /** ID of the original video. */ original: ResourceId; /** Time stamp of start time of new video. Example '00:01:02.345'. */ start: string; /** Time stamp of end time of new video. Example '00:01:02.345'. */ end: string; } export interface VideoResource extends SequenceResource { type: ResourceType.Video; /** Length in seconds. */ length: number; /** The formatted length, e.g. "01:17". */ lengthFormatted: string; /** Whether the resource is muted. */ isMuted?: boolean; /** Information about trimmed video and its original. */ trimData?: TrimData; } //# sourceMappingURL=videoResource.d.ts.map