rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: slasherx on June 17, 2009, 10:42:32 AM

Title: Adding Divx Option in TOG
Post by: slasherx 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;
}
Title: Re: Adding Divx Option in TOG
Post by: TSG 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.
Title: Re: Adding Divx Option in TOG
Post by: slasherx 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
Title: Re: Adding Divx Option in TOG
Post by: mysoogal 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
Title: Re: Adding Divx Option in TOG
Post by: slasherx 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