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({
|
.on({
|
||||||
beforeunload: pandora.beforeunloadWindow,
|
beforeunload: pandora.beforeunloadWindow,
|
||||||
resize: function() {
|
resize: function() {
|
||||||
pandora.resizeWindow();
|
if (!isEmbed) {
|
||||||
|
pandora.resizeWindow();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
unload: pandora.unloadWindow
|
unload: pandora.unloadWindow
|
||||||
})
|
})
|
||||||
|
|
|
@ -109,6 +109,17 @@ pandora.ui.embedPanel = function() {
|
||||||
out: options.out
|
out: options.out
|
||||||
} : {}))
|
} : {}))
|
||||||
.bindEvent({
|
.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) {
|
playing: function(data) {
|
||||||
setPosition(data.position, true);
|
setPosition(data.position, true);
|
||||||
},
|
},
|
||||||
|
@ -119,9 +130,6 @@ pandora.ui.embedPanel = function() {
|
||||||
$timeline.options({
|
$timeline.options({
|
||||||
subtitles: data.subtitles ? video.subtitles : []
|
subtitles: data.subtitles ? video.subtitles : []
|
||||||
});
|
});
|
||||||
},
|
|
||||||
fullscreen: function(data) {
|
|
||||||
Ox.Fullscreen.toggle();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue