Skip to main content
Version: 3.0.0

Main

createReplayPackage

Implementation.

import { createReplayPackage } from '@picsart/web-replay-sdk/main';
function createReplayPackage(replay: IReplay): Promise<File>
ParametersTypeRequiredDescription
replayIReplayyesThe replay memory object that needs to be packed

The method received a replay structure and created a file from the that replay. The method works asynchronously.

extractReplayPackage

Implementation.

import { extractReplayPackage } from '@picsart/web-replay-sdk/main';
function extractReplayPackage(file: File): Promise<IReplay>
ParametersTypeRequiredDescription
fileFileyesThe actual replay file

The method received a replay file and unpacks it to a replay structure. The method works asynchronously.