From: Karim Hamidou Date: Fri, 7 Oct 2011 13:15:08 +0000 (+0200) Subject: changed the code to pass directly the options dict to the jwplayer init function X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c832c2e6e77a2bf494bb6f946f512571c37244f0;p=popcorn-js.git changed the code to pass directly the options dict to the jwplayer init function --- 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); } });