added an object to configure the default values of the widgets. popcorn-port
authorhamidouk
Fri, 18 Nov 2011 11:00:06 +0100
branchpopcorn-port
changeset 272 5284f337bd53
parent 269 8768637c3706
child 273 c32065f5e297
child 279 2c65775623cb
added an object to configure the default values of the widgets.
src/js/site.js
--- a/src/js/site.js	Thu Nov 17 17:02:59 2011 +0100
+++ b/src/js/site.js	Fri Nov 18 11:00:06 2011 +0100
@@ -17,41 +17,9 @@
 
 //Player Configuration 
 IriSP.config = undefined;
-IriSP.configDefault = {
-		metadata:{
-			format:'cinelab',
-			src:'',
-			load:'jsonp'
-		},
-		gui:{
-			width:650,
-			height:0,
-			mode:'radio',
-			container:'LdtPlayer',
-			debug:false, 
-			css:'../src/css/LdtPlayer.css'
-		},
-		player:{
-			type:'jwplayer',
-			src:'../res/swf/player.swf',
-			params:{
-				allowfullscreen:"true", 
-				allowscriptaccess:"always",
-				wmode:"transparent"
-			},
-			flashvars:{
-				streamer:"streamer",
-				file:"file", 
-				live:"true",
-				autostart:"false",
-				controlbar:"none",
-				playerready:"IriSP.playerReady"
-			},
-			attributes:{
-				id:"Ldtplayer1",  
-				name:"Ldtplayer1"
-			}
-		},
-		module:null
+
+IriSP.widgetsDefaults = {
+  "PlayerWidget" : {},
+  "AnnotationsWidget": {}
 };