rejetto forum
May 25, 2012, 02:48:54 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: Adding Divx Option in TOG  (Read 982 times)
0 Members and 2 Guests are viewing this topic.
slasherx
Experienced poster
***
Offline Offline

United States United States

Posts: 98


View Profile Email
« on: June 17, 2009, 05:42:32 AM »

Can someone help me add option for divx player in TOG?

i need help with the main template, i can add the code to preview box. i think rest needs to be added to the template(.tpl) file. Anyone who can help would be great.

tog_previewbox.js added to line 29
Code:
else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);

tog_previewbox.js added to line 117
Code:
/* Spawn DivX Box */
var volume = 50;
var height, width, aspect;
var playmethod = "single";
var context = "on";
function spawnDIVXBox(target,file) {
height = ext==".divx"?350:350;
width = ext==".divx"&&aspect=="wide"?556:556;
spawnBox(target,width,height);
setTimeout("setDIVXBox(\""+target+"\",\""+file+"\");",300);
}
function setDIVXBox(target,file) {
setName(file);
file = file.replace('+','%2B').replace('&','%26');
volume = getCookie('Volume') ? getCookie('Volume') : volume;
playmethod = getCookie('Method') ? getCookie('Method')+"&mode=full" : "single&mode=full";
if(autoplay == true) playmethod = "single";
gEBI(target+"Content").innerHTML = "<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width="+width+" height="+height+" codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab' id='IE_divx'><param name='custommode' value='none'/><param name='previewImage' value=''/><param name='src' value="+file+"/><!--DivX Web Player code generator (divx.com)--><embed type='video/divx' id='MZ_divx' src="+file+" custommode='none' width="+width+" height="+height+" autoplay='true' previewImage='' pluginspage='http://go.divx.com/plugin/download/ /></object>";
autoplay = true;
}
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: June 17, 2009, 06:36:10 AM »

Locate the [file] part and near the end there will be a list of file formats, add avi and divx to that list. It will enable the preview box icon.
Logged

slasherx
Experienced poster
***
Offline Offline

United States United States

Posts: 98


View Profile Email
« Reply #2 on: June 17, 2009, 08:03:19 AM »

Locate the [file] part and near the end there will be a list of file formats, add avi and divx to that list. It will enable the preview box icon.

ThankYou
Logged
mysoogal
Tireless poster
****
Offline Offline

Fiji Fiji

Posts: 127


View Profile Email
« Reply #3 on: June 29, 2009, 04:31:47 PM »

if you want more video audio support look into this

http://www.revolunet.com/labo/code/VLCcontrols

divx web player support avi - mkv - divx codec - h264 codec

vlc player - all of video audio codecs.  Grin
Logged
slasherx
Experienced poster
***
Offline Offline

United States United States

Posts: 98


View Profile Email
« Reply #4 on: July 01, 2009, 02:12:47 AM »

if you want more video audio support look into this

http://www.revolunet.com/labo/code/VLCcontrols

divx web player support avi - mkv - divx codec - h264 codec

vlc player - all of video audio codecs.  Grin

i wanted to do it, but im no programmer, if you can post solution would be great Cheesy
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 22, 2012, 07:30:00 AM