web/static/js/LdtPlayer.js
changeset 39 b620041cc891
parent 37 b694a7a67500
child 49 af3778eab5e8
--- a/web/static/js/LdtPlayer.js	Mon Jun 14 11:22:02 2010 +0200
+++ b/web/static/js/LdtPlayer.js	Mon Jun 14 15:18:58 2010 +0200
@@ -148,10 +148,9 @@
 
 	function createPlayer(width,height,url,duration,streamerPath,MySwfPath) {
 	
-		myUrlFragment = url.split("/");
-		//
-		file = myUrlFragment[myUrlFragment.length-3]+"/"+myUrlFragment[myUrlFragment.length-2]+"/"+myUrlFragment[myUrlFragment.length-1];
-		indexofff = url.lastIndexOf(file);
+		myUrlFragment = url.split(streamerPath);
+		file = myUrlFragment[1];
+		alert(url+" = "+streamerPath+" + "+file);
 		streamer = streamerPath;
 		//alert(" StreamerPath : "+streamer+" - "+file);
 		//alert(" SwfPath : "+MySwfPath);