Author Topic: Adding Divx Option in TOG  (Read 1867 times)

0 Members and 1 Guest are viewing this topic.

Offline slasherx

  • Occasional poster
  • *
  • Posts: 98
    • View Profile
Adding Divx Option in TOG
« on: June 17, 2009, 10: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: [Select]
else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);
tog_previewbox.js added to line 117
Code: [Select]
/* 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;
}

Offline TSG

  • Moderator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Adding Divx Option in TOG
« Reply #1 on: June 17, 2009, 11: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.

Offline slasherx

  • Occasional poster
  • *
  • Posts: 98
    • View Profile
Re: Adding Divx Option in TOG
« Reply #2 on: June 17, 2009, 01:03:19 PM »
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

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Adding Divx Option in TOG
« Reply #3 on: June 29, 2009, 09: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.  ;D

Offline slasherx

  • Occasional poster
  • *
  • Posts: 98
    • View Profile
Re: Adding Divx Option in TOG
« Reply #4 on: July 01, 2009, 07: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.  ;D

i wanted to do it, but im no programmer, if you can post solution would be great :D