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

video-player-cipherschools

v1.1.59

Published

A video player with all requirements.

Downloads

17

Readme

[Video Player CipherSchools]

A player with all required plugins with video.js

Maintenance Status: Stable

Installation

Install video-player-cipherschools via npm (preferred):

$ npm install video-player-cipherschools

Basic Usage

import { VideoScreen, Videoattributes } from "video-player-cipherschools";
var videoList = [
    {
      sources: [
        {
          src:
            "https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8",
          type: "application/x-mpegURL",
        },
      ],
      poster: "http://media.w3.org/2010/05/bunny/poster.png",
    }
]

<VideoScreen
    autoplay = false,   //default
    playbackRates = [2, 1.75, 1.5, 1.25, 1, 0.75, 0.5, 0.25],  //default
    responsive = false,  //default
    fluid = false,  //default
    controls = true,    //default
    aspectRatio = "16:9",   //default
    videoList={videoList}   //required
    className="vjs-matrix"  //required if you want some changes default is 'vjs-matrix'
    hotKeys = {
        default: true,   //default
        seekStep: 30    //skip on right and left arrow key 30 sec is default
    },
    watermark = {
        default: false, //default
        image: {url}    //[required]
        fadeTime: 3,    //time to fade in second [default is 3 second]
        position: "top-right",  //"top-left", "bottom-left", "bottom-right", "top-right(default)"
        url: {url}, //on click navigation
    }
    qualitySelector = {
        default: true,  //default
        qualityText: undefined,     //if you want text instead of icon so true it
        icon: "string" //vjs-string
    }
/>

It also returns a function which have all the player property

const Player = VideoAttributes();

returns object which currently have getCurrentPlayer() which returns video.js] player

from where you can use do any operation on video

e.g

const enter = () => {
  const Player = VideoAttributes();
  const player = Player.getCurrentPlayer();
  player.requestPictureInPicture();
};

const exit = () => {
  const Player = VideoAttributes();
  const player = Player.getCurrentPlayer();
  player.exitPictureInPicture();
};

These function cput video in PIP mode and exit from PIP mode.

Some styling in css

.vjs-matrix .vjs-big-play-button {
  border-color: #2c3d4f;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

this changes the play button. you can grab css from inspect element.

License

Copyright (c) a_phenomenal, Inc.