1 IriSP.language = 'en'; |
1 IriSP.language = 'en'; |
2 |
2 |
3 IriSP.libFiles = { |
3 IriSP.libFiles = { |
4 defaultDir : "js/libs/", |
4 defaultDir : "js/libs/", |
5 inDefaultDir : { |
5 inDefaultDir : { |
|
6 underscore : "underscore.js", |
|
7 Mustache : "mustache.js", |
6 jQuery : "jquery.min.js", |
8 jQuery : "jquery.min.js", |
7 jQueryUI : "jquery-ui.min.js", |
9 jQueryUI : "jquery-ui.min.js", |
8 swfObject : "swfobject.js", |
10 swfObject : "swfobject.js", |
9 cssjQueryUI : "jquery-ui.css", |
11 cssjQueryUI : "jquery-ui.css", |
10 popcorn : "popcorn.js", |
12 popcorn : "popcorn.js", |
25 cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" |
27 cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" |
26 }, |
28 }, |
27 useCdn : false |
29 useCdn : false |
28 } |
30 } |
29 |
31 |
|
32 IriSP.widgetsDir = 'widgets'; |
|
33 |
30 IriSP.guiDefaults = { |
34 IriSP.guiDefaults = { |
31 width : 640, |
35 width : 640, |
32 container : 'LdtPlayer', |
36 container : 'LdtPlayer', |
33 spacer_div_height : 0 |
37 spacer_div_height : 0 |
34 } |
38 } |
35 |
39 |
36 IriSP.widgetsDefaults = { |
40 IriSP.widgetsDefaults = { |
37 "PlayerWidget" : { |
|
38 |
|
39 }, |
|
40 "AnnotationsWidget" : { |
41 "AnnotationsWidget" : { |
41 "share_text" : "I'm watching " |
42 "share_text" : "I'm watching " |
42 }, |
43 }, |
43 "TweetsWidget" : { |
44 "TweetsWidget" : { |
44 default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", |
45 default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", |
45 tweet_display_period : 10000 // how long do we show a tweet ? |
46 tweet_display_period : 10000 // how long do we show a tweet ? |
46 }, |
|
47 "SliderWidget" : { |
|
48 minimized_height : 4, |
|
49 maximized_height : 10, |
|
50 minimize_timeout : 1500 // time before minimizing slider after mouseout |
|
51 }, |
47 }, |
52 "SegmentsWidget" : { |
48 "SegmentsWidget" : { |
53 cinecast_version : false |
49 cinecast_version : false |
54 }, |
50 }, |
55 "createAnnotationWidget" : { |
51 "createAnnotationWidget" : { |
91 by the widget. |
87 by the widget. |
92 */ |
88 */ |
93 api_endpoint_template : "", // platform_url + "/ldtplatform/api/ldt/annotations/{{id}}.json", |
89 api_endpoint_template : "", // platform_url + "/ldtplatform/api/ldt/annotations/{{id}}.json", |
94 api_method : "PUT" |
90 api_method : "PUT" |
95 }, |
91 }, |
96 "SparklineWidget" : { |
|
97 lineColor : "#7492b4", |
|
98 fillColor : "#aeaeb8", |
|
99 lineWidth : 2 |
|
100 }, |
|
101 "AnnotationsListWidget" : { |
|
102 /* the platform generates some funky urls. We replace them afterwards to point to the |
|
103 correct place - this setting will probably be overwritten by the platform |
|
104 implementers. |
|
105 Note that the player has to replace the variables between {{ and }} by its own values. |
|
106 */ |
|
107 ajax_url : false, |
|
108 /* URL when the annotations are to be reloaded from an LDT-like segment API |
|
109 * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=? |
|
110 */ |
|
111 ajax_granularity : 300000, /* how much ms should we look before and after the current timecode */ |
|
112 default_thumbnail : "http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png", |
|
113 foreign_url : "", |
|
114 /* URL when the annotation is not in the current project, |
|
115 * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}} |
|
116 */ |
|
117 cinecast_version : false, |
|
118 annotation_type : false, |
|
119 refresh_interval : 0, |
|
120 limit_count : 10, |
|
121 newest_first : false |
|
122 }, |
|
123 "StackGraphWidget" : { |
92 "StackGraphWidget" : { |
124 defaultcolor : "#585858", |
93 defaultcolor : "#585858", |
125 tags : [ |
94 tags : [ |
126 { |
95 { |
127 "keywords" : [ "++" ], |
96 "keywords" : [ "++" ], |
143 "description" : "question", |
112 "description" : "question", |
144 "color" : "#036AAE" |
113 "color" : "#036AAE" |
145 } |
114 } |
146 ], |
115 ], |
147 streamgraph : false |
116 streamgraph : false |
148 }, |
|
149 "PolemicWidget" : { |
|
150 element_width : 5, |
|
151 element_height : 5, |
|
152 annotation_type : "tweet", |
|
153 defaultcolor : "#585858", |
|
154 foundcolor : "#fc00ff", |
|
155 tags : [ |
|
156 { |
|
157 "keywords" : [ "++" ], |
|
158 "description" : "positif", |
|
159 "color" : "#1D973D" |
|
160 }, |
|
161 { |
|
162 "keywords" : [ "--" ], |
|
163 "description" : "negatif", |
|
164 "color" : "#CE0A15" |
|
165 }, |
|
166 { |
|
167 "keywords" : [ "==" ], |
|
168 "description" : "reference", |
|
169 "color" : "#C5A62D" |
|
170 }, |
|
171 { |
|
172 "keywords" : [ "??" ], |
|
173 "description" : "question", |
|
174 "color" : "#036AAE" |
|
175 } |
|
176 ], |
|
177 requires : [ |
|
178 { |
|
179 type: "TooltipWidget" |
|
180 } |
|
181 ] |
|
182 } |
117 } |
183 } |
118 } |