| author | hamidouk |
| Tue, 03 Jan 2012 16:13:19 +0100 | |
| branch | popcorn-port |
| changeset 573 | d0bce45283f7 |
| parent 557 | e331072ce8fd |
| child 592 | 35459f92bb66 |
| permissions | -rw-r--r-- |
| 533 | 1 |
/* EDIT THIS FILE AND RENAME IT TO site.js TO BUILD THE METADATAPLAYER |
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 | 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 | 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 | 13 |
popcorn : IriSP.libdir + "popcorn.js", |
14 |
jwplayer : IriSP.libdir + "jwplayer.js", |
|
15 |
popcornReplacement: IriSP.libdir + "pop.js", |
|
16 |
raphael: IriSP.libdir + "raphael.js", |
|
17 |
jquery_sparkline: IriSP.libdir + "jquery.sparkline.js", |
|
18 |
"popcorn.mediafragment" : IriSP.libdir + "popcorn.mediafragment.js", |
|
19 |
"popcorn.code" : IriSP.libdir + "popcorn.code.js", |
|
20 |
"popcorn.jwplayer": IriSP.libdir + "popcorn.jwplayer.js", |
|
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 | 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 | 42 |
}, |
| 547 | 43 |
"createAnnotationWidget" : {
|
| 573 | 44 |
keywords: ["#faux-raccord", "#mot-clef"], |
45 |
cinecast_version: true /* put to false to enable the platform version, true for the festival cinecast one. */ |
|
| 547 | 46 |
}, |
| 491 | 47 |
"Main" : {
|
48 |
autoplay: true |
|
|
454
f921c98a180b
removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff
changeset
|
49 |
} |
| 533 | 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 |
|
|
f921c98a180b
removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff
changeset
|
53 |
IriSP.paths = {
|
| 533 | 54 |
"imgs": "/mdp/src/css/imgs" |
|
454
f921c98a180b
removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff
changeset
|
55 |
}; |
|
f921c98a180b
removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff
changeset
|
56 |
IriSP.default_templates_vars = {
|
|
f921c98a180b
removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff
changeset
|
57 |
"img_dir" : IriSP.paths.imgs |
|
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 |