vr
videojs-rotatezoom
npm i videojs-rotatezoom
vr

videojs-rotatezoom

A videoJS plugin to easily rotate or zoom in a video

by Macpherson

0.0.1 (see all)License:MITTypeScript:Not Found
npm i videojs-rotatezoom
Readme

Video.js Zoom Rotate

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

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" } } }'

Known Issues

It won't work when using the flash fallback.

Thanks

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

Downloads/wk

7

GitHub Stars

36

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

5

OPEN PRs

0
VersionTagPublished
0.0.1
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial