forked from 0x2620/pandora
add volume/loop to embed options
This commit is contained in:
parent
156f4f255a
commit
0743376917
2 changed files with 6 additions and 2 deletions
|
@ -11,6 +11,7 @@ pandora.ui.embedPlayer = function() {
|
|||
annotationsRange: ui.annotationsRange,
|
||||
annotationsSort: ui.annotationsSort,
|
||||
invertHighlight: true,
|
||||
loop: false,
|
||||
matchRatio: false,
|
||||
paused: true,
|
||||
playInToOut: true,
|
||||
|
@ -21,6 +22,7 @@ pandora.ui.embedPlayer = function() {
|
|||
}),
|
||||
showTimeline: false,
|
||||
timeline: ui.videoTimeline,
|
||||
volume: ui.videoVolume,
|
||||
width: window.innerWidth
|
||||
},
|
||||
options = getOptions(),
|
||||
|
@ -29,6 +31,7 @@ pandora.ui.embedPlayer = function() {
|
|||
$innerPanel, $outerPanel,
|
||||
$title, $player, $controls, $timeline, $annotations;
|
||||
|
||||
|
||||
pandora.api.get({id: ui.item, keys: pandora.VIDEO_OPTIONS_KEYS}, function(result) {
|
||||
if (removed) {
|
||||
return;
|
||||
|
@ -120,7 +123,7 @@ pandora.ui.embedPlayer = function() {
|
|||
? pandora.site.timelines : [],
|
||||
title: video.title,
|
||||
video: video.video,
|
||||
volume: ui.videoVolume,
|
||||
volume: options.volume,
|
||||
width: options.width
|
||||
}, options['in'] ? {
|
||||
'in': options['in']
|
||||
|
|
|
@ -1373,12 +1373,13 @@ pandora.getFoldersWidth = function(section) {
|
|||
};
|
||||
|
||||
pandora.getHash = function(state, callback) {
|
||||
// FIXME: remove this
|
||||
var embedKeys = [
|
||||
'annotationsRange', 'annotationsSort',
|
||||
'embed',
|
||||
'ignoreRights', 'invertHighlight',
|
||||
'matchRatio',
|
||||
'paused', 'playInToOut',
|
||||
'paused', 'playInToOut', 'loop', 'volume',
|
||||
'showAnnotations', 'showCloseButton', 'showLayers', 'showTimeline',
|
||||
'timeline', 'title'
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue