use download dialog in player

This commit is contained in:
j 2022-11-30 19:44:03 +01:00
parent ccbc966282
commit 729b2ea771

View file

@ -84,7 +84,13 @@ pandora.ui.player = function(data) {
}), 'clip');
},
downloadvideo: function() {
document.location.href = pandora.getDownloadLink(ui.item, data.rightslevel);
pandora.ui.downloadVideoDialog({
item: ui.item,
rightsLevel: data.rightsLevel,
source: data.source && pandora.hasCapability('canDownloadSource'),
title: data.title,
video: data.video
}).open();
},
find: function(data) {
pandora.UI.set({itemFind: data.find});