]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
changed the code to pass directly the options dict to the jwplayer init function
authorKarim Hamidou <khamidou@gmail.com>
Fri, 7 Oct 2011 13:15:08 +0000 (15:15 +0200)
committerKarim Hamidou <khamidou@gmail.com>
Fri, 7 Oct 2011 13:15:08 +0000 (15:15 +0200)
players/jwplayer/popcorn.jwplayer.js

index 00ba15e697c231692c0c580b6962f8e594b8c5c3..6727a8a00cd90f56f44a242b642162e59ddf7e97 100644 (file)
@@ -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);
 
   }
 });