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