web/static/js/LdtPlayer.js
changeset 57 3a3c15c462f8
parent 53 1fcf0bd88ba3
equal deleted inserted replaced
48:44d58d2e90b5 57:3a3c15c462f8
   148 
   148 
   149 	function createPlayer(width,height,url,duration,streamerPath,MySwfPath) {
   149 	function createPlayer(width,height,url,duration,streamerPath,MySwfPath) {
   150 	
   150 	
   151 		myUrlFragment = url.split(streamerPath);
   151 		myUrlFragment = url.split(streamerPath);
   152 		file = myUrlFragment[1];
   152 		file = myUrlFragment[1];
   153 		alert(url+" = "+streamerPath+" + "+file);
   153 		//alert(url+" = "+streamerPath+" + "+file);
   154 		streamer = streamerPath;
   154 		streamer = streamerPath;
   155 		//alert(" StreamerPath : "+streamer+" - "+file);
   155 		//alert(" StreamerPath : "+streamer+" - "+file);
   156 		//alert(" SwfPath : "+MySwfPath);
   156 		//alert(" SwfPath : "+MySwfPath);
   157 		
   157 		
   158 		var flashvars = {
   158 		var flashvars = {
   273 INIT player LDT  
   273 INIT player LDT  
   274 */
   274 */
   275 
   275 
   276 	function playerLdt (width,height,file,divId,MySwfPath){
   276 	function playerLdt (width,height,file,divId,MySwfPath){
   277 		
   277 		
   278 			$jIRI("#"+divId).append("<div id=\"ldtShow\">\n	<div id=\"ShowAnnotation\" class=\"demo\" >\n			<div id=\"ldtSaTitle\"></div>\n			<div id=\"ldtSaDescription\"></div>\n		</div>		<div id=\"ldtPlaceHolder\">\n			<a href=\"http://www.adobe.com/go/getflashplayer\">Get flash</a> to see this player	\n		</div>\n	</div>\n	<div id=\"controlerLdt\" class=\"demo\">\n		<div class=\"ldtControl1\" >\n			<button id=\"ldtCtrlPlay\" onclick=\"player.sendEvent('PLAY')\">Play</button>\n			<button id=\"ldtCtrlNext\" onclick=\"player.sendEvent('SEEK', currentPosition+10)\">next</button>\n		</div>\n		<div id=\"Annotations\" class=\"ui-slider\">\n			<div id=\"slider-range-min\"></div>\n		</div>\n		<div class=\"ldtControl2\">\n			<button id=\"ldtCtrlScreen\" onclick=\"player.fullscreen('true')\">Enlarge</button>\n			<button id=\"ldtCtrlSound\" onclick=\"player.sendEvent('MUTE')\">Sound</button>\n		</div>\n	</div>");
   278 			$jIRI("#"+divId).append("<div id=\"ldtShow\">\n	<div id=\"ShowAnnotation\" class=\"demo\" >\n			<div id=\"ldtSaTitle\"></div>\n			<div id=\"ldtSaDescription\"></div>\n		</div>		<div id=\"ldtPlaceHolder\">\n			<a href=\"http://www.adobe.com/go/getflashplayer\">Get flash</a> to see this player	\n		</div>\n	</div>\n	<div id=\"controlerLdt\" class=\"demo\">\n		<div class=\"ldtControl1\" >\n			<button id=\"ldtCtrlPlay\" onclick=\"player.sendEvent('PLAY')\">Play</button>\n			<button id=\"ldtCtrlNext\" onclick=\"player.sendEvent('SEEK', currentPosition+10)\">next</button>\n		</div>\n		<div id=\"Annotations\" class=\"ui-slider\">\n			<div id=\"slider-range-min\"></div>\n		</div>\n		<div class=\"ldtControl2\">\n			<button id=\"ldtCtrlScreen\" onclick=\"player.fullscreen('true')\">Enlarge</button>\n			<button id=\"ldtCtrlSound\" onclick=\"player.sendEvent('MUTE')\">Sound</button>\n		</div>\n	</div><div class='cleaner'>&nbsp;</div>");
   279 			loadJson(width,height,file,MySwfPath);
   279 			loadJson(width,height,file,MySwfPath);
   280 	}
   280 	}
   281 	
   281 	
   282 	
   282 	
   283 	
   283