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