|
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 Polemic tweet integration test - loading an outside ressource using JSONP. |
|
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://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
35 type:'json'} |
|
36 }, |
|
37 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
38 mode: "radio", |
|
39 metadata:{ |
|
40 format:'cinelab', |
|
41 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
42 type:'json'} |
|
43 }, |
|
44 {type: "SegmentsWidget", |
|
45 metadata:{ |
|
46 format:'cinelab', |
|
47 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
48 type:'json'}, |
|
49 requires: [{ |
|
50 type: "TooltipWidget", |
|
51 width: 180, |
|
52 heigh: 160, |
|
53 metadata : { |
|
54 type:'empty' |
|
55 } |
|
56 }], |
|
57 }, |
|
58 {type: "ArrowWidget", |
|
59 metadata:{ |
|
60 format:'cinelab', |
|
61 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
62 type:'json'} |
|
63 }, |
|
64 |
|
65 {type: "AnnotationsWidget", |
|
66 metadata:{ |
|
67 format:'cinelab', |
|
68 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
69 type:'json'} |
|
70 }, |
|
71 {type: "TweetsWidget", |
|
72 metadata:{ |
|
73 format:'cinelab', |
|
74 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
75 type:'json'} |
|
76 } |
|
77 ] |
|
78 }, |
|
79 player:{ |
|
80 type:'jwplayer', // player type |
|
81 flashplayer : '../libs/player.swf', |
|
82 live: true, |
|
83 "controlbar.position" : "none", |
|
84 height: 300, |
|
85 width: 640, |
|
86 provider: "rtmp" |
|
87 }, |
|
88 modules: [ |
|
89 { type: "MediaFragment", |
|
90 metadata:{ |
|
91 format:'cinelab', |
|
92 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
93 type:'json'} |
|
94 }] |
|
95 |
|
96 }; |
|
97 |
|
98 IriSP.loadLibs(IriSP.lib, config, "http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
|
99 function() { |
|
100 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
101 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
102 |
|
103 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
|
104 var modules = IriSP.configureModules(pop, config.modules); |
|
105 }); |
|
106 </script> |
|
107 |
|
108 |
|
109 </body> |
|
110 <div id="PopcornContainer"></div> |
|
111 </html> |