39 css:'../../src/css/LdtPlayer.css'}, |
39 css:'../../src/css/LdtPlayer.css'}, |
40 player:{ |
40 player:{ |
41 type:'jwplayer', |
41 type:'jwplayer', |
42 src:'../libs/player.swf'} |
42 src:'../libs/player.swf'} |
43 }; |
43 }; |
|
44 var config = { |
|
45 gui:{ |
|
46 width:650, |
|
47 height:2100, |
|
48 container:'LdtPlayer', |
|
49 css:'../../src/css/LdtPlayer.css', |
|
50 widgets: [ |
|
51 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
52 mode: "radio", |
|
53 metadata:{ |
|
54 format:'cinelab', |
|
55 src:'../test.json', |
|
56 type:'json'} |
|
57 }, |
|
58 |
|
59 {type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget. |
|
60 mode: "radio", |
|
61 metadata:{ |
|
62 format:'cinelab', |
|
63 src:'../test.json', |
|
64 type:'json'} |
|
65 }, |
|
66 |
|
67 {type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget. |
|
68 mode: "radio", |
|
69 metadata:{ |
|
70 format:'cinelab', |
|
71 src:'../test.json', |
|
72 type:'json'} |
|
73 }, |
|
74 |
|
75 ] |
|
76 }, |
|
77 player:{ |
|
78 type:'jwplayer', // player type |
|
79 // the rest is player-dependent configuration options. |
|
80 file : "video/franceculture/franceculture_retourdudimanche20100620.flv", |
|
81 streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", |
|
82 flashplayer : '../libs/player.swf', |
|
83 live: true, |
|
84 "controlbar.position" : "none", |
|
85 height: 300, |
|
86 width: 640, |
|
87 provider: "rtmp" |
|
88 } |
|
89 }; |
44 |
90 |
45 IriSP.loadLibs(IriSP.lib, config.gui.css, function() {}); |
91 IriSP.loadLibs(IriSP.lib, config.gui.css, |
46 var pop = Popcorn.jwplayer( '#video', "",{file : "video/franceculture/franceculture_retourdudimanche20100620.flv", streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", flashplayer : config.player.src, |
92 function() { |
47 live: true, "controlbar.position" : "none", height: config.gui.height, width: config.gui.width, provider: "rtmp"}); |
93 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
48 //pop.pause(); |
94 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
49 dt = new IriSP.DataLoader(); |
95 |
50 ser = new IriSP.JSONSerializer(dt, "../test.json"); |
96 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
51 ser2 = new IriSP.JSONSerializer(dt, "../test.json"); |
97 |
52 var player = new IriSP.PlayerWidget(pop, config, ser); |
98 }); |
53 var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser); |
|
54 var segmentsWidget = new IriSP.SegmentsWidget(pop, config, ser); |
|
55 ser.sync(function() { player.draw(); annotationWidget.draw(); segmentsWidget.draw();}); |
|
56 }); |
|
57 </script> |
99 </script> |
58 |
100 |
59 |
101 |
60 </body> |
102 </body> |
61 </html> |
103 </html> |