forked from 0x2620/pandora
dont resize embed, hook up open on site event
This commit is contained in:
parent
110078ec9a
commit
de30bf5a44
2 changed files with 14 additions and 4 deletions
|
@ -221,7 +221,9 @@ appPanel
|
|||
.on({
|
||||
beforeunload: pandora.beforeunloadWindow,
|
||||
resize: function() {
|
||||
if (!isEmbed) {
|
||||
pandora.resizeWindow();
|
||||
}
|
||||
},
|
||||
unload: pandora.unloadWindow
|
||||
})
|
||||
|
|
|
@ -109,6 +109,17 @@ pandora.ui.embedPanel = function() {
|
|||
out: options.out
|
||||
} : {}))
|
||||
.bindEvent({
|
||||
fullscreen: function(data) {
|
||||
Ox.Fullscreen.toggle();
|
||||
},
|
||||
open: function() {
|
||||
$player.options({paused: true});
|
||||
var url = document.location.protocol + '//'
|
||||
+ document.location.hostname + '/'
|
||||
+ options.item + '/'
|
||||
+ Ox.formatDuration($player.options('position'));
|
||||
window.open(url, '_blank');
|
||||
},
|
||||
playing: function(data) {
|
||||
setPosition(data.position, true);
|
||||
},
|
||||
|
@ -119,9 +130,6 @@ pandora.ui.embedPanel = function() {
|
|||
$timeline.options({
|
||||
subtitles: data.subtitles ? video.subtitles : []
|
||||
});
|
||||
},
|
||||
fullscreen: function(data) {
|
||||
Ox.Fullscreen.toggle();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue