src/js/site.js
branchrequire-js
changeset 238 6008172a0592
parent 236 6770c85c9e56
equal deleted inserted replaced
237:8f99b0df3278 238:6008172a0592
     1 /* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
     1 /* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
     2 
     2 
     3 IriSP.lib = { 
     3 define(["IriSP"], function() {
     4 		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
     4   IriSP.lib = { 
     5 		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
     5       jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
     6 		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
     6       jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
     7 		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
     7       jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
     8 		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
     8       swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
     9     popcorn : "src/js/libs/popcorn.js",
     9       cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
    10     jwplayer : "src/js/libs/jwplayer.js",
    10       popcorn : "src/js/libs/popcorn.js",
    11     "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js",
    11       jwplayer : "src/js/libs/jwplayer.js",
    12     "popcorn.code" : "src/js/libs/popcorn.code.js",
    12       "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js",
    13     "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js",
    13       "popcorn.code" : "src/js/libs/popcorn.code.js",
    14     "popcorn.youtube": "src/js/libs/popcorn.youtube.js",
    14       "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js",
    15      raphael: "src/js/libs/raphael.js"
    15       "popcorn.youtube": "src/js/libs/popcorn.youtube.js",
    16 };
    16        raphael: "src/js/libs/raphael.js"
       
    17   };
    17 
    18 
    18 //Player Configuration 
    19   //Player Configuration 
    19 IriSP.config = undefined;
    20   IriSP.config = undefined;
    20 IriSP.configDefault = {
    21   IriSP.configDefault = {
    21 		metadata:{
    22       metadata:{
    22 			format:'cinelab',
    23         format:'cinelab',
    23 			src:'',
    24         src:'',
    24 			load:'jsonp'
    25         load:'jsonp'
    25 		},
    26       },
    26 		gui:{
    27       gui:{
    27 			width:650,
    28         width:650,
    28 			height:0,
    29         height:0,
    29 			mode:'radio',
    30         mode:'radio',
    30 			container:'LdtPlayer',
    31         container:'LdtPlayer',
    31 			debug:false, 
    32         debug:false, 
    32 			css:'../src/css/LdtPlayer.css'
    33         css:'../src/css/LdtPlayer.css'
    33 		},
    34       },
    34 		player:{
    35       player:{
    35 			type:'jwplayer',
    36         type:'jwplayer',
    36 			src:'../res/swf/player.swf',
    37         src:'../res/swf/player.swf',
    37 			params:{
    38         params:{
    38 				allowfullscreen:"true", 
    39           allowfullscreen:"true", 
    39 				allowscriptaccess:"always",
    40           allowscriptaccess:"always",
    40 				wmode:"transparent"
    41           wmode:"transparent"
    41 			},
    42         },
    42 			flashvars:{
    43         flashvars:{
    43 				streamer:"streamer",
    44           streamer:"streamer",
    44 				file:"file", 
    45           file:"file", 
    45 				live:"true",
    46           live:"true",
    46 				autostart:"false",
    47           autostart:"false",
    47 				controlbar:"none",
    48           controlbar:"none",
    48 				playerready:"IriSP.playerReady"
    49           playerready:"IriSP.playerReady"
    49 			},
    50         },
    50 			attributes:{
    51         attributes:{
    51 				id:"Ldtplayer1",  
    52           id:"Ldtplayer1",  
    52 				name:"Ldtplayer1"
    53           name:"Ldtplayer1"
    53 			}
    54         }
    54 		},
    55       },
    55 		module:null
    56       module:null
    56 };
    57   };
    57 
    58 });