rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Owais Baloch on January 30, 2010, 07:54:19 AM

Title: admin plz help me
Post by: Owais Baloch on January 30, 2010, 07:54:19 AM
Dear Admin

i m facing a problem that when my local lan end user play any movie through my ( local lan web ) , player stop responding on these format .vob|.avi|.mpeg|.mkv ....... i m using this script for my web browser player

( // Initialisation
function initBox(target,file) {
   ext = file.substring(file.lastIndexOf("."),file.length);
   ext = ext.toLowerCase();
    if (disable == false) {
        disable = true;
        setTimeout("disable=false;", 350);
      if(target != boxOpen) {
         if(boxOpen!=null) boxFade(boxOpen,"out");
         if(ext.match(".jpg|.jpeg|.png|.bmp|.tif|.tiff")) spawnIMGBox(target,file);
         else if(ext.match(".flv|.mp3|.mp4|.m4a|.mov|.aac|.3gp|.vob")) spawnRAWRBox(target,file);
         else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);
         else if(ext.match(".mpeg|.wmv|.wma|.dat")) spawnWMBox(target,file);
         else if(ext==".swf|.mkv") spawnSWFBox(target,file);
         else if(ext=="search") spawnSEARCHBox(target,file);
      } else {
         boxFade(boxOpen,"out");
      }
    }
} )


plzz chk and help me out thxxx
Title: Re: admin plz help me
Post by: TSG on February 01, 2010, 04:01:26 AM
Flash doesn't support those extensions or codecs.

Code: [Select]
// Initialisation
function initBox(target,file) {
   ext = file.substring(file.lastIndexOf("."),file.length);
   ext = ext.toLowerCase();
    if (disable == false) {
        disable = true;
        setTimeout("disable=false;", 350);
      if(target != boxOpen) {
         if(boxOpen!=null) boxFade(boxOpen,"out");
         if(ext.match(".jpg|.jpeg|.png|.bmp|.tif|.tiff")) spawnIMGBox(target,file);
         else if(ext.match(".flv|.mp3|.mp4|.m4a|.mov|.aac|.3gp")) spawnRAWRBox(target,file);
         else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);
         else if(ext.match(".mpeg|.wmv|.wma")) spawnWMBox(target,file);
         else if(ext==".swf") spawnSWFBox(target,file);
         else if(ext=="search") spawnSEARCHBox(target,file);
      } else {
         boxFade(boxOpen,"out");
      }
    }
}

That now looks right. .mkv might work with DIVX now.