rejetto forum

Adding Divx Option in TOG

0 Members and 1 Guest are viewing this topic.

Offline slasherx

  • Occasional poster
  • *
    • Posts: 98
    • View Profile
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: 1935
    • View Profile
    • RAWR-Designs
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
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
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
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