diff -r 6008172a0592 -r 9eb584fdfbe4 test/integration/polemic.require.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/integration/polemic.require.js Mon Nov 14 17:19:49 2011 +0100 @@ -0,0 +1,66 @@ +require([], function() { + $(document).ready(function() { + var config = { + gui:{ + width:650, + height:2100, + container:'LdtPlayer', + css:'../../src/css/LdtPlayer.css', + widgets: [ + {type: "PolemicWidget", + width: 640, /* required for this widget */ + height: 50, + heightmax: 50, + metadata:{ + format:'cinelab', + src:'polemic_fr.json', + type:'json'}, + + requires: [{ + type: "TooltipWidget", + width: 180, + heigh: 160, + metadata : { + format:'cinelab', + src:'polemic.json', + type:'empty' + } + }], + }, + {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. + mode: "radio", + metadata:{ + format:'cinelab', + src:'polemic_fr.json', + type:'json'} + }, + {type: "SliderWidget", + metadata:{ + format:'cinelab', + src:'polemic_fr.json', + type:'json'} + }, + + ] + }, + player:{ + type:'jwplayer', // player type + container: 'PopcornContainer', + // the rest is player-dependent configuration options. + file : "video/ldtplatform/museologie_inaugurale_20111018_flat.f4v", + streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", + flashplayer : '../libs/player.swf', + live: true, + "controlbar.position" : "none", + height: 300, + width: 640, + provider: "rtmp" + } + }; + + + var layoutManager = new IriSP.LayoutManager(config.gui.container); + var pop = IriSP.configurePopcorn(layoutManager, config.player); + + var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); +}); \ No newline at end of file