embed panel: allow for single frame embed
This commit is contained in:
parent
1cd5fab76f
commit
6231e98840
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue