Skip to main content
Version: 3.3.0

Resources

IReplayResourceType​

Implementation.

import type { IReplayResourceType } from '@picsart/web-replay-sdk';
ValuesDescription
fontFont resources with mime types font/*
photoImage resources with mime types image/jpg, image/jpeg, image/png
svgSVG resource with mime type image/svg+xml
videoVideo resource with mime types video/mp4
audioAudio resource with mime types audio/mpeg
effectAsset consumed by an effect param — an image for face_hide.texture, or a .cube color LUT for lut

IReplayResource​

Implementation.

import type { IReplayResource } from '@picsart/web-replay-sdk';
PropertyTypeRequiredDescription
idUUIDStringyesThe unique identifier for meta information
locationstringyesA web accessible URL that holds the resource
typeIReplayResourceTypeyesThe type of the media resource

IReplayFontResource​

The interface is the same as IReplayResource with predefined font type

Implementation.

import type { IReplayFontResource } from '@picsart/web-replay-sdk';

IReplayPhotoResource​

The interface is the same as IReplayResource with predefined photo type

Implementation.

import type { IReplayPhotoResource } from '@picsart/web-replay-sdk';

IReplaySvgResource​

The interface is the same as IReplayResource with predefined svg type

Implementation.

import type { IReplaySvgResource } from '@picsart/web-replay-sdk';

IReplayVideoResource​

The interface is the same as IReplayResource with predefined video type

Implementation.

import type { IReplayVideoResource } from '@picsart/web-replay-sdk';

IReplayEffectResource​

The interface is the same as IReplayResource with predefined effect type. It references an external asset consumed by an effect parameter — an image (.png/.webp/.jpg) for face_hide's texture, or a .cube color LUT for lut's resource. The consuming effect knows how to use it, so a single effect type covers both.

Implementation.

import type { IReplayEffectResource } from '@picsart/web-replay-sdk';

IReplayAudioResource​

The interface is the same as IReplayResource with predefined audio type

Implementation.

import type { IReplayAudioResource } from '@picsart/web-replay-sdk';