| author | hamidouk |
| Thu, 26 Jan 2012 12:50:20 +0100 | |
| branch | popcorn-port |
| changeset 717 | 2dce6b9a04c4 |
| parent 504 | 02daece5dfda |
| child 744 | 76400fd4ce70 |
| permissions | -rw-r--r-- |
| 199 | 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 |
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr"> |
|
3 |
||
4 |
<head> |
|
5 |
<title>Test d'intégration du widget Polemic Tweet</title> |
|
6 |
</head> |
|
7 |
||
8 |
<body> |
|
9 |
||
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
11 |
<h1>MetaDataPlayer </h1> |
|
12 |
Test d'intégration du widget polemic tweet. |
|
13 |
</div> |
|
14 |
||
15 |
||
16 |
<!-- START Integration ###################################### --> |
|
17 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
18 |
<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> |
|
19 |
||
20 |
<div id="video"></div> |
|
21 |
<div id="LdtPlayer"></div> |
|
22 |
||
23 |
<script type="text/javascript"> |
|
24 |
var config = { |
|
25 |
gui:{ |
|
26 |
width:650, |
|
27 |
height:2100, |
|
28 |
container:'LdtPlayer', |
|
29 |
css:'../../src/css/LdtPlayer.css', |
|
30 |
widgets: [ |
|
31 |
{type: "PolemicWidget", |
|
32 |
width: 640, /* required for this widget */ |
|
33 |
height: 50, |
|
34 |
heightmax: 50, |
|
35 |
metadata:{ |
|
36 |
format:'cinelab', |
|
37 |
src:'polemic_fr.json', |
|
38 |
type:'json'}, |
|
39 |
|
|
40 |
requires: [{ |
|
41 |
type: "TooltipWidget", |
|
42 |
width: 180, |
|
43 |
heigh: 160, |
|
44 |
metadata : { |
|
45 |
format:'cinelab', |
|
| 227 | 46 |
src:'polemic_fr.json', |
| 199 | 47 |
type:'empty' |
48 |
} |
|
49 |
}], |
|
50 |
}, |
|
|
279
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
51 |
{type: "SliderWidget", |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
52 |
metadata:{ |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
53 |
format:'cinelab', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
54 |
src:'polemic_fr.json', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
55 |
type:'json'} |
| 281 | 56 |
}, |
| 199 | 57 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
58 |
mode: "radio", |
|
59 |
metadata:{ |
|
60 |
format:'cinelab', |
|
61 |
src:'polemic_fr.json', |
|
62 |
type:'json'} |
|
| 227 | 63 |
}, |
|
351
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
64 |
{type: "SegmentsWidget", |
| 302 | 65 |
metadata:{ |
66 |
format:'cinelab', |
|
67 |
src:'polemic_fr.json', |
|
|
351
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
68 |
type:'json'}, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
69 |
requires: [{ |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
70 |
type: "TooltipWidget", |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
71 |
width: 180, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
72 |
heigh: 160, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
73 |
metadata : { |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
74 |
type:'empty' |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
75 |
} |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
76 |
}]}, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
77 |
|
| 302 | 78 |
{type: "ArrowWidget", |
79 |
metadata:{ |
|
80 |
format:'cinelab', |
|
81 |
src:'polemic_fr.json', |
|
82 |
type:'json'} |
|
83 |
}, |
|
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
84 |
{type: "AnnotationsWidget", |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
85 |
metadata:{ |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
86 |
format:'cinelab', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
87 |
src:'polemic_fr.json', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
88 |
type:'json'} |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
89 |
}, |
|
267
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
90 |
{type: "TweetsWidget", |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
91 |
metadata:{ |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
92 |
format:'cinelab', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
93 |
src:'polemic_fr.json', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
94 |
type:'json'} |
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
95 |
} |
| 199 | 96 |
] |
97 |
}, |
|
98 |
player:{ |
|
99 |
type:'youtube', // player type |
|
100 |
// the rest is player-dependent configuration options. |
|
| 215 | 101 |
video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y", |
| 199 | 102 |
height: 300, |
103 |
width: 640, |
|
104 |
} |
|
105 |
}; |
|
106 |
|
|
| 504 | 107 |
IriSP.loadLibs(IriSP.lib, config, "polemic_fr.json", |
| 199 | 108 |
function() { |
109 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
110 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
111 |
|
|
112 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
113 |
</script> |
|
114 |
||
115 |
||
116 |
</body> |
|
117 |
<div id="PopcornContainer"></div> |
|
| 302 | 118 |
</html> |