Skip to content

Instantly share code, notes, and snippets.

@AshConnolly
Created July 12, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshConnolly/53db9634249754ca8d3353bfed3051dc to your computer and use it in GitHub Desktop.
Save AshConnolly/53db9634249754ca8d3353bfed3051dc to your computer and use it in GitHub Desktop.
(function() {
window.addEventListener('keydown', function(e) {
var player = document.querySelector('video')
// console.log("TCL: vimeoControls -> e", e)
if (e.keyCode === 37) {
player.currentTime -= 5
}
if (e.keyCode === 39) {
player.currentTime += 5
}
});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment