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