rejetto forum

admin plz help me

0 Members and 1 Guest are viewing this topic.

Offline Owais Baloch

  • Occasional poster
  • *
    • Posts: 26
  • ;) :*
    • View Profile
    • Facebook link ;)
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: 1935
    • View Profile
    • RAWR-Designs
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 »