Skip to content

Instantly share code, notes, and snippets.

@Strap1
Created March 7, 2014 20:32
Show Gist options
  • Save Strap1/9419451 to your computer and use it in GitHub Desktop.
Save Strap1/9419451 to your computer and use it in GitHub Desktop.
Popcorn .srt Issue
<div id="showcase-video">
<div class="lyrics-youtube"></div>
</div>
<div id="subs"></div>
<script>
document.addEventListener( "DOMContentLoaded", function() {
var pop = Popcorn.youtube( ".lyrics-youtube", "https://www.youtube.com/watch?v=Z7gbtEcA7BE", {
defaults: {
subtitle: {
target: "subs"
}
}
});
pop.parseSRT( "http://www.beta.hiphopinenglish.com/wp-content/themes/mh_magazine_child/wisdom.srt" );
}, false );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment