Allow custom download URL (for streaming, etc)

This commit is contained in:
Sam Potts
2018-10-24 22:31:35 +11:00
parent ebaded66b4
commit 03c9b53232
5 changed files with 29 additions and 12 deletions

View File

@ -431,7 +431,7 @@ class Listeners {
controls.updateSetting.call(player, 'quality', null, event.detail.quality);
});
// Update download link
// Update download link when ready and if quality changes
on.call(player, player.media, 'ready qualitychange', () => {
controls.setDownloadLink.call(player);
});