rejetto forum
May 25, 2012, 03:08:33 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: admin plz help me  (Read 359 times)
0 Members and 1 Guest are viewing this topic.
owais
Regular poster
**
Offline Offline

Pakistan Pakistan

Posts: 15


View Profile Email
« on: January 30, 2010, 01: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
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: January 31, 2010, 10:01:26 PM »

Flash doesn't support those extensions or codecs.

Code:
// 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: January 31, 2010, 10:10:23 PM by TSG » Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 03:22:34 AM