|
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 |
|
23 <script type="text/javascript"> |
|
24 var config = { |
|
25 gui:{ |
|
26 width:650, |
|
27 height:2100, |
|
28 container:'LdtPlayer', |
|
29 css:'../../src/css/LdtPlayer.css', |
|
30 widgets: [ |
|
31 {type: "SliderWidget", |
|
32 metadata:{ |
|
33 format:'cinelab', |
|
34 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
35 type:'json'} |
|
36 }, |
|
37 |
|
38 {type: "AnnotationsListWidget", |
|
39 container: "AnnotationsListContainer", |
|
40 metadata:{ |
|
41 format:'cinelab', |
|
42 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
43 type:'json'} |
|
44 }, |
|
45 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
46 mode: "radio", |
|
47 metadata:{ |
|
48 format:'cinelab', |
|
49 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
50 type:'json'} |
|
51 }, |
|
52 {type: "SegmentsWidget", |
|
53 metadata:{ |
|
54 format:'cinelab', |
|
55 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
56 type:'json'}, |
|
57 requires: [{ |
|
58 type: "TooltipWidget", |
|
59 width: 180, |
|
60 heigh: 160, |
|
61 metadata : { |
|
62 type:'empty' |
|
63 } |
|
64 }], |
|
65 }, |
|
66 {type: "SliceWidget", |
|
67 metadata:{ |
|
68 format:'cinelab', |
|
69 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
70 type:'json'} |
|
71 }, |
|
72 {type: "ArrowWidget", |
|
73 metadata:{ |
|
74 format:'cinelab', |
|
75 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
76 type:'json'} |
|
77 }, |
|
78 |
|
79 |
|
80 {type: "AnnotationsWidget", |
|
81 metadata:{ |
|
82 format:'cinelab', |
|
83 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
84 type:'json'} |
|
85 }, |
|
86 {type: "TweetsWidget", |
|
87 metadata:{ |
|
88 format:'cinelab', |
|
89 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
90 type:'json'} |
|
91 }, |
|
92 {type: "createAnnotationWidget", |
|
93 metadata:{ |
|
94 format:'cinelab', |
|
95 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
96 type:'json'} |
|
97 } |
|
98 ] |
|
99 }, |
|
100 player:{ |
|
101 type:'jwplayer', // player type |
|
102 live: true, |
|
103 height: 300, |
|
104 width: 640, |
|
105 provider: "rtmp" |
|
106 }, |
|
107 modules: [ |
|
108 { type: "MediaFragment", |
|
109 metadata:{ |
|
110 format:'cinelab', |
|
111 src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be', |
|
112 type:'json'} |
|
113 }] |
|
114 |
|
115 }; |
|
116 |
|
117 IriSP.loadLibs(IriSP.lib, config, "http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be", |
|
118 function() { |
|
119 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
120 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
121 |
|
122 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
|
123 var modules = IriSP.configureModules(pop, config.modules); |
|
124 }); |
|
125 </script> |
|
126 |
|
127 |
|
128 </body> |
|
129 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
|
130 </html> |