Compare commits

..

2 commits

Author SHA1 Message Date
j
ffc2504c0f download via media url 2022-11-30 19:44:15 +01:00
j
729b2ea771 use download dialog in player 2022-11-30 19:44:03 +01:00
2 changed files with 9 additions and 3 deletions

View file

@ -128,7 +128,7 @@ pandora.ui.downloadVideoDialog = function(options) {
}, function(result) {
if (result.data.taskId) {
pandora.wait(result.data.taskId, function(result) {
console.log('wait -> ', result)
//console.log('wait -> ', result)
if (result.data.result) {
url = '/' + options.item
+ '/' + values.resolution
@ -163,7 +163,7 @@ pandora.ui.downloadVideoDialog = function(options) {
}
if (url) {
that.close();
document.location.href = url
document.location.href = pandora.getMediaURL(url)
}
}
})

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});