| author | hamidouk |
| Mon, 16 Jan 2012 15:06:41 +0100 | |
| branch | popcorn-port |
| changeset 640 | a6b64eeeb76d |
| parent 585 | 44a4a4a179c1 |
| child 655 | b1e2dfc7a740 |
| 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"> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
24 |
var config = { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
25 |
gui:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
26 |
width:650, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
27 |
height:2100, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
28 |
container:'LdtPlayer', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
29 |
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
|
30 |
widgets: [ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
31 |
{type: "PolemicWidget", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
32 |
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
|
33 |
height: 50, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
34 |
metadata:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
35 |
format:'cinelab', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
36 |
src:'polemic_fr.json', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
37 |
type:'json'}, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
38 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
39 |
requires: [{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
40 |
type: "TooltipWidget", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
41 |
width: 180, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
42 |
heigh: 160, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
43 |
metadata : { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
44 |
format:'cinelab', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
45 |
src:'polemic.json', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
46 |
type:'empty' |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
47 |
} |
|
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 |
}, |
| 523 | 50 |
{type: "SparklineWidget", |
|
524
a06527b99f22
the sparklineWidget height and width are now parametrable.
hamidouk
parents:
523
diff
changeset
|
51 |
width: 640, /* required for this widget */ |
|
a06527b99f22
the sparklineWidget height and width are now parametrable.
hamidouk
parents:
523
diff
changeset
|
52 |
height: 50, |
| 523 | 53 |
metadata:{ |
54 |
format:'cinelab', |
|
55 |
src:'polemic_fr.json', |
|
56 |
type:'json'} |
|
57 |
}, |
|
|
279
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
58 |
{type: "SliderWidget", |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
59 |
metadata:{ |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
60 |
format:'cinelab', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
61 |
src:'polemic_fr.json', |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
62 |
type:'json'} |
|
2c65775623cb
moved the sliderwidget just under the polemic widget in the integration tests.
hamidouk
parents:
266
diff
changeset
|
63 |
}, |
| 585 | 64 |
{type: "AnnotationsListWidget", |
65 |
container: "AnnotationsListContainer", |
|
66 |
metadata:{ |
|
67 |
format:'cinelab', |
|
68 |
src:'polemic_fr.json', |
|
69 |
type:'json'} |
|
70 |
}, |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
71 |
{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
|
72 |
mode: "radio", |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
73 |
metadata:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
74 |
format:'cinelab', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
75 |
src:'polemic_fr.json', |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
76 |
type:'json'} |
| 227 | 77 |
}, |
| 302 | 78 |
{type: "SegmentsWidget", |
79 |
metadata:{ |
|
80 |
format:'cinelab', |
|
81 |
src:'polemic_fr.json', |
|
|
336
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
82 |
type:'json'}, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
83 |
requires: [{ |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
84 |
type: "TooltipWidget", |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
85 |
width: 180, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
86 |
heigh: 160, |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
87 |
metadata : { |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
88 |
type:'empty' |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
89 |
} |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
90 |
}], |
| 537 | 91 |
}, |
92 |
{type: "SliceWidget", |
|
93 |
metadata:{ |
|
94 |
format:'cinelab', |
|
95 |
src:'polemic_fr.json', |
|
96 |
type:'json'} |
|
97 |
}, |
|
| 302 | 98 |
{type: "ArrowWidget", |
99 |
metadata:{ |
|
100 |
format:'cinelab', |
|
101 |
src:'polemic_fr.json', |
|
102 |
type:'json'} |
|
103 |
}, |
|
104 |
||
| 537 | 105 |
|
|
266
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
106 |
{type: "AnnotationsWidget", |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
107 |
metadata:{ |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
108 |
format:'cinelab', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
109 |
src:'polemic_fr.json', |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
110 |
type:'json'} |
|
1c83c4bba0ce
added an annotationWidget to the integration tests.
hamidouk
parents:
227
diff
changeset
|
111 |
}, |
|
267
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
112 |
{type: "TweetsWidget", |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
113 |
metadata:{ |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
114 |
format:'cinelab', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
115 |
src:'polemic_fr.json', |
|
f84013fb19dc
added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents:
266
diff
changeset
|
116 |
type:'json'} |
| 543 | 117 |
}, |
118 |
{type: "createAnnotationWidget", |
|
119 |
metadata:{ |
|
120 |
format:'cinelab', |
|
121 |
src:'polemic_fr.json', |
|
122 |
type:'json'} |
|
| 280 | 123 |
} |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
124 |
] |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
125 |
}, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
126 |
player:{ |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
127 |
type:'jwplayer', // player type |
| 178 | 128 |
live: true, |
129 |
height: 300, |
|
130 |
width: 640, |
|
131 |
provider: "rtmp" |
|
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
132 |
}, |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
133 |
modules: [ |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
134 |
{ type: "MediaFragment", |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
135 |
metadata:{ |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
136 |
format:'cinelab', |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
137 |
src:'polemic_fr.json', |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
138 |
type:'json'} |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
139 |
}] |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
140 |
|
|
213
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 |
|
| 504 | 143 |
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
|
144 |
function() { |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
145 |
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
|
146 |
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
|
147 |
|
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
148 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
149 |
var modules = IriSP.configureModules(pop, config.modules); |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
150 |
}); |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
151 |
</script> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
152 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
153 |
|
| 178 | 154 |
</body> |
| 585 | 155 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
| 302 | 156 |
</html> |