src/js/site.js
author hamidouk
Wed, 21 Dec 2011 16:07:39 +0100
branchlazyload-js
changeset 506 4d424e845db3
parent 341 e9442357851b
permissions -rw-r--r--
closing lazyload branch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     1
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     2
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     3
IriSP.lib = { 
236
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     4
		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     5
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     6
		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     7
		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     8
    popcorn : "src/js/libs/popcorn.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     9
    jwplayer : "src/js/libs/jwplayer.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
    10
    "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
    11
    "popcorn.code" : "src/js/libs/popcorn.code.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
    12
    "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
    13
    "popcorn.youtube": "src/js/libs/popcorn.youtube.js",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
    14
     raphael: "src/js/libs/raphael.js"
55
a5440e1a18a8 A bunch of changes to make the code use popcorn. Bumped the version of jwplayer
hamidouk
parents: 38
diff changeset
    15
};
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    16
341
e9442357851b integrating LazyLoad. It replaces the old code in IriSP.loadLibs.
hamidouk
parents: 236
diff changeset
    17
IriSP.libCss = {
e9442357851b integrating LazyLoad. It replaces the old code in IriSP.loadLibs.
hamidouk
parents: 236
diff changeset
    18
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
e9442357851b integrating LazyLoad. It replaces the old code in IriSP.loadLibs.
hamidouk
parents: 236
diff changeset
    19
};
e9442357851b integrating LazyLoad. It replaces the old code in IriSP.loadLibs.
hamidouk
parents: 236
diff changeset
    20
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    21
//Player Configuration 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    22
IriSP.config = undefined;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    23
IriSP.configDefault = {
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    24
		metadata:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    25
			format:'cinelab',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    26
			src:'',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    27
			load:'jsonp'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    28
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    29
		gui:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    30
			width:650,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    31
			height:0,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    32
			mode:'radio',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    33
			container:'LdtPlayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    34
			debug:false, 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    35
			css:'../src/css/LdtPlayer.css'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    36
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    37
		player:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    38
			type:'jwplayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    39
			src:'../res/swf/player.swf',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    40
			params:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    41
				allowfullscreen:"true", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    42
				allowscriptaccess:"always",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    43
				wmode:"transparent"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    44
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    45
			flashvars:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    46
				streamer:"streamer",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    47
				file:"file", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    48
				live:"true",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    49
				autostart:"false",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    50
				controlbar:"none",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    51
				playerready:"IriSP.playerReady"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    52
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    53
			attributes:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    54
				id:"Ldtplayer1",  
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    55
				name:"Ldtplayer1"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    56
			}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    57
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    58
		module:null
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    59
};
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    60