add volume/loop to embed options

This commit is contained in:
j 2018-04-13 14:21:33 +02:00
commit 0743376917
2 changed files with 6 additions and 2 deletions

View file

@ -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']