| author | veltr |
| Wed, 18 Apr 2012 18:58:44 +0200 | |
| branch | new-model |
| changeset 870 | 2c025db10a10 |
| parent 868 | a525cc2214e7 |
| child 872 | d777d05a16e4 |
| permissions | -rw-r--r-- |
| 842 | 1 |
IriSP.language = 'en'; |
2 |
||
3 |
IriSP.libFiles = { |
|
4 |
defaultDir : "js/libs/", |
|
5 |
inDefaultDir : { |
|
6 |
jQuery : "jquery.min.js", |
|
7 |
jQueryUI : "jquery-ui.min.js", |
|
8 |
jQueryToolTip : "jquery.tools.min.js", |
|
9 |
swfObject : "swfobject.js", |
|
10 |
cssjQueryUI : "jquery-ui.css", |
|
11 |
popcorn : "popcorn.js", |
|
12 |
jwplayer : "jwplayer.js", |
|
13 |
raphael : "raphael.js", |
|
14 |
"popcorn.mediafragment" : "popcorn.mediafragment.js", |
|
15 |
"popcorn.code" : "popcorn.code.js", |
|
16 |
"popcorn.jwplayer" : "popcorn.jwplayer.js", |
|
17 |
"popcorn.youtube" : "popcorn.youtube.js", |
|
18 |
"tracemanager" : "tracemanager.js" |
|
19 |
}, |
|
20 |
locations : { |
|
21 |
// use to define locations outside defautl_dir |
|
22 |
}, |
|
23 |
cdn : { |
|
24 |
jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.js", |
|
25 |
jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js", |
|
26 |
swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", |
|
27 |
cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" |
|
28 |
}, |
|
29 |
useCdn : false |
|
30 |
} |
|
31 |
||
| 868 | 32 |
IriSP.guiDefaults = { |
33 |
width : 640, |
|
34 |
container : 'LdtPlayer', |
|
35 |
spacer_div_height : 0 |
|
36 |
} |
|
37 |
||
| 842 | 38 |
IriSP.widgetsDefaults = { |
39 |
"PlayerWidget" : { |
|
40 |
|
|
41 |
}, |
|
42 |
"AnnotationsWidget" : { |
|
43 |
"share_text" : "I'm watching " |
|
44 |
}, |
|
45 |
"TweetsWidget" : { |
|
46 |
default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", |
|
47 |
tweet_display_period : 10000 // how long do we show a tweet ? |
|
48 |
}, |
|
49 |
"SliderWidget" : { |
|
50 |
minimize_period : 850 // how long does the slider stays maximized after the user leaves the zone ? |
|
51 |
}, |
|
52 |
"SegmentsWidget" : { |
|
53 |
cinecast_version : false |
|
54 |
}, |
|
55 |
"createAnnotationWidget" : { |
|
56 |
tags : [ |
|
57 |
{ |
|
58 |
"id" : "digitalstudies", |
|
59 |
"meta" : { |
|
60 |
"description" : "#digital-studies" |
|
61 |
} |
|
62 |
}, |
|
63 |
{ |
|
64 |
"id" : "amateur", |
|
65 |
"meta" : { |
|
66 |
"description" : "#amateur" |
|
67 |
}, |
|
68 |
} |
|
69 |
], |
|
70 |
remote_tags : false, |
|
71 |
random_tags : false, |
|
72 |
show_from_field : false, |
|
| 852 | 73 |
disable_share : false, |
| 842 | 74 |
polemic_mode : true, /* enable polemics ? */ |
75 |
polemics : [{ |
|
76 |
"className" : "positive", |
|
77 |
"keyword" : "++" |
|
78 |
}, { |
|
79 |
"className" : "negative", |
|
80 |
"keyword" : "--" |
|
81 |
}, { |
|
82 |
"className" : "reference", |
|
83 |
"keyword" : "==" |
|
84 |
}, { |
|
85 |
"className" : "question", |
|
86 |
"keyword" : "??" |
|
87 |
}], |
|
88 |
cinecast_version : false, /* put to false to enable the platform version, true for the festival cinecast one. */ |
|
89 |
||
90 |
/* where does the widget PUT the annotations - this is a mustache template. id refers to the id of the media ans is filled |
|
91 |
by the widget. |
|
92 |
*/ |
|
93 |
api_endpoint_template : "", // platform_url + "/ldtplatform/api/ldt/annotations/{{id}}.json", |
|
94 |
api_method : "PUT" |
|
95 |
}, |
|
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 |
*/ |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
107 |
ajax_url : false, //platform_url + "/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}", |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
108 |
ajax_granularity : 300000, /* how much ms should we look before and after the current timecode */ |
| 842 | 109 |
default_thumbnail : "http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png", |
110 |
project_url : "", //platform_url + "/ldtplatform/ldt/front/player/" |
|
111 |
/* the beginning of a link to the new front */ |
|
112 |
cinecast_version : false, |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
113 |
annotation_type : false, |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
114 |
refresh_interval : 300000, |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
115 |
limit_count : 10, |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
116 |
newest_first : false |
| 842 | 117 |
}, |
118 |
"StackGraphWidget" : { |
|
119 |
defaultcolor : "#585858", |
|
120 |
tags : [ |
|
121 |
{ |
|
122 |
"keywords" : [ "++" ], |
|
123 |
"description" : "positif", |
|
124 |
"color" : "#1D973D" |
|
125 |
}, |
|
126 |
{ |
|
127 |
"keywords" : [ "--" ], |
|
128 |
"description" : "negatif", |
|
129 |
"color" : "#CE0A15" |
|
130 |
}, |
|
131 |
{ |
|
132 |
"keywords" : [ "==" ], |
|
133 |
"description" : "reference", |
|
134 |
"color" : "#C5A62D" |
|
135 |
}, |
|
136 |
{ |
|
137 |
"keywords" : [ "??" ], |
|
138 |
"description" : "question", |
|
139 |
"color" : "#036AAE" |
|
140 |
} |
|
141 |
], |
|
142 |
streamgraph : false |
|
143 |
} |
|
144 |
} |