This is a work-in-progress! Come back mid of June and we will be ready to serve you :)
recorder
This is the pathfindr recorderSDK that you can use to make recordings of the screen, camera or both.
Documentation
You can find the full documentation for the recorder and our other products here https://pathfindr.dev/docs.
Quickstart
Install it using npm
npm install '@pathfindr.dev/recorder'
Create a HTMLElement
<div id="recorder-container" />
Initialize the recorder
import Recorder from '@pathfindr.dev/recorder';
import '@pathfindr.dev/recorder/large.css';
const element = document.getElementById('recorder-container');
const recorder = new Recorder({
target: element,
props: {
type: 'camera',
accessToken: '81cca05e-0ebe-4819-9b13-5e92271ade59',
externalUserId: 'user-id-512',
language: 'da',
showProgress: true,
}
});
recorder.$on('progress', (event) => {
const progress = event.detail;
console.log(progress);
});
recorder.$on('recordingchange', (event) => {
const recordingReady = event.detail;
console.log(recordingReady);
});
recorder.$on('statechange', (event) => {
const state = event.detail;
console.log(state);
});
const uuid = await recorder.upload();