Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pathfindr.dev/player

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pathfindr.dev/player

This is the pathfindr player that you can use to stream your recordings.

  • 1.0.4
  • npm
  • Socket score

Version published
Weekly downloads
77
decreased by-42.54%
Maintainers
2
Weekly downloads
 
Created
Source

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'; // Player theme

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);
});

FAQs

Package last updated on 13 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc