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