src/js/site.js.templ
author hamidouk
Tue, 03 Jan 2012 16:13:19 +0100
branchpopcorn-port
changeset 573 d0bce45283f7
parent 557 e331072ce8fd
child 592 35459f92bb66
permissions -rw-r--r--
updated templates.

/* EDIT THIS FILE AND RENAME IT TO site.js TO BUILD THE METADATAPLAYER
   site.js - all our site-dependent config : player chrome, cdn locations, etc...*/

IriSP.libdir = "/mdp/src/js/libs/";
IriSP.jwplayer_swf_path = "http://localhost/mdp/test/libs/player.swf";

IriSP.lib = { 
		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
    popcorn : IriSP.libdir + "popcorn.js",
    jwplayer : IriSP.libdir + "jwplayer.js",
    popcornReplacement: IriSP.libdir + "pop.js",
    raphael: IriSP.libdir + "raphael.js",
    jquery_sparkline: IriSP.libdir + "jquery.sparkline.js",
    "popcorn.mediafragment" : IriSP.libdir + "popcorn.mediafragment.js",
    "popcorn.code" : IriSP.libdir + "popcorn.code.js",
    "popcorn.jwplayer": IriSP.libdir + "popcorn.jwplayer.js",
    "popcorn.youtube": IriSP.libdir + "popcorn.youtube.js"
};

//Player Configuration 
IriSP.config = undefined;

IriSP.widgetsDefaults = {
  "LayoutManager" : {spacer_div_height : "0px" },
  "PlayerWidget" : {},
  "AnnotationsWidget": {
    "share_text" : "I'm watching ",     
    "fb_link" : "http://www.facebook.com/share.php?u=",
    "tw_link" : "http://twitter.com/home?status=",
    "gplus_link" : ""
    },
  "TweetsWidget" : {
      default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
      tweet_display_period: 10000 // how long do we show a tweet ?
  },
  "SliderWidget" : {
      minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ?
  },
  "createAnnotationWidget" : {
      keywords: ["#faux-raccord", "#mot-clef"],
      cinecast_version: true /* put to false to enable the platform version, true for the festival cinecast one. */
  },
  "Main" : {
      autoplay: true
  }
  
};

IriSP.paths = {
  "imgs": "/mdp/src/css/imgs"
};
IriSP.default_templates_vars = {
  "img_dir" : IriSP.paths.imgs 
};