| author | hamidouk |
| Mon, 16 Jan 2012 15:06:41 +0100 | |
| branch | popcorn-port |
| changeset 640 | a6b64eeeb76d |
| parent 635 | c33b08e0e7c4 |
| child 665 | 372852c77e6d |
| permissions | -rw-r--r-- |
| 592 | 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>Metadataplayer - Polemic tweet integration test</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 |
Integration test - Using an ldtplatform located at http://localhost/pf/ |
|
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> |
|
| 600 | 22 |
<div id="Sparkline"></div> |
| 592 | 23 |
<script type="text/javascript"> |
| 598 | 24 |
var platf_url = "http://localhost/pf/ldtplatform/ldt/"; |
| 635 | 25 |
//var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d"; |
26 |
var project_id = "67d92570-4024-11e1-b8b0-001d7d7c6d1d"; |
|
| 618 | 27 |
|
28 |
IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = false; |
|
| 592 | 29 |
var config = { |
30 |
gui:{ |
|
31 |
width:650, |
|
32 |
height:2100, |
|
33 |
container:'LdtPlayer', |
|
34 |
css:'../../src/css/LdtPlayer.css', |
|
35 |
widgets: [ |
|
|
624
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
36 |
{type: "PolemicWidget", |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
37 |
width: 640, /* required for this widget */ |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
38 |
height: 50, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
39 |
metadata:{ |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
40 |
format:'cinelab', |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
41 |
src:platf_url + 'cljson/id/' + project_id, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
42 |
type:'json'}, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
43 |
|
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
44 |
requires: [{ |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
45 |
type: "TooltipWidget", |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
46 |
width: 180, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
47 |
heigh: 160, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
48 |
metadata : { |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
49 |
format:'cinelab', |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
50 |
src:platf_url + 'cljson/id/' + project_id, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
51 |
type:'empty' |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
52 |
} |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
53 |
}], |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
54 |
}, |
| 592 | 55 |
{type: "AnnotationsListWidget", |
56 |
container: "AnnotationsListContainer", |
|
57 |
metadata:{ |
|
58 |
format:'cinelab', |
|
| 598 | 59 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 60 |
type:'json'} |
61 |
}, |
|
| 600 | 62 |
{type: "SparklineWidget", |
63 |
width: 640, /* required for this widget */ |
|
64 |
height: 50, |
|
65 |
metadata:{ |
|
66 |
format:'cinelab', |
|
67 |
src:platf_url + 'cljson/id/' + project_id, |
|
68 |
type:'json'} |
|
69 |
}, |
|
|
624
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
70 |
{type: "SliderWidget", |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
71 |
metadata:{ |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
72 |
format:'cinelab', |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
73 |
src:platf_url + 'cljson/id/' + project_id, |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
74 |
type:'json'} |
|
177dfeacc7a6
made the polemicwidget not show itself if it has no data to display.
hamidouk
parents:
618
diff
changeset
|
75 |
}, |
| 592 | 76 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
77 |
mode: "radio", |
|
78 |
metadata:{ |
|
79 |
format:'cinelab', |
|
| 598 | 80 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 81 |
type:'json'} |
82 |
}, |
|
83 |
{type: "SegmentsWidget", |
|
84 |
metadata:{ |
|
85 |
format:'cinelab', |
|
| 598 | 86 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 87 |
type:'json'}, |
88 |
requires: [{ |
|
89 |
type: "TooltipWidget", |
|
90 |
width: 180, |
|
91 |
heigh: 160, |
|
92 |
metadata : { |
|
93 |
type:'empty' |
|
94 |
} |
|
95 |
}], |
|
96 |
}, |
|
97 |
{type: "SliceWidget", |
|
98 |
metadata:{ |
|
99 |
format:'cinelab', |
|
| 598 | 100 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 101 |
type:'json'} |
102 |
}, |
|
103 |
{type: "ArrowWidget", |
|
104 |
metadata:{ |
|
105 |
format:'cinelab', |
|
| 598 | 106 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 107 |
type:'json'} |
108 |
}, |
|
109 |
||
110 |
||
111 |
{type: "AnnotationsWidget", |
|
112 |
metadata:{ |
|
113 |
format:'cinelab', |
|
| 598 | 114 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 115 |
type:'json'} |
116 |
}, |
|
117 |
{type: "TweetsWidget", |
|
118 |
metadata:{ |
|
119 |
format:'cinelab', |
|
| 598 | 120 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 121 |
type:'json'} |
122 |
}, |
|
123 |
{type: "createAnnotationWidget", |
|
124 |
metadata:{ |
|
125 |
format:'cinelab', |
|
| 598 | 126 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 127 |
type:'json'} |
128 |
} |
|
129 |
] |
|
130 |
}, |
|
131 |
player:{ |
|
132 |
type:'jwplayer', // player type |
|
133 |
live: true, |
|
134 |
height: 300, |
|
135 |
width: 640, |
|
136 |
provider: "rtmp" |
|
137 |
}, |
|
138 |
modules: [ |
|
139 |
{ type: "MediaFragment", |
|
140 |
metadata:{ |
|
141 |
format:'cinelab', |
|
| 598 | 142 |
src:platf_url + 'cljson/id/' + project_id, |
| 592 | 143 |
type:'json'} |
144 |
}] |
|
145 |
||
146 |
}; |
|
147 |
|
|
| 598 | 148 |
IriSP.loadLibs(IriSP.lib, config, platf_url + 'cljson/id/' + project_id, |
| 592 | 149 |
function() { |
150 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
151 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
152 |
|
|
153 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
|
154 |
var modules = IriSP.configureModules(pop, config.modules); |
|
155 |
}); |
|
156 |
</script> |
|
157 |
||
158 |
||
159 |
</body> |
|
160 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
|
161 |
</html> |