GithubHelp home page GithubHelp logo

amtins / cassettator.js Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 921 KB

A collection of video.js components and plugins

Home Page: https://amtins.github.io/cassettator.js/

License: MIT License

JavaScript 86.19% CSS 6.89% HTML 6.92%
markers video video-player

cassettator.js's Introduction

Cassettator

A collection of video.js components and plugins in a single repo.

โš ๏ธ Still work in progress.

Table of Contents

Installation

Install cassettator.js via npm:

npm install cassettator.js

Usage

import videojs from 'video.js';
import 'cassettator.js';


const player = videojs('my-player');

Cassettator-markers

A customizable plugin for displaying markers directly in the progress bar.

Screenshot of the video.js cassettator-markers plugin

Refer to the plugin page for more details..

cassettator.js's People

Contributors

amtins avatar

Stargazers

Leon Berenschot avatar

Watchers

 avatar  avatar

cassettator.js's Issues

Bundle consideration

Current status

It appears that parceljs, despite being my favorite tool, doesn't allow me to compile the project the way I'd like. So, at least for the generation of the npm package, I've decided to stop using parceljs.

I'd like to avoid spending hours (minutes) configuring a bundling tool as much as possible. So I'll apply the same rule I always use when selecting a tool. That rule is: the 10-minute rule

It works like this:

  • 5 minutes to have a quick look at the documentation
  • 5 minutes to test a basic case

If it works, it's a good tool, if it doesn't, it's a tool that requires intelligence that I don't have, so I leave it to talented people.

Most people don't even think about how a pen works, they just use it and it works...

Potential solution

  • webpack, never
  • esbuild, looks very good, but I failed
  • vitejs, I had high hopes, but I failed too
  • rollup, I was very dubious at first, because it always reminded me of webpack, I don't know why. However, I managed to do what I wanted without having to think. So that's the tool I'm going to use.

Error when changing source during playback

Description

When playback has started and a new source is loaded, an error occurs because the updateMarker function tries to access the this.parentComponent_.el().getClientRects()[0].width even though getClientRects() is still empty.

const markersElWidth = this.parentComponent_.el().getClientRects()[0].width;

Screencast.from.28.01.24.14.35.28.webm

Steps to reproduce

  1. open https://amtins.github.io/cassettator.js/
  2. start the playback
  3. open the developer console
  4. run player.src(player.src())

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.