Last active
June 15, 2019 08:32
-
-
Save georgechalhoub/4780e36172907a819fa98abeca243ac8 to your computer and use it in GitHub Desktop.
Retrieve the url(s) of the currently playing video of a playlist in JWPlayer 7.
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
jwplayer().on('ready', function(e) {$("#playlistDownButton").click(function() {var r = jwplayer().getPlaylistItem(jwplayer().getPlaylistIndex()).allSources; for (var i = 0; i < r.length; i++) {window.alert(r[i].file);}});}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment