src/js/site.js.templ
author hamidouk
Wed, 21 Dec 2011 15:00:43 +0100
branchlab-port
changeset 497 f671cbaae9db
parent 491 095f4c76664d
child 533 7cc5988bb9a1
permissions -rw-r--r--
added a guid function.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     1
/* EDIT THIS FILE AND RENAME IT TO site.js to build the player */
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     2
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     3
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     4
IriSP.lib = { 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     5
		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
     6
		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
     7
		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
     8
		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
     9
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    10
    popcorn : "src/js/libs/popcorn.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    11
    jwplayer : "src/js/libs/jwplayer.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    12
    "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    13
    "popcorn.code" : "src/js/libs/popcorn.code.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    14
    "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    15
    "popcorn.youtube": "src/js/libs/popcorn.youtube.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    16
     raphael: "src/js/libs/raphael.js"
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    17
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    18
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    19
//Player Configuration 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    20
IriSP.config = undefined;
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    21
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    22
IriSP.widgetsDefaults = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    23
  "LayoutManager" : {spacer_div_height : "0px" },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    24
  "PlayerWidget" : {},
470
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    25
  "AnnotationsWidget": {
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    26
    "share_text" : "I'm watching ",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    27
    "fb_link" : "http://www.facebook.com/share.php?u=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    28
    "tw_link" : "http://twitter.com/home?status=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    29
    "gplus_link" : ""
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    30
    },
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    31
  "TweetsWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    32
      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
    33
      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
    34
  },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    35
  "SliderWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    36
      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
    37
  },
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    38
  "Main" : {
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    39
      autoplay: true
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    40
  }
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    41
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    42
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    43
IriSP.paths = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    44
  "imgs": "/tweetlive/res/metadataplayer/src/css/imgs"
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    45
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    46
IriSP.default_templates_vars = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    47
  "img_dir" : IriSP.paths.imgs 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    48
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    49