Skip to content

A videoJS 7 plugin to easily rotate or zoom in a video

License

Notifications You must be signed in to change notification settings

lecong/videojs-rotatezoom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video.js Zoom Rotate

A plugin that allows you to set the Zoom level and a rotation for video and poster with Video.js.

Install

Install it via bower with bower i --save videojs-rotatezoom

Using the Plugin

The plugin automatically registers itself when you include videojs.zoomrotate.js in your page:

<script src='videojs.zoomrotate.js'></script>

Once you have your video element created, you can activate the zoomrotate plugin. The plugin take 2 options rotate and zoom. It use the CSS scale property and the rotate property.

video.zoomrotate({
  rotate: 90,
  zoom: 1.5
});

or

data-setup='{ "plugins": { "zoomrotate": { "rotate": "90", "zoom": "1.5" } } }'

Options

    defaults = {
      zoom: 1,
      rotate: 0,
      debug: true
    };

Known Issues

It won't work when using the flash fallback.

Thanks

Thanks to codepo8, https://github.com/codepo8/rotatezoomHTML5video

Licence

The piwigo-videojs plugin for Piwigo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See http://www.gnu.org/licenses/gpl.html.

About

A videoJS 7 plugin to easily rotate or zoom in a video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.4%
  • CSS 5.3%
  • HTML 0.3%