Resources
IReplayResourceType
- Web
- Android
- IOS
import type { IReplayResourceType } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.enums.ResourceType
import com.picsart.media.primitives.enums.ResourceType
| Values | Description |
|---|---|
font | Font resources with mime types font/* |
photo | Image resources with mime types image/jpg, image/jpeg, image/png |
svg | SVG resource with mime type image/svg+xml |
video | Video resource with mime types video/mp4 |
audio | Audio resource with mime types audio/mpeg |
IReplayResource
- Web
- Android
- IOS
import type { IReplayResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.Resource
| Property | Type | Required | Description |
|---|---|---|---|
| id | UUIDString | yes | The unique identifier for meta information |
| location | string | yes | A web accessible URL that holds the resource |
| type | IReplayResourceType | yes | The type of the media resource |
IReplayFontResource
The interface is the same as IReplayResource with predefined font type
- Web
- Android
- IOS
import type { IReplayFontResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.FontResource
IReplayPhotoResource
The interface is the same as IReplayResource with predefined photo type
- Web
- Android
- IOS
import type { IReplayPhotoResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.PhotoResource
IReplaySvgResource
The interface is the same as IReplayResource with predefined svg type
- Web
- Android
- IOS
import type { IReplaySvgResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.SVGResource
IReplayVideoResource
The interface is the same as IReplayResource with predefined video type
- Web
- Android
- IOS
import type { IReplayVideoResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.VideoResource
IReplayAudioResource
The interface is the same as IReplayResource with predefined audio type
- Web
- Android
- IOS
import type { IReplayAudioResource } from '@picsart/web-replay-sdk';
import com.picsart.media.primitives.resource.AudioResource