|
929
|
1 |
# Architecture of Metadataplayer # |
|
|
2 |
|
|
|
3 |
WARNING ! |
|
947
|
4 |
This documentation refers to the latest version of Metadataplayer, available in the **default** branch in our repository |
|
929
|
5 |
http://www.iri.centrepompidou.fr/dev/hg/metadataplayer |
|
|
6 |
|
|
|
7 |
## External Libraries ## |
|
|
8 |
|
|
|
9 |
External libraries are bundled in the *src/libs* directory |
|
|
10 |
|
|
|
11 |
### LAB.js ### |
|
|
12 |
|
|
|
13 |
- **File**: LAB.min.js |
|
|
14 |
- **License**: MIT. |
|
|
15 |
- **Role**: Loads other librairies and widgets. |
|
|
16 |
- **Used in**: Metadataplayer core. |
|
951
|
17 |
- As LAB.js is used to load other libraries, it’s the only library called before loading the Metadataplayer core. |
|
929
|
18 |
- **Library homepage**: http://labjs.com/ |
|
|
19 |
|
|
|
20 |
### jQuery ### |
|
|
21 |
|
|
|
22 |
- **File**: jquery.min.js |
|
|
23 |
- **License**: Double, MIT and GPL. |
|
|
24 |
- **Role**: Manages HTML document (DOM) access and Ajax calls. |
|
|
25 |
- **Used in**: Metadataplayer core and all widgets. |
|
|
26 |
- **Library homepage**: http://jquery.org/ |
|
|
27 |
|
|
|
28 |
### jQuery UI ### |
|
|
29 |
|
|
|
30 |
- **Fichiers**: jquery-ui.min.js and jquery-ui.css |
|
|
31 |
- **License**: Double, MIT and GPL. |
|
|
32 |
- **Role**: Manages User Interface elements, such as *Sliders* |
|
|
33 |
- **Used in**: Widgets : Controller (for volume control) et Slider (Time *progress slider*) |
|
|
34 |
- **Library homepage**: http://jqueryui.com/ |
|
|
35 |
|
|
|
36 |
### Underscore ### |
|
|
37 |
|
|
|
38 |
- **File**: underscore-min.js |
|
|
39 |
- **License**: MIT. |
|
|
40 |
- **Role**: Adds functional-programming facilities to handle objects, arrays and functions. |
|
|
41 |
- **Used in**: Metadataplayer core and most widgets. |
|
|
42 |
- **Library homepage**: http://underscorejs.org/ |
|
|
43 |
|
|
|
44 |
### Popcorn ### |
|
|
45 |
|
|
|
46 |
- **File**: popcorn-complete.min.js |
|
|
47 |
- **License**: MIT. |
|
|
48 |
- **Role**: Handles HTML5 Video Playback. |
|
|
49 |
- **Used in**: HTML5 and Youtube video players. Also handles Metadataplayer events when one of these players is used. |
|
|
50 |
- **Library homepage**: http://popcornjs.org/ |
|
|
51 |
|
|
|
52 |
### Mustache ### |
|
|
53 |
|
|
|
54 |
- **File**: mustache.js |
|
|
55 |
- **License**: MIT. |
|
|
56 |
- **Role**: A templating library to generate HTML code. |
|
|
57 |
- **Used in**: widgets. |
|
|
58 |
- **Library homepage**: http://mustache.github.com/ |
|
|
59 |
|
|
|
60 |
### Raphael ### |
|
|
61 |
|
|
|
62 |
- **File**: raphael-min.js |
|
|
63 |
- **License**: MIT. |
|
|
64 |
- **Role**: A vectorial drawing interface (using SVG or VML depending on browsers) |
|
|
65 |
- **Used in**: Arrow and Sparkline widgets |
|
|
66 |
- **Library homepage**: http://raphaeljs.com/ |
|
|
67 |
|
|
951
|
68 |
### ZeroClipboard ### |
|
|
69 |
|
|
|
70 |
- **Files**: ZeroClipboard.js and ZeroClipboard.swf |
|
|
71 |
- **License**: MIT. |
|
|
72 |
- **Role**: Manages access to the Clipboard (using Flash) |
|
|
73 |
- **Used in**: Social widget |
|
|
74 |
- **Library homepage**: http://code.google.com/p/zeroclipboard/ |
|
|
75 |
|
|
929
|
76 |
### ktbs4js Tracemanager ### |
|
|
77 |
|
|
|
78 |
- **File**: tracemanager.js |
|
|
79 |
- **License**: LGPL. |
|
|
80 |
- **Role**: Interface with the KTBS trace management system, created by Olivier Aubert (Liris) |
|
|
81 |
- **Used in**: Trace widget |
|
|
82 |
- **Library homepage**: http://github.com/oaubert/ktbs4js |
|
|
83 |
|
|
|
84 |
## Metadataplayer core ## |
|
|
85 |
|
|
|
86 |
In Metadataplayer, Javascript and CSS files are divided in *core* and *widgets*. |
|
|
87 |
|
|
|
88 |
In the release (compiled) version, the JS part of the core is a single file, *LdtPlayer-core.js* compiled by concatenating JS files located dans *src/js*: |
|
|
89 |
|
|
|
90 |
### header.js ### |
|
|
91 |
|
|
951
|
92 |
Contains credits and licence information (The license is CEA, CNRS and Inria’s *CeCILL-C*) |
|
929
|
93 |
|
|
|
94 |
### LAB.js ### |
|
|
95 |
|
|
|
96 |
see *external libraries*. |
|
|
97 |
|
|
|
98 |
### init.js ### |
|
|
99 |
|
|
|
100 |
Defines the *IriSP* object, used as a namespace for the whole Metadataplayer. |
|
|
101 |
Contains the declaration and methods of the *IriSP.Metadataplayer* class, whose instantiation is the main entry point for the code. |
|
|
102 |
|
|
|
103 |
### pop.js ### |
|
|
104 |
|
|
|
105 |
Defines the *IriSP.PopcornReplacement* class, i.e. a simplified version of the Popcorn API used to interface with video players (jwplayer, dailymotion) not supported by Popcorn. |
|
951
|
106 |
When this part of the Metadataplayer was written, Popcorn and jwplayer didn’t interface well, but it should be replaced by a real Popcorn.js plugin. |
|
929
|
107 |
|
|
|
108 |
### utils.js ### |
|
|
109 |
|
|
|
110 |
Contains some utility functions such as *IriSP.loadCss*, an equivalent to LAB.js for CSS files. |
|
|
111 |
|
|
|
112 |
### model.js ### |
|
|
113 |
|
|
|
114 |
Contains classes managing the Cinelab data model, grouped in the *IriSP.Model* namespace. |
|
|
115 |
|
|
|
116 |
### widgets.js ### |
|
|
117 |
|
|
|
118 |
Contains the (abstract) class *IriSP.Widgets.Widget*, containing base functionalities for all widgets. |
|
|
119 |
|
|
|
120 |
### players ### |
|
|
121 |
|
|
1022
|
122 |
Players are now widgets. See widget section for their configuration. |
|
929
|
123 |
|
|
|
124 |
### serializers ### |
|
|
125 |
|
|
|
126 |
Serializers are converters between the internal data representation in the metadata player and formats used for communication with servers. |
|
|
127 |
|
|
|
128 |
Two serializers are available: |
|
|
129 |
|
|
|
130 |
1. **ldt**, to read JSON projects provided by the *Lignes de Temps* platform. |
|
|
131 |
2. **ldt\_annotate**, for communications with the Add Widget API, whose format is slightly different. |
|
|
132 |
|
|
|
133 |
## Widgets ## |
|
|
134 |
|
|
|
135 |
Widgets are modules, visible or not, adding functionalities to the Metadataplayer. |
|
|
136 |
|
|
951
|
137 |
Located in the *src/widgets* directory, they’re composed of a mandatory JavaScript file, *WidgetName.js* and an optional stylesheet, *WidgetName.css* |
|
929
|
138 |
|
|
1022
|
139 |
### Common video player Widget oOptions ### |
|
|
140 |
|
|
|
141 |
- **video**, video file URL. |
|
|
142 |
- **height**, video player height (width is defined in the main *config* of IriSP.Metadataplayer(*config*) ). |
|
|
143 |
- **autostart**, as its name implies, *true* or *false*. |
|
|
144 |
- **url\_transform**, function to transform the video url, if a transformation is needed before integration. |
|
|
145 |
|
|
|
146 |
Here is the list of available video player widget with their options. No specific css used. |
|
|
147 |
|
|
|
148 |
#### HtmlPlayer #### |
|
|
149 |
|
|
|
150 |
- **Role** : pure html5 video player. |
|
|
151 |
|
|
|
152 |
#### JwpPlayer #### |
|
|
153 |
|
|
|
154 |
- **Role** : interface with JW Player, often useful with rtmp streamed flash urls or mp4 files fallback. Last version delivered : 6.5.3609. |
|
|
155 |
|
|
|
156 |
#### PopcornPlayer #### |
|
|
157 |
|
|
|
158 |
- **Role** : interface with popcorn player, which enables to read html5, youtube and vimeo videos. Last version delivered : 1.3. |
|
|
159 |
- **Option**: |
|
|
160 |
- **video**: video file URL or youtube/vimeo page, for example http://www.youtube.com/watch?v=Eb7U-umL5L4 or http://vimeo.com/80887929. |
|
|
161 |
|
|
|
162 |
#### DailymotionPlayer #### |
|
|
163 |
|
|
|
164 |
- **Role** : interface with the dailymotion player. |
|
|
165 |
- **Option**: |
|
|
166 |
- **video**: URL of the dailymotion page, for example http://www.dailymotion.com/video/x16kajy. |
|
|
167 |
|
|
|
168 |
#### AdaptivePlayer #### |
|
|
169 |
|
|
|
170 |
- **Role** : selects JwpPlayer or HtmlPlayer depending of the url. |
|
|
171 |
|
|
|
172 |
#### AutoPlayer #### |
|
|
173 |
|
|
|
174 |
- **Role** : select the appropriate player depending of the url among all the available players. For example rtmp leads to JwpPlayer, youtube to PopcornPlayer, webm to HtmlPlayer, etc. |
|
|
175 |
|
|
|
176 |
#### PlaceholderPlayer #### |
|
|
177 |
|
|
|
178 |
- **Role** : Placeholder, does not read any video. |
|
|
179 |
|
|
|
180 |
#### HtmlMashupPlayer #### |
|
|
181 |
|
|
|
182 |
- **Role** : Enables to read mashup "bout à bout" of html5 videos. |
|
|
183 |
|
|
|
184 |
#### MashupPlayer #### |
|
|
185 |
|
|
|
186 |
- **Role** : Enables to read mashup "bout à bout" of html5 videos. |
|
|
187 |
|
|
|
188 |
|
|
|
189 |
### Common Widget Options ### |
|
929
|
190 |
|
|
|
191 |
- **metadata**, metadata source, as an object with the following properties: { url: *URL of the data source*, type: *Serializer type* } |
|
|
192 |
- **container**, used to position the widget in a given HTML element, given its ID. If omitted, the widget will be automatically aligned vertically below the player. |
|
|
193 |
- **annotation\_type**, in widgets displaying annotations. This option can have the following values: |
|
|
194 |
- *String*: will display widgets whose annotation type title includes the string. Example: "segments" will show annotations whose annotation type have a title with "Segments" in it. |
|
|
195 |
- *Array of string*: to display several annotation types. Example: "Segments" |
|
|
196 |
- *false*: to display all annotations related to the media. |
|
|
197 |
|
|
951
|
198 |
Here’s a list of available widgets: |
|
929
|
199 |
|
|
1022
|
200 |
#### Annotation #### |
|
929
|
201 |
|
|
951
|
202 |
- **Role**: Displays information relative to a single segment/annotation while it is being played |
|
929
|
203 |
- **Options**: |
|
951
|
204 |
- **annotation\_type**: (default: "chapitrage"), see *Common widget options*. |
|
|
205 |
- **show\_top\_border**: (default: false), show top widget border (useful depending on whether it is used in combination with the *Arrow* widget) |
|
|
206 |
- **site\_name**: "Lignes de Temps", site name to display when users click on "Share on social networks". |
|
929
|
207 |
- Uses a CSS stylesheet: yes |
|
|
208 |
|
|
951
|
209 |
### AnnotationsList ### |
|
929
|
210 |
|
|
951
|
211 |
- **Role**: Show a list of annotations. |
|
929
|
212 |
- **Options**: |
|
951
|
213 |
- **ajax\_url**: (default: false), specifies an API template when annotations have to be loaded from an external source. In the URL, {{media}} will be replaced by the media ID, {{begin}} by the start *timecode* in milliseconds, {{end}} by the end *timecode* in milliseconds. If set to *false*, displayed annotations will be the ones loaded from the default metadata source. On the *Lignes de Temps*, the URL of the segments API is http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=? |
|
|
214 |
- **ajax\_granularity**: (default: 300000 ms = 5 minutes), specifies the timespan to be loaded from the segment API, around the current timecode. |
|
|
215 |
- **default\_thumbnail**: thumbnail to display when an annotation doesn’t have one. |
|
|
216 |
- **foreign\_url**: Specifies an URL template for when an annotation doesn’t have an URL and is not in the current project. In that template, {{media}} will be replaced by the media ID, {{project}} by the project ID, {{annotationType}} by the annotation type ID and {{annotation}} by the annotation ID. For the *Lignes de temps* platform, this URL is http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}} |
|
|
217 |
- **annotation\_type**: (default: false), see *Common widget options*, above |
|
|
218 |
- **refresh\_interval**: (default: 0), Ajax refresh interval, to get annotations added while watching (works with either the default source or the external segment API) |
|
|
219 |
- **limit\_count**: (default: 10), Maximum number of annotations to display at once. |
|
|
220 |
- **newest\_first**: (default: false), When *true*, annotations are sorted by decreasing creation date. When *false*, annotations are sorted by increasing timecode. |
|
929
|
221 |
- Uses a CSS stylesheet: yes |
|
|
222 |
|
|
1022
|
223 |
#### Arrow #### |
|
929
|
224 |
|
|
|
225 |
- **Role**: Draws the position arrow showing where the annotation is. |
|
|
226 |
- **Options**: |
|
|
227 |
- **arrow\_height**: (default: 16), arrow height in pixels |
|
|
228 |
- **arrow\_width**: (default: 24), arrow width in pixels |
|
|
229 |
- **base\_height**: (default: 0), distance between arrow bottom and widget button. Mandatory for a rounded widget. |
|
|
230 |
- **base\_curve**: (default: 0), curvature radius in pixels for a rounded widget. |
|
|
231 |
- **fill\_url**: fill image URL. |
|
|
232 |
- **fill\_color**: (default: "#ffffff" = white), fill color. Can be replaced by a gradient described by : gradient angle-start color-end color, e.g.: "90-#000-#fff" |
|
|
233 |
- **stroke\_color**: (default: "#b7b7b7" = grey), border color. |
|
|
234 |
- **stroke\_width**: (default: 1.5), border width. |
|
|
235 |
- **animation\_speed**: (default: 20), arrow animation speed. |
|
|
236 |
- **pilot\_widget**: (default: "Annotation"), widget driving the arrow position. |
|
|
237 |
- Uses external library: Raphael |
|
|
238 |
- Uses a CSS stylesheet: no |
|
|
239 |
|
|
1022
|
240 |
#### Controller #### |
|
929
|
241 |
|
|
951
|
242 |
- **Role**: Play, Pause, Search, Annotate buttons and volume control |
|
929
|
243 |
- **Options**: |
|
951
|
244 |
- **disable\_annotate\_btn**: (default: false), disables Annotate button if set to *true* |
|
|
245 |
- **disable\_search\_btn**: (default: true), disables Search button |
|
|
246 |
- Uses external library: jQuery UI |
|
929
|
247 |
- Uses a CSS stylesheet: yes |
|
|
248 |
|
|
1022
|
249 |
#### CreateAnnotation #### |
|
929
|
250 |
|
|
|
251 |
- **Role**: Displays a form to create a new annotation |
|
|
252 |
- **Options**: |
|
|
253 |
- **show\_title\_field**: (default: true), shows or hides the annotation title field. |
|
|
254 |
- **creator\_name**: Default annotation creator name. |
|
|
255 |
- **creator\_avatar**: Creator profile thumbnail URL. |
|
|
256 |
- **tag\_titles**: (default: false), list of tags to display, as an array of strings: [ "#firstTag", "#secondTag" ] |
|
|
257 |
- **tags**: (default: false), list of tags to display, as an array of objects: [ { id: "tag-001", title: "#firstTag" } ]. Overrides *tag\_titles*. If both options are set to *false*, the most frequent tags in the project will be displayed. |
|
|
258 |
- **max\_tags**: (default: 8), maximum number of tags to display. |
|
|
259 |
- **polemics**: polemic buttons to display, as an array of objects, e.g.: [ { keyword: "++", background\_color: "#00a000", text\_color: "#ffffff" } ] |
|
|
260 |
- **annotation\_type**: (default: "Contributions"), see *Common widget options*. |
|
|
261 |
- **api\_serializer**: (default: "ldt\_annotate"), serializer to use when sending annotations. |
|
|
262 |
- **api\_endpoint\_template**: API Endpoint URL, with {{id\}\} as a placeholder for project ID, e.g.: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/annotations/{{id}}.json". |
|
|
263 |
- **api\_method**: (default: "PUT"), HTTP method used to send annotations. *Lignes de temps* platform uses PUT. |
|
|
264 |
- **close\_widget\_timeout**: (default: 0), duration in milliseconds before widget is closed after send. If value is set to 0, the widget stays open. |
|
|
265 |
- Uses a CSS stylesheet: yes |
|
|
266 |
|
|
1022
|
267 |
#### HelloWorld #### |
|
951
|
268 |
|
|
|
269 |
- **Role**: Example widget demonstration the API capabilities |
|
|
270 |
- **Options**: |
|
|
271 |
- **text**: (default: "world"), text to display after "Hello, " |
|
|
272 |
- Uses a CSS stylesheet: yes |
|
|
273 |
|
|
1022
|
274 |
#### Media #### |
|
951
|
275 |
|
|
|
276 |
- **Role**: Shows current media, as well as other medias in the project. Mostly used for mashups |
|
|
277 |
- **Options**: |
|
|
278 |
- **default\_thumbnail**: thumbnail to display when a media doesn’t have one |
|
|
279 |
- **media\_url\_template**: Specifies an URL template for when a media doesn’t include URL information, e.g.: "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/" |
|
|
280 |
- Uses a CSS stylesheet: yes |
|
|
281 |
|
|
1022
|
282 |
#### Mediafragment #### |
|
951
|
283 |
|
|
|
284 |
- **Role**: Handles *Media fragments*-compliant URIs (W3C Recommandation): Changing the playing position changes the URL and vice-versa. |
|
|
285 |
- An URL ending with #id=*annotation ID* points to an annotation, one with #t=*time in seconds* to a precise position. |
|
|
286 |
- No options |
|
|
287 |
- Uses a CSS stylesheet: no |
|
|
288 |
|
|
1022
|
289 |
#### Polemic #### |
|
929
|
290 |
|
|
|
291 |
- **Role**: Shows the *polemical timeline*, i.e. tweets colored according to the polemical syntax. Depending on the number of tweets, two visualization modes exist: |
|
|
292 |
- Below the threshold (low volume mode), tweets are represented as individual squares. |
|
|
293 |
- Above the threshold, columns show aggregated numbers of tweets by color. |
|
|
294 |
- **Options**: |
|
|
295 |
- **element\_width**: (default: 5), width in pixels of a tweet column. |
|
|
296 |
- **element\_height**: (default: 5), height in pixels of a tweet, in low volume mode. |
|
|
297 |
- **max\_elements**: (default: 15), threshold between low and high volume mode, in tweets per column. |
|
|
298 |
- **annotation\_type**: (default: "tweet"), see *Common widget options*. |
|
|
299 |
- **defaultcolor**: (default: "#585858" = grey), default color for tweets with no polemical coloring. |
|
|
300 |
- **foundcolor**: (default: "#fc00ff" = magenta), color for tweets in a search result. |
|
|
301 |
- **polemics**: polemical colors to display, as an array of objects, e.g. [ { name: "OK", keywords: [ "++" ], color: "#1D973D" } ] |
|
|
302 |
- Uses a CSS stylesheet: yes |
|
|
303 |
|
|
1022
|
304 |
#### Renkan #### |
|
951
|
305 |
|
|
|
306 |
- **Role**: Interface with the *Renkan* project. |
|
|
307 |
- Uses external libraries: jQuery Mousewheel, Backbone, Backbone Relational, Renkan-Publish |
|
|
308 |
- Uses a CSS stylesheet: oui |
|
|
309 |
|
|
1022
|
310 |
#### Segments #### |
|
951
|
311 |
|
|
|
312 |
- **Role**: Displays segments of a media as rectangles on an horizontal line. |
|
|
313 |
- **Options**: |
|
|
314 |
- **colors**: colors to use when annotations don’t have colour metadata. |
|
|
315 |
- **height**: height of the widget, in pixels |
|
|
316 |
- Uses a CSS stylesheet: yes |
|
|
317 |
|
|
1022
|
318 |
#### Slider #### |
|
929
|
319 |
|
|
951
|
320 |
- **Role**: A combination of a Progress bar and a Slider displaying and allowing repositioning of the current video playback position. |
|
929
|
321 |
- **Options**: |
|
951
|
322 |
- **minimized\_height**: (default: 4), height in pixels of the *Slider* in minimized mode |
|
|
323 |
- **maximized\_height**: (default: 10), height in pixels du *Slider* in maximized mode (on mouseover) |
|
|
324 |
- **minimize\_timeout**: (default: 1500), duration in milliseconds before the *Slider* is automatically minimized. If set to 0, *Slider* stays maximized. |
|
|
325 |
- Uses external library: jQuery UI |
|
|
326 |
- Uses a CSS stylesheet: yes |
|
|
327 |
|
|
1022
|
328 |
#### Social #### |
|
951
|
329 |
|
|
|
330 |
- **Role**: Adds buttons to share an URL on social networks |
|
|
331 |
- **Options**: |
|
|
332 |
- **text**: displays a text |
|
|
333 |
- **url**: the URL to share |
|
|
334 |
- **show_url**: Shows a button to copy/paste an URL |
|
|
335 |
- **show_twitter**: Shows a button to share on Twitter |
|
|
336 |
- **show_fb**: Shows a button to share on Facebook |
|
|
337 |
- **show_gplus**: Shows a button to share on Google+ |
|
|
338 |
- **show_mail**: Shows a button to share by e-mail |
|
|
339 |
- Uses a CSS stylesheet: yes |
|
|
340 |
- Uses external library: ZeroClipboard |
|
929
|
341 |
|
|
1022
|
342 |
#### Sparkline #### |
|
929
|
343 |
|
|
951
|
344 |
- **Role**: Displays a curve showing the volume of tweets across time. |
|
929
|
345 |
- **Options**: |
|
|
346 |
- **annotation\_type**: see *Common widget options*, above |
|
951
|
347 |
- **lineColor**: (default: "#7492b4" = blue-grey), line color |
|
|
348 |
- **fillColor**: (default: "#aeaeb8" = grey), color of the surface below the curve |
|
|
349 |
- **lineWidth**: (default: 2), line width in pixels |
|
|
350 |
- **slice\_count**: (default: 20), number of slices used to sample volumes |
|
|
351 |
- **height**: (default: 50), curve height |
|
|
352 |
- **margin**: (default: 5), margin above the curve |
|
929
|
353 |
- Uses external library: Raphael |
|
|
354 |
- Uses a CSS stylesheet: no |
|
|
355 |
|
|
1022
|
356 |
#### Tagcloud #### |
|
929
|
357 |
|
|
951
|
358 |
- **Role**: Shows a tag cloud - WARNING: Doesn’t work well with Japanese language because of word splitting issues |
|
929
|
359 |
- **Options**: |
|
|
360 |
- **include\_titles**: (default: true), includes annotation titles when computing tag cloud. |
|
|
361 |
- **include\_descriptions**: (default: true), includes annotation descriptions when computing tag cloud. |
|
|
362 |
- **include\_tag\_texts**: (default: true), includes tags in annotations when computing tag cloud. |
|
|
363 |
- **tag\_count**: (default: 30), maximum number of tags to display. |
|
|
364 |
- **stopword\_language**: (default: "fr"), language code for the stopword list. |
|
|
365 |
- **custom\_stopwords**: (default: []), custom stopwords to filter out. |
|
|
366 |
- **exclude\_pattern**: (default: false), regexp to filter out. |
|
|
367 |
- **annotation\_type**: (default: false), see *Common widget options*, above. The annotation type of the annotations whose text is extracted to compute the cloud. |
|
951
|
368 |
- **segment\_annotation\_type**: (default: false), defines a segmentation of the tag-cloud, so as to display a distinct tag cloud for each segment of this annotation type. When set to *false*, a single tag cloud is created for the whole media. |
|
|
369 |
- **min\_font\_size**: (default: 10), font size for the most frequent word. |
|
|
370 |
- **max\_font\_size**: (default: 26), font size for the least frequent word. |
|
929
|
371 |
- Uses a CSS stylesheet: yes |
|
|
372 |
|
|
1022
|
373 |
#### Tooltip #### |
|
929
|
374 |
|
|
|
375 |
- **Role**: Displays a tooltip. Is mainly used as a subwidget, embedded and called from another widget. |
|
|
376 |
- No options |
|
|
377 |
- Uses a CSS stylesheet: yes |
|
|
378 |
|
|
1022
|
379 |
#### Trace #### |
|
929
|
380 |
|
|
|
381 |
- **Role**: Sends traces to the KTBS server. |
|
|
382 |
- **Options**: |
|
|
383 |
- **js\_console**: (default: false), shows logs in the browser console. |
|
|
384 |
- **url**: (default: "http://traces.advene.org:5000/"), URL of the trace server |
|
|
385 |
- **requestmode**: (default: "GET"), HTTP method used to send traces (only *"GET"* allows *cross-domain* sending). |
|
|
386 |
- **syncmode**: (default: "sync"), allows traces to be sent grouped (*"delayed"* mode) or as single events (*"sync"*). |
|
|
387 |
- Uses external library: ktbs4js tracemanager |
|
|
388 |
- Uses a CSS stylesheet: no |
|
|
389 |
|
|
1022
|
390 |
#### Tweet #### |
|
929
|
391 |
|
|
951
|
392 |
- **Role**: Show the contents on a tweet when clicked (in Polemic Widget) |
|
929
|
393 |
- **Options**: |
|
951
|
394 |
- **hide_timeout**: (default: 5000), time (in milliseconds) before hiding the Tweet. |
|
|
395 |
- **polemics**: See *Polemic* widget |