/videojs-leapmotion

Leap Motion controlled HTML5 video playback, as a VideoJS plugin

Primary LanguageJavaScript

Leap Motion plugin for Video.js

A Video.JS plugin that let you control video playback with Leap Motion.

Using the Plugin

Add the following to head (leap.js is from official SDK)

<link href="videojs.leapmotion.css" rel="stylesheet" />
<script src="leap.js"></script>
<script src="videojs.leapmotion.js"></script>

and body (to activate the plugin)

<script>videojs('your_video_element_id').LeapMotionPlugin();</script>

Supported gestures:

  • Swipe left: step forward 5s
  • Swipe right: step backward 5s
  • key tap (tap downward): play/pause

License

MIT