26 width:650, |
26 width:650, |
27 height:2100, |
27 height:2100, |
28 container:'LdtPlayer', |
28 container:'LdtPlayer', |
29 css:'../../src/css/LdtPlayer.css', |
29 css:'../../src/css/LdtPlayer.css', |
30 widgets: [ |
30 widgets: [ |
|
31 {type: "PolemicWidget", |
|
32 width: 640, /* required for this widget */ |
|
33 height: 50, |
|
34 metadata:{ |
|
35 format:'cinelab', |
|
36 src:'http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02', |
|
37 type:'json'}, |
|
38 |
|
39 requires: [{ |
|
40 type: "TooltipWidget", |
|
41 width: 180, |
|
42 heigh: 160, |
|
43 metadata : { |
|
44 format:'cinelab', |
|
45 src:'http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02', |
|
46 type:'empty' |
|
47 } |
|
48 }], |
|
49 }, |
31 {type: "SliderWidget", |
50 {type: "SliderWidget", |
32 metadata:{ |
51 metadata:{ |
33 format:'cinelab', |
52 format:'cinelab', |
34 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
53 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
35 type:'json'} |
54 type:'json'} |
36 }, |
55 }, |
37 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
56 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
38 mode: "radio", |
57 mode: "radio", |
39 metadata:{ |
58 metadata:{ |
40 format:'cinelab', |
59 format:'cinelab', |
41 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
60 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
42 type:'json'} |
61 type:'json'} |
43 }, |
62 }, |
44 {type: "SegmentsWidget", |
63 {type: "SegmentsWidget", |
45 metadata:{ |
64 metadata:{ |
46 format:'cinelab', |
65 format:'cinelab', |
47 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
66 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
48 type:'json'}, |
67 type:'json'}, |
49 requires: [{ |
68 requires: [{ |
50 type: "TooltipWidget", |
69 type: "TooltipWidget", |
51 width: 180, |
70 width: 180, |
52 heigh: 160, |
71 heigh: 160, |
56 }], |
75 }], |
57 }, |
76 }, |
58 {type: "ArrowWidget", |
77 {type: "ArrowWidget", |
59 metadata:{ |
78 metadata:{ |
60 format:'cinelab', |
79 format:'cinelab', |
61 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
80 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
62 type:'json'} |
81 type:'json'} |
63 }, |
82 }, |
64 |
83 |
65 {type: "AnnotationsWidget", |
84 {type: "AnnotationsWidget", |
66 metadata:{ |
85 metadata:{ |
67 format:'cinelab', |
86 format:'cinelab', |
68 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
87 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
69 type:'json'} |
88 type:'json'} |
70 }, |
89 }, |
71 {type: "TweetsWidget", |
90 {type: "TweetsWidget", |
72 metadata:{ |
91 metadata:{ |
73 format:'cinelab', |
92 format:'cinelab', |
74 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
93 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
75 type:'json'} |
94 type:'json'} |
76 } |
95 } |
77 ] |
96 ] |
78 }, |
97 }, |
79 player:{ |
98 player:{ |
87 }, |
106 }, |
88 modules: [ |
107 modules: [ |
89 { type: "MediaFragment", |
108 { type: "MediaFragment", |
90 metadata:{ |
109 metadata:{ |
91 format:'cinelab', |
110 format:'cinelab', |
92 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
111 src:"http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/ae6827dc-1f29-11e1-a049-00145ea49a02", |
93 type:'json'} |
112 type:'json'} |
94 }] |
113 }] |
95 |
114 |
96 }; |
115 }; |
97 |
116 |
98 IriSP.loadLibs(IriSP.lib, config, "http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/f20906c6-2c82-11e1-872c-00145ea49a02", |
117 IriSP.loadLibs(IriSP.lib, config, "polemic_fr.json", |
99 function() { |
118 function() { |
100 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
119 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
101 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
120 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
102 |
121 |
103 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |
122 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); |