From c832c2e6e77a2bf494bb6f946f512571c37244f0 Mon Sep 17 00:00:00 2001 From: Karim Hamidou Date: Fri, 7 Oct 2011 15:15:08 +0200 Subject: [PATCH] changed the code to pass directly the options dict to the jwplayer init function --- players/jwplayer/popcorn.jwplayer.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/players/jwplayer/popcorn.jwplayer.js b/players/jwplayer/popcorn.jwplayer.js index 00ba15e..6727a8a 100644 --- a/players/jwplayer/popcorn.jwplayer.js +++ b/players/jwplayer/popcorn.jwplayer.js @@ -104,14 +104,11 @@ Popcorn.player( "jwplayer", { }; - jwplayer( container.id ).setup({ - file: options.file, - height: 270, - width: 480, - flashplayer: options.flashplayer, - events: { + options.events = { onReady: initApi - }}); + }; + + jwplayer( container.id ).setup(options); } }); -- 2.43.0