add a switch case to use the allocine player. embed-playerapi-rewrite
authorhamidouk
Wed, 25 Jan 2012 12:52:45 +0100
branchembed-playerapi-rewrite
changeset 705 83197a7a4281
parent 704 235190848d7d
child 706 a759113f6bd1
add a switch case to use the allocine player.
src/js/init.js
--- a/src/js/init.js	Tue Jan 24 17:30:24 2012 +0100
+++ b/src/js/init.js	Wed Jan 25 12:52:45 2012 +0100
@@ -112,6 +112,11 @@
           pop = Popcorn.youtube("#" + containerDiv, opts.video, opts);
         break;
         
+      case "allocine":
+          /* pass the options as-is to the allocine player and let it handle everything */
+          pop = new PopcornReplacement.allocine("#" + containerDiv, options);
+          break;
+          
       default:
         pop = undefined;
     };