player
This is the pathfindr player that you can use to stream your recordings.
Documentation
You can find the full documentation for the player and our other products here https://pathfindr.dev/docs.
Quickstart
Install it using npm
npm install '@pathfindr.dev/player'
Create a HTMLElement
<div id="player-container" />
Initialize the player
import Player from '@pathfindr.dev/player';
import '@pathfindr.dev/player/player.css';
const options = {
streaming: 'https://download.atmark-techno.com/sample/bbb/big-buck-bunny-30sec-fullhd.mp4',
download: "https://cdn.vox-cdn.com/thumbor/9j-s_MPUfWM4bWdZfPqxBxGkvlw=/1400x1050/filters:format(jpeg)/cdn.vox-cdn.com/uploads/chorus_asset/file/22312759/rickroll_4k.jpg",
start: 0,
interval: 5,
autoplay: false,
};
const videoPlayer = new Player("#player-container", options);
videoPlayer.on('ready', (event) => {
console.log(event);
});
videoPlayer.on('started', (event) => {
console.log(event);
});
videoPlayer.on('ended', (event) => {
console.log(event);
});
videoPlayer.on('interval', (event) => {
console.log(event);
});