src/js/site.js.templ
author hamidouk
Thu, 19 Jan 2012 12:39:58 +0100
branchpopcorn-port
changeset 681 9e113f912e4e
child 718 c6660cd7bfb3
permissions -rw-r--r--
replaced site.js by site.js.templ.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
681
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     1
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     2
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     3
IriSP.libdir = "/mdp/src/js/libs/";
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     4
IriSP.jwplayer_swf_path = "/mdp/test/libs/player.swf";
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     5
IriSP.platform_url = "http://localhost/pf";
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     6
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     7
IriSP.lib = { 
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     8
		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
     9
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    10
		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    11
		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    12
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    13
    popcorn : IriSP.libdir + "popcorn.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    14
    jwplayer : IriSP.libdir + "jwplayer.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    15
    popcornReplacement: IriSP.libdir + "pop.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    16
    raphael: IriSP.libdir + "raphael.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    17
    jquery_sparkline: IriSP.libdir + "jquery.sparkline.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    18
    "popcorn.mediafragment" : IriSP.libdir + "popcorn.mediafragment.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    19
    "popcorn.code" : IriSP.libdir + "popcorn.code.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    20
    "popcorn.jwplayer": IriSP.libdir + "popcorn.jwplayer.js",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    21
    "popcorn.youtube": IriSP.libdir + "popcorn.youtube.js"    
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    22
};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    23
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    24
//Configuration for the player and utility functions.
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    25
IriSP.config = {};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    26
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    27
IriSP.config.shortener = {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    28
  // function to call to shorten an url.
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    29
  //shortening_function : IriSP.platform_shorten_url
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    30
};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    31
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    32
IriSP.widgetsDefaults = {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    33
  "LayoutManager" : {spacer_div_height : "0px" },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    34
  "PlayerWidget" : {},
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    35
  "AnnotationsWidget": {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    36
    "share_text" : "I'm watching ",     
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    37
    "fb_link" : "http://www.facebook.com/share.php?u=",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    38
    "tw_link" : "http://twitter.com/home?status=",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    39
    "gplus_link" : ""
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    40
    },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    41
  "TweetsWidget" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    42
      default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    43
      tweet_display_period: 10000, // how long do we show a tweet ?
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    44
      
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    45
  },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    46
  "SliderWidget" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    47
      minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ?
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    48
  },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    49
  "createAnnotationWidget" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    50
      keywords: ["#faux-raccord", "#mot-clef"],
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    51
      cinecast_version: true /* put to false to enable the platform version, true for the festival cinecast one. */
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    52
  },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    53
  "SparklineWidget" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    54
      column_width: 10 // the width of a column in pixels.
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    55
  },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    56
  "Main" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    57
      autoplay: true
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    58
  },
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    59
  "AnnotationsListWidget" : {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    60
      ajax_mode: true, /* use ajax to get information about the annotations.
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    61
                         if set to false, only search in the annotations for the
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    62
                         current project. */
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    63
      ajax_url: IriSP.platform_url + "ldtplatform/api/ldt/segments/", /* partial
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    64
                                                                         url of 
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    65
                                                                         where to
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    66
                                                                         get the 
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    67
                                                                         ajax */
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    68
      ajax_granularity: 10000 /* how much ms should we look before and after the
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    69
                                 current timecode */
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    70
  }, 
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    71
};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    72
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    73
IriSP.paths = {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    74
//  "imgs": "/tweetlive/res/metadataplayer/src/css/imgs"
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    75
  "imgs": "/mdp/src/css/imgs"
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    76
};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    77
IriSP.default_templates_vars = {
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    78
  "img_dir" : IriSP.paths.imgs 
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    79
};
9e113f912e4e replaced site.js by site.js.templ.
hamidouk
parents:
diff changeset
    80