Skip to content

forbesjo/videojs-4to5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videojs-4to5

This provides two tools to ease the transition from video.js 4.x to 5.x.

The videojs-4to5 Binary

When installed globally, this package creates a binary which can be used to automatically refactor code written for video.js 4.x to work with 5.x.

npm install -g videojs-4to5

Run the script in a shell, pass it directories and/or files:

videojs-4to5 my-project some-file.js

All JavaScript files will be edited in place (unless you do a --dry-run).

Options

For all options, see: videojs-4to5 -h.

The Plugin

We recommend using the binary to update your code, but this package also includes a plugin (src/plugin.js) which can be included in your web page(s) to shim in video.js 4.x APIs to a 5.x environment. This shimming is not meant to provide perfect 1:1 compatibility, but it should address virtually all use-cases.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.6%
  • HTML 4.4%