From ededd2bd4b93065c7c671b5c3e6d38d5466b48c7 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 12:58:26 +0530 Subject: [PATCH] fix embed player w/o in/out --- static/js/embed/pandora.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index 2fe2e813..6bd87228 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -21,7 +21,7 @@ Ox.load('UI', { pandora.user.ui.item = options.item; pandora.api.get({id: options.item, keys: videoKeys}, function(result) { var data = getVideoOptions(result.data); - that.append(pandora.$player = Ox.VideoPlayer({ + that.append(pandora.$player = Ox.VideoPlayer(Ox.extend({ censored: data.censored, censoredIcon: pandora.site.cantPlay.icon, censoredTooltip: pandora.site.cantPlay.text, @@ -39,9 +39,7 @@ Ox.load('UI', { enableVolume: true, externalControls: false, height: window.innerHeight, - 'in': options['in'], invertHighlight: true, - out: options.out, paused: options.paused, position: options['in'], poster: '/' + options.item + '/' + '96p' + options['in'] +'.jpg', @@ -53,7 +51,11 @@ Ox.load('UI', { title: result.data.title, video: data.video, width: window.innerWidth - }) + }, options['in'] ? { + 'in': options['in'] + } : {}, options.out ? { + out: options.out + } : {})) .bindEvent(Ox.extend({ open: function() { pandora.$player.options({paused: true});