Created
July 12, 2019 15:06
-
-
Save AshConnolly/53db9634249754ca8d3353bfed3051dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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