GithubHelp home page GithubHelp logo

pearlphoenix0106 / videojs-framebyframe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from douglassllc/videojs-framebyframe

0.0 0.0 0.0 36 KB

frame-by-frame stepping plugin for use with video.js

License: GNU General Public License v3.0

JavaScript 94.99% CSS 5.01%

videojs-framebyframe's Introduction

videojs-framebyframe

npm version License

Allows users to step frame-by-frame through a video.

This has to make an unfortunate assumption about framerate, but it should be "ok" for general use. If you can run framerate detection on the server side, this plugin works perfectly for you.

Updates included in this Fork

  • Updated code causing warnings for deprecated methods .plugin -> .registerPlugin
  • Appends buttons after playToggle
  • Added .css to package

Installation

$ npm install @douglassllc/videojs-framebyframe

Usage

import 'videojs-framebyframe/videojs.framebyframe.js'
import 'videojs-framebyframe/videojs.framebyframe.css'

let options: {
  plugins: {
    framebyframe: {
      fps: 30,
      steps: [
        { text: '< 1f', step: -1 },
        { text: '1f >', step: 1 }
      ]
    }
  }
}

let player = videojs('my-video', options)

Framerate Issues

We have no easy way to calculate framerate in Javascript, so we make a guess. If you're serving the video yourself or otherwise can calculate the FPS value, then you should use that and supply it to your videojs instance.

Original Contributors

  • Helena Rasche (@erasche)
  • Miguel Grinberg (@miguelgrinberg)

License

Licensed under MIT

videojs-framebyframe's People

Contributors

hexylena avatar douglassllc avatar miguelgrinberg avatar pearlphoenix0106 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.