Created
October 10, 2019 07:29
-
-
Save codeforkjeff/c3447a9a7d227eb602a2cbeb6bfefc91 to your computer and use it in GitHub Desktop.
vimeo transcript
This file contains hidden or 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
// run this in the javascript console, hit play on the vimeo video. | |
// when it's finished playing, the entire transcript should be in the "transcript" variable | |
var transcript = ""; | |
var lastCaption = ""; | |
function appendCaption() { | |
var cap = $(".vp-captions").text(); | |
if(cap != lastCaption) { | |
transcript += " " + lastCaption; | |
} | |
lastCaption = cap; | |
setTimeout(appendCaption, 300); | |
} | |
appendCaption(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment