use download dialog in player
This commit is contained in:
parent
ccbc966282
commit
729b2ea771
1 changed files with 7 additions and 1 deletions
|
@ -84,7 +84,13 @@ pandora.ui.player = function(data) {
|
||||||
}), 'clip');
|
}), 'clip');
|
||||||
},
|
},
|
||||||
downloadvideo: function() {
|
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) {
|
find: function(data) {
|
||||||
pandora.UI.set({itemFind: data.find});
|
pandora.UI.set({itemFind: data.find});
|
||||||
|
|
Loading…
Reference in a new issue