| author | hamidouk |
| Mon, 23 Jan 2012 17:26:50 +0100 | |
| branch | popcorn-port |
| changeset 696 | 94f3e60b322a |
| parent 667 | 2407ecee1169 |
| child 708 | a4ae99d593e0 |
| permissions | -rw-r--r-- |
| 178 | 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> |
|
| 208 | 5 |
<title>Metadataplayer - Polemic tweet integration test</title> |
| 178 | 6 |
</head> |
7 |
||
8 |
<body> |
|
9 |
||
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
11 |
<h1>MetaDataPlayer</h1> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
12 |
Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
13 |
</div> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
14 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
15 |
|
| 178 | 16 |
<!-- START Integration ###################################### --> |
17 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
| 504 | 18 |
<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
19 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
20 |
<div id="video"></div> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
21 |
<div id="LdtPlayer"></div> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
22 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
23 |
<script type="text/javascript"> |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
24 |
var file = "twitterized.json"; |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
25 |
var config = { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
26 |
gui:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
27 |
width:650, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
28 |
height:2100, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
29 |
container:'LdtPlayer', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
30 |
css:'../../src/css/LdtPlayer.css', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
31 |
widgets: [ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
32 |
{type: "PolemicWidget", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
33 |
width: 640, /* required for this widget */ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
34 |
height: 50, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
35 |
metadata:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
36 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
37 |
src:file, |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
38 |
type:'json'}, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
39 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
40 |
requires: [{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
41 |
type: "TooltipWidget", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
42 |
width: 180, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
43 |
heigh: 160, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
44 |
metadata : { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
45 |
format:'cinelab', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
46 |
src:'polemic.json', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
47 |
type:'empty' |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
48 |
} |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
49 |
}], |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
50 |
}, |
| 655 | 51 |
{ |
52 |
type: "StackGraphWidget", |
|
53 |
metadata: { |
|
54 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
55 |
src:file, |
| 655 | 56 |
type:'json' |
57 |
},requires: [{ |
|
58 |
type: "TooltipWidget", |
|
59 |
width: 180, |
|
60 |
heigh: 160, |
|
61 |
metadata : { |
|
62 |
type:'empty' |
|
63 |
} |
|
| 696 | 64 |
}] |
| 655 | 65 |
}, |
| 523 | 66 |
{type: "SparklineWidget", |
|
524
a06527b99f22
the sparklineWidget height and width are now parametrable.
hamidouk
parents:
523
diff
changeset
|
67 |
width: 640, /* required for this widget */ |
|
a06527b99f22
the sparklineWidget height and width are now parametrable.
hamidouk
parents:
523
diff
changeset
|
68 |
height: 50, |
| 523 | 69 |
metadata:{ |
70 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
71 |
src:file, |
| 523 | 72 |
type:'json'} |
73 |
}, |
|
|
279
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
74 |
{type: "SliderWidget", |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
75 |
metadata:{ |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
76 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
77 |
src:file, |
|
279
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
78 |
type:'json'} |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
79 |
}, |
| 585 | 80 |
{type: "AnnotationsListWidget", |
81 |
container: "AnnotationsListContainer", |
|
82 |
metadata:{ |
|
83 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
84 |
src:file, |
| 585 | 85 |
type:'json'} |
86 |
}, |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
87 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
88 |
mode: "radio", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
89 |
metadata:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
90 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
91 |
src:file, |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
92 |
type:'json'} |
| 227 | 93 |
}, |
| 302 | 94 |
{type: "SegmentsWidget", |
95 |
metadata:{ |
|
96 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
97 |
src:file, |
|
336
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
98 |
type:'json'}, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
99 |
requires: [{ |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
100 |
type: "TooltipWidget", |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
101 |
width: 180, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
102 |
heigh: 160, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
103 |
metadata : { |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
104 |
type:'empty' |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
105 |
} |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
106 |
}], |
| 537 | 107 |
}, |
108 |
{type: "SliceWidget", |
|
109 |
metadata:{ |
|
110 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
111 |
src:file, |
| 537 | 112 |
type:'json'} |
113 |
}, |
|
| 302 | 114 |
{type: "ArrowWidget", |
115 |
metadata:{ |
|
116 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
117 |
src:file, |
| 302 | 118 |
type:'json'} |
119 |
}, |
|
120 |
||
| 537 | 121 |
|
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
122 |
{type: "AnnotationsWidget", |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
123 |
metadata:{ |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
124 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
125 |
src:file, |
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
126 |
type:'json'} |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
127 |
}, |
|
267
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
128 |
{type: "TweetsWidget", |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
129 |
metadata:{ |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
130 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
131 |
src:file, |
|
267
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
132 |
type:'json'} |
| 543 | 133 |
}, |
134 |
{type: "createAnnotationWidget", |
|
135 |
metadata:{ |
|
136 |
format:'cinelab', |
|
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
137 |
src:file, |
| 543 | 138 |
type:'json'} |
| 280 | 139 |
} |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
140 |
] |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
141 |
}, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
142 |
player:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
143 |
type:'jwplayer', // player type |
| 178 | 144 |
live: true, |
145 |
height: 300, |
|
146 |
width: 640, |
|
147 |
provider: "rtmp" |
|
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
148 |
}, |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
149 |
modules: [ |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
150 |
{ type: "MediaFragment", |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
151 |
metadata:{ |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
152 |
format:'cinelab', |
|
667
2407ecee1169
added parameter to specify json file to load from.
hamidouk
parents:
655
diff
changeset
|
153 |
src:file, |
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
154 |
type:'json'} |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
155 |
}] |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
156 |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
157 |
}; |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
158 |
|
| 504 | 159 |
IriSP.loadLibs(IriSP.lib, config, "polemic_fr.json", |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
160 |
function() { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
161 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
162 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
163 |
|
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
164 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
165 |
var modules = IriSP.configureModules(pop, config.modules); |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
166 |
}); |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
167 |
</script> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
168 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
169 |
|
| 178 | 170 |
</body> |
| 585 | 171 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
| 302 | 172 |
</html> |