| author | hamidouk |
| Thu, 15 Dec 2011 10:45:41 +0100 | |
| branch | popcorn-port |
| changeset 467 | 79173b75e97c |
| parent 457 | fbcb991cc595 |
| child 504 | 02daece5dfda |
| 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 |
<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> |
|
20 |
<script src="../../res/js/jquery.min.js" type="text/javascript"></script> |
|
21 |
<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script> |
|
22 |
<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script> |
|
23 |
||
24 |
<div id="video"></div> |
|
25 |
<div id="LdtPlayer"></div> |
|
26 |
||
27 |
<script type="text/javascript"> |
|
28 |
$(document).ready(function() { |
|
29 |
var config = { |
|
30 |
gui:{ |
|
31 |
width:650, |
|
32 |
height:2100, |
|
33 |
container:'LdtPlayer', |
|
34 |
css:'../../src/css/LdtPlayer.css', |
|
35 |
widgets: [ |
|
36 |
{type: "PolemicWidget", |
|
37 |
width: 640, /* required for this widget */ |
|
38 |
height: 50, |
|
39 |
heightmax: 50, |
|
40 |
metadata:{ |
|
41 |
format:'cinelab', |
|
42 |
src:'polemic_fr.json', |
|
43 |
type:'json'}, |
|
44 |
|
|
45 |
requires: [{ |
|
46 |
type: "TooltipWidget", |
|
47 |
width: 180, |
|
48 |
heigh: 160, |
|
49 |
metadata : { |
|
50 |
format:'cinelab', |
|
| 227 | 51 |
src:'polemic_fr.json', |
| 199 | 52 |
type:'empty' |
53 |
} |
|
54 |
}], |
|
55 |
}, |
|
|
279
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
56 |
{type: "SliderWidget", |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
57 |
metadata:{ |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
58 |
format:'cinelab', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
59 |
src:'polemic_fr.json', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
60 |
type:'json'} |
| 281 | 61 |
}, |
| 199 | 62 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
63 |
mode: "radio", |
|
64 |
metadata:{ |
|
65 |
format:'cinelab', |
|
66 |
src:'polemic_fr.json', |
|
67 |
type:'json'} |
|
| 227 | 68 |
}, |
|
351
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
69 |
{type: "SegmentsWidget", |
| 302 | 70 |
metadata:{ |
71 |
format:'cinelab', |
|
72 |
src:'polemic_fr.json', |
|
|
351
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
73 |
type:'json'}, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
74 |
requires: [{ |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
75 |
type: "TooltipWidget", |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
76 |
width: 180, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
77 |
heigh: 160, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
78 |
metadata : { |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
79 |
type:'empty' |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
80 |
} |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
81 |
}]}, |
|
e5190c3a682c
forgot to update the other polemic tweet example - the segmentsWidget now depends
hamidouk
parents:
302
diff
changeset
|
82 |
|
| 302 | 83 |
{type: "ArrowWidget", |
84 |
metadata:{ |
|
85 |
format:'cinelab', |
|
86 |
src:'polemic_fr.json', |
|
87 |
type:'json'} |
|
88 |
}, |
|
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
89 |
{type: "AnnotationsWidget", |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
90 |
metadata:{ |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
91 |
format:'cinelab', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
92 |
src:'polemic_fr.json', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
93 |
type:'json'} |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
94 |
}, |
|
267
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
95 |
{type: "TweetsWidget", |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
96 |
metadata:{ |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
97 |
format:'cinelab', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
98 |
src:'polemic_fr.json', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
99 |
type:'json'} |
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
100 |
} |
| 199 | 101 |
] |
102 |
}, |
|
103 |
player:{ |
|
104 |
type:'youtube', // player type |
|
105 |
// the rest is player-dependent configuration options. |
|
| 215 | 106 |
video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y", |
| 199 | 107 |
height: 300, |
108 |
width: 640, |
|
109 |
} |
|
110 |
}; |
|
111 |
|
|
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
351
diff
changeset
|
112 |
IriSP.loadLibs(IriSP.lib, config.gui.css, "polemic_fr.json", |
| 199 | 113 |
function() { |
114 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
115 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
116 |
|
|
117 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
118 |
|
|
119 |
}); |
|
120 |
</script> |
|
121 |
||
122 |
||
123 |
</body> |
|
124 |
<div id="PopcornContainer"></div> |
|
| 302 | 125 |
</html> |