npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chapterme/interactive-player

v0.0.6

Published

ChapterMe's interactive player is a powerful and versatile package that enhances the functionality of existing video players. With ChapterMe Interactive, you can create engaging and immersive experiences for your users by adding an interactive layer on to

Downloads

3

Readme

ChapterMe Interactive


Installation

To install ChapterMe's interactive player, you can use npm or yarn. Open your terminal and run the following command:

Using npm:

npm i @chapterme/interactive-player

Using yarn:

yarn add @chapterme/interactive-player


Vue.js

Usage

To use the interactive player in your Vue.js project, follow these steps:

  1. Import the ChapterMe player component in your Vue component:
<script>
import ChaptermePlayer from '@chapterme/interactive-player/vue/videojs.vue';

export default {
  components: {
    ChaptermePlayer
  }
}
</script>
  1. Add the player component in your template:
<template>
  <div>
    <!-- Your existing HTML code here -->
    <div id="video-container"> <!-- give some height and width to this div -->
      <ChaptermePlayer video-id="data-video-id" account-id="data-account-id" />
    </div>
  </div>
</template>

Note - Make sure to replace data-video-id and data-account-id with the actual values for your video id and account id.

Example code

Here's an example of how you can integrate the interactive player in your Vue.js project:

<template>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <div id="video-container"> <!-- give some height and width to this div --> 
    <ChaptermePlayer  video-id="xxxxxxxx"  account-id="xxxxxxxx" />
  </div>
</template>

<script>
import ChaptermePlayer from '@chapterme/interactive-player/vue/videojs.vue';

export default {
  components: {
    ChaptermePlayer
  }
}
</script>


<style scoped>
#video-container {
  height: 450px;
  width: 600px;
}
</style>