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> |
|
22 <div id="Sparkline"></div> |
|
23 <script type="text/javascript"> |
|
24 var platf_url = "http://localhost/pf/ldtplatform/ldt/"; |
|
25 //var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d"; |
|
26 //http://localhost/pf/ldtplatform/ldt/cljson/id/ |
|
27 //var project_id = "1771a6cf-3dfd-11e1-a3d8-001d7d7c6d1d"; |
|
28 var project_id = "1771a6cf-3dfd-11e1-a3d8-001d7d7c6d1d"; |
|
29 var json_src = platf_url + "cljson/id/" + project_id; |
|
30 |
|
31 IriSP.widgetsDefaults["createAnnotationWidget"] = {}; |
|
32 IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = false; |
|
33 |
|
34 var config = { |
|
35 gui:{ |
|
36 width:650, |
|
37 container:'LdtPlayer', |
|
38 css:'../../src/css/LdtPlayer.css', |
|
39 widgets: [ |
|
40 {type: "PolemicWidget", |
|
41 width: 640, /* required for this widget */ |
|
42 height: 50, |
|
43 metadata:{ |
|
44 format:'cinelab', |
|
45 src:json_src, |
|
46 type:'json'}, |
|
47 |
|
48 requires: [{ |
|
49 type: "TooltipWidget", |
|
50 width: 180, |
|
51 heigh: 160, |
|
52 metadata : { |
|
53 format:'cinelab', |
|
54 src:json_src, |
|
55 type:'empty' |
|
56 } |
|
57 }], |
|
58 }, |
|
59 {type: "AnnotationsListWidget", |
|
60 container: "AnnotationsListContainer", |
|
61 metadata:{ |
|
62 format:'cinelab', |
|
63 src:json_src, |
|
64 type:'json'} |
|
65 }, |
|
66 {type: "SparklineWidget", |
|
67 width: 640, /* required for this widget */ |
|
68 height: 50, |
|
69 metadata:{ |
|
70 format:'cinelab', |
|
71 src:json_src, |
|
72 type:'json'} |
|
73 }, |
|
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 }, |
|
88 {type: "SliderWidget", |
|
89 metadata:{ |
|
90 format:'cinelab', |
|
91 src:json_src, |
|
92 type:'json'} |
|
93 }, |
|
94 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
95 mode: "radio", |
|
96 metadata:{ |
|
97 format:'cinelab', |
|
98 src:json_src, |
|
99 type:'json'} |
|
100 }, |
|
101 {type: "SegmentsWidget", |
|
102 metadata:{ |
|
103 format:'cinelab', |
|
104 src:json_src, |
|
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', |
|
118 src:json_src, |
|
119 type:'json'} |
|
120 }, |
|
121 {type: "ArrowWidget", |
|
122 metadata:{ |
|
123 format:'cinelab', |
|
124 src:json_src, |
|
125 type:'json'} |
|
126 }, |
|
127 |
|
128 |
|
129 {type: "AnnotationsWidget", |
|
130 metadata:{ |
|
131 format:'cinelab', |
|
132 src:json_src, |
|
133 type:'json'} |
|
134 }, |
|
135 {type: "TweetsWidget", |
|
136 metadata:{ |
|
137 format:'cinelab', |
|
138 src:json_src, |
|
139 type:'json'} |
|
140 }, |
|
141 {type: "createAnnotationWidget", |
|
142 metadata:{ |
|
143 format:'cinelab', |
|
144 src:json_src, |
|
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', |
|
160 src:json_src, |
|
161 type:'json'} |
|
162 }] |
|
163 |
|
164 }; |
|
165 |
|
166 IriSP.initPlayer(config, json_src); |
|
167 </script> |
|
168 |
|
169 |
|
170 </body> |
|
171 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
|
172 </html> |
|