src/js/site.js
author hamidouk
Wed, 16 Nov 2011 12:28:18 +0100
branchpopcorn-port
changeset 254 cafaa694b709
parent 236 6770c85c9e56
child 238 6008172a0592
child 272 5284f337bd53
child 341 e9442357851b
permissions -rw-r--r--
fixed the conversion function to accomodate mustache.
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
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
6770c85c9e56 put in a single place the sources from where we load our js scripts.
hamidouk
parents: 55
diff changeset
     9
    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
    10
    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
    11
    "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
    12
    "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
    13
    "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
    14
    "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
    15
     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
    16
};
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    17
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    18
//Player Configuration 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    19
IriSP.config = undefined;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    20
IriSP.configDefault = {
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    21
		metadata:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    22
			format:'cinelab',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    23
			src:'',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    24
			load:'jsonp'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    25
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    26
		gui:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    27
			width:650,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    28
			height:0,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    29
			mode:'radio',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    30
			container:'LdtPlayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    31
			debug:false, 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    32
			css:'../src/css/LdtPlayer.css'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    33
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    34
		player:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    35
			type:'jwplayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    36
			src:'../res/swf/player.swf',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    37
			params:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    38
				allowfullscreen:"true", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    39
				allowscriptaccess:"always",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    40
				wmode:"transparent"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    41
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    42
			flashvars:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    43
				streamer:"streamer",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    44
				file:"file", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    45
				live:"true",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    46
				autostart:"false",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    47
				controlbar:"none",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    48
				playerready:"IriSP.playerReady"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    49
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    50
			attributes:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    51
				id:"Ldtplayer1",  
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    52
				name:"Ldtplayer1"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    53
			}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    54
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    55
		module:null
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