Author Topic: admin plz help me  (Read 946 times)

0 Members and 1 Guest are viewing this topic.

Offline owais

  • Occasional poster
  • *
  • Posts: 17
  • ;) :*
    • View Profile
    • Facebook link ;)
admin plz help me
« 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

Offline TSG

  • Moderator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: admin plz help me
« Reply #1 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.
« Last Edit: February 01, 2010, 04:10:23 AM by TSG »