src/js/site.js.templ
author hamidouk
Thu, 12 Jan 2012 13:00:11 +0100
branchpopcorn-port
changeset 612 5292f847b43a
parent 592 35459f92bb66
child 625 63bddb6756d2
permissions -rw-r--r--
removed debug printf.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
     1
/* EDIT THIS FILE AND RENAME IT TO site.js TO BUILD THE METADATAPLAYER
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
     2
   site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     3
556
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
     4
IriSP.libdir = "/mdp/src/js/libs/";
557
e331072ce8fd added more autoconfig, and an option to specify in site.js where to get the
hamidouk
parents: 556
diff changeset
     5
IriSP.jwplayer_swf_path = "http://localhost/mdp/test/libs/player.swf";
556
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
     6
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     7
IriSP.lib = { 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     8
		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     9
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    10
		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    11
		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    12
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
556
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    13
    popcorn : IriSP.libdir + "popcorn.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    14
    jwplayer : IriSP.libdir + "jwplayer.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    15
    popcornReplacement: IriSP.libdir + "pop.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    16
    raphael: IriSP.libdir + "raphael.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    17
    jquery_sparkline: IriSP.libdir + "jquery.sparkline.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    18
    "popcorn.mediafragment" : IriSP.libdir + "popcorn.mediafragment.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    19
    "popcorn.code" : IriSP.libdir + "popcorn.code.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    20
    "popcorn.jwplayer": IriSP.libdir + "popcorn.jwplayer.js",
d1f6b4841f35 added a variable pointing to the js files dir.
hamidouk
parents: 547
diff changeset
    21
    "popcorn.youtube": IriSP.libdir + "popcorn.youtube.js"
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    22
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    23
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    24
//Player Configuration 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    25
IriSP.config = undefined;
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    26
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    27
IriSP.widgetsDefaults = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    28
  "LayoutManager" : {spacer_div_height : "0px" },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    29
  "PlayerWidget" : {},
470
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    30
  "AnnotationsWidget": {
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    31
    "share_text" : "I'm watching ",     
470
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    32
    "fb_link" : "http://www.facebook.com/share.php?u=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    33
    "tw_link" : "http://twitter.com/home?status=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    34
    "gplus_link" : ""
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    35
    },
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    36
  "TweetsWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    37
      default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    38
      tweet_display_period: 10000 // how long do we show a tweet ?
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    39
  },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    40
  "SliderWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    41
      minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ?
491
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    42
  },
547
5b58a108086a adding support for keywords.
hamidouk
parents: 533
diff changeset
    43
  "createAnnotationWidget" : {
573
d0bce45283f7 updated templates.
hamidouk
parents: 557
diff changeset
    44
      keywords: ["#faux-raccord", "#mot-clef"],
d0bce45283f7 updated templates.
hamidouk
parents: 557
diff changeset
    45
      cinecast_version: true /* put to false to enable the platform version, true for the festival cinecast one. */
547
5b58a108086a adding support for keywords.
hamidouk
parents: 533
diff changeset
    46
  },
491
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    47
  "Main" : {
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    48
      autoplay: true
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    49
  }
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    50
  
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    51
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    52
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents: 573
diff changeset
    53
/* ! Must not end with a trailing slash */
35459f92bb66 added a special file to test the platform response.
hamidouk
parents: 573
diff changeset
    54
IriSP.platform_url = "http://localhost/pf/";
35459f92bb66 added a special file to test the platform response.
hamidouk
parents: 573
diff changeset
    55
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    56
IriSP.paths = {
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    57
  "imgs": "/mdp/src/css/imgs"
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    58
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    59
IriSP.default_templates_vars = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    60
  "img_dir" : IriSP.paths.imgs 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    61
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    62