embed panel: allow for single frame embed

This commit is contained in:
rolux 2013-02-25 10:45:55 +05:30
parent 1cd5fab76f
commit 6231e98840

View file

@ -42,7 +42,11 @@ pandora.ui.embedPanel = function() {
censored: video.censored, censored: video.censored,
censoredIcon: pandora.site.cantPlay.icon, censoredIcon: pandora.site.cantPlay.icon,
censoredTooltip: pandora.site.cantPlay.text, censoredTooltip: pandora.site.cantPlay.text,
controlsBottom: ['play', 'volume', 'scale'].concat( controlsBottom: (
options['in'] == options.out ? [] : ['play', 'volume']
).concat(
['scale']
).concat(
Ox.Fullscreen.available && options.showCloseButton ? ['fullscreen'] : [] Ox.Fullscreen.available && options.showCloseButton ? ['fullscreen'] : []
).concat( ).concat(
['timeline', 'position', 'settings'] ['timeline', 'position', 'settings']
@ -307,6 +311,8 @@ pandora.ui.embedPanel = function() {
} }
if (!options['in'] && !options.out) { if (!options['in'] && !options.out) {
options.playInToOut = false; options.playInToOut = false;
} else if (options['in'] == options.out) {
options.invertHighlight = false;
} }
return options; return options;
} }