rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: mprprozac on May 04, 2009, 03:19:22 AM

Title: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: mprprozac on May 04, 2009, 03:19:22 AM
Hi,

I'm new to this program and community, but by the looks of it this is a fine piece of software. I've downloaded some templates and modded (hate to say improved) the Terayon 1.3.2 Theme.

I've added the DivX Web Player to play AVI,DivX & MKV (mkv not confirmed) files.
I'm working on WMV,WMA using Silverlight.

Once it's done i'll post the changes i made and the files needed.  ;D
But first to bed, 5:20AM at the moment  :P
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: rejetto on May 04, 2009, 09:20:59 PM
welcome!
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: Novox on May 12, 2009, 09:27:41 AM
That sounds great!! waiting for your shared :D
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: mprprozac on May 12, 2009, 03:39:15 PM
That sounds great!! waiting for your shared :D

I'm working on Silverlight WMV/WMA player, but it won't work.
I'm wondering if the applet will work in linux/mac if i use the standard (wmp) embedded code???
If so, i can put the changes online by tomorrow...
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: Novox on May 15, 2009, 02:29:29 AM
Only for playing DivX/AVI is also great!

Can you try to playing WMA/WMV by embedded Windows Media Player itself?
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: mprprozac on May 15, 2009, 09:34:02 AM
I've managed to get the following filetypes to work:
-Avi
-DivX
-VMW
-WMA

Avi & DivX uses the DivX web player to preview the content, and WMV & WMA uses the Windows Media Embedded code.
Changes in the sources are posted below, and JS file is attached for the people who don't want to edit the source :)

Changes in terayon_preview.js
Added codes in Line 30
Code: [Select]
else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);
else if(ext.match(".wmv|.wma")) spawnWMVBox(target,file);

Added codes in Line 119
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"?270:270;
width = ext==".divx"&&aspect=="wide"?427:320;
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 = false;
}

/* Spawn WMV Box */
var volume = 50;
var height, width, aspect;
var playmethod = "single";
var context = "on";
function spawnWMVBox(target,file) {
height = ext==".wmv"?270:270;
width = ext==".wmv"&&aspect=="wide"?427:320;
spawnBox(target,width,height);
setTimeout("setWMVBox(\""+target+"\",\""+file+"\");",300);
}
function setWMVBox(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";
getdiv = "wmvp";
scripttype = "text/javascript";

gEBI(target+"Content").innerHTML = "<OBJECT id='mediaPlayer' width="+width+" height="+height+" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'><param name='fileName' value="+file+"> <param name='animationatStart' value='true'><param name='transparentatStart' value='true'><param name='autoStart' value='true'><param name='showControls' value='true' volume="+volume+"><param name='loop' value='false'><EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="+width+" height="+height+" src="+file+" autostart='true' designtimesp='5311' loop='false' volume="+volume+"></EMBED></OBJECT>";
autoplay = false;
}

Changes in Terayon vX.X.tpl

Changes made in code in Line 352
replaced
Code: [Select]
[file.avi = file.divx = file.aiff = file.bat = file.css = file.doc = file.exe = file.file = file.gif = file.gzip = file.ini = file.m3u = file.mov = file.mpeg = file.mpg = file.ogg = file.pdf = file.ppt = file.rar = file.sit = file.sitx = file.tar = file.tgz = file.wav = file.wmv = file.wma = file.xls = file.zip]with
Code: [Select]
[file.aiff = file.bat = file.css = file.doc = file.exe = file.file = file.gif = file.gzip = file.ini = file.m3u = file.mov = file.mpeg = file.mpg = file.ogg = file.pdf = file.ppt = file.rar = file.sit = file.sitx = file.tar = file.tgz = file.wav = file.xls = file.zip]
Added code in Line 425

Code: [Select]
[file.wmv = file.wma]
<tr>
<td class="row1" align="center" valign="middle" width="64">
<a href="%encoded-folder%%item-url%" class="messageimagelink"><img src="/template/icons/%item-ext%.gif" class="noIcon" alt=""/></a>
</td>
<td width="100%" class="{.if not|{.get|can access.}|P.} {.inc|rows|1.}{.if|{.mod|{.^rows.}|2.}|altRow1|altRow2.}">
<div class="forumlink fileLink">
<a href="%folder%%item-url%">%item-name%</a>{.if|{.get|is new.}|<span style="font-size:7pt;font-weight:normal"> - <span class="Response"><b>NEW</b></span></span>.}
</div>
<span class="genmed" style="width:85%">%comment%</span>
<div class="minHeight"></div>
<div class="gensmall fileStats">
<span style="width:125px;float:left"><b>File Size:</b> %item-size%</span>
<span style="width:65px;float:left"><b>Hits:</b> %item-dl-count%</span>
<span style="width:200px;float:left"><b>Date:</b> %item-modified%</span>
</div>
</td>
<td nowrap="nowrap" class="qrow">
<div class="quicklinks">
<div class=q1><a href="%item-url%" title="Download this file."><div class="dow-a">&nbsp;</div></a></div>
<div class=q2 {.switch|%item-ext%|,|wmv,wma|name="mediaFile"|.}><a href="javascript:void(0)" onClick="initPreviewBox('Box-'+(%sequential%+1),this.name)" name="%item-full-url%" title="Open this file in a preview box"><div class="fla">&nbsp;</div></a><span id="Box-%sequential%"></span></div>
</div>
</td>
</tr>

[file.divx = file.avi]
<tr>
<td class="row1" align="center" valign="middle" width="64">
<a href="%encoded-folder%%item-url%" class="messageimagelink"><img src="/template/icons/%item-ext%.gif" class="noIcon" alt=""/></a>
</td>
<td width="100%" class="{.if not|{.get|can access.}|P.} {.inc|rows|1.}{.if|{.mod|{.^rows.}|2.}|altRow1|altRow2.}">
<div class="forumlink fileLink">
<a href="%folder%%item-url%">%item-name%</a>{.if|{.get|is new.}|<span style="font-size:7pt;font-weight:normal"> - <span class="Response"><b>NEW</b></span></span>.}
</div>
<span class="genmed" style="width:85%">%comment%</span>
<div class="minHeight"></div>
<div class="gensmall fileStats">
<span style="width:125px;float:left"><b>File Size:</b> %item-size%</span>
<span style="width:65px;float:left"><b>Hits:</b> %item-dl-count%</span>
<span style="width:200px;float:left"><b>Date:</b> %item-modified%</span>
</div>
</td>
<td nowrap="nowrap" class="qrow">
<div class="quicklinks">
<div class=q1><a href="%item-url%" title="Download this file."><div class="dow-a">&nbsp;</div></a></div>
<<div class=q2 {.switch|%item-ext%|,|avi,divx|name="mediaFile"|.}><a href="#" onClick="initPreviewBox('Box-'+(%sequential%+1),this.name)" name="%item-full-url%" title="Open this file in a preview box"><div class="fla">&nbsp;</div></a><span id="Box-%sequential%"></span></div>>
</div>
</td>
</tr>

I've only attached the JS file to this reply, because i've heavily modded the template file.

Any questions? Please reply or PM me :)





Currently working on (Quicktime) MPEG codem, results will be posted when completed
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: Novox on May 15, 2009, 04:06:36 PM
Wow!! Great work man!! You are so great!!!

Thanks for sharing!!
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: mrprozac on May 15, 2009, 09:24:37 PM
Just contributing to the community :)

Hope everyone enjoys this mod/addon.
I'll try to make more stuff for HFS when i have any spare time :)
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: austin on May 16, 2009, 06:51:44 AM
Can you make one that will work with RAWR too?  Or can this be added to a RAWR theme as well?  I don't use Terayon.  Tried it but it just didn't have what I needed. ;D
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: TSG on May 16, 2009, 09:38:10 AM
RAWR-Player will support .mov h264, and I'll make a silverlight player also when I get around to it.

The browsers can get buggy when you use quicktime or wmp plugins, we tested all of this once before.

We also pulled the DivX Web Player cause it was too buggy depending on the situation. And they pulled down Stage 6 so I just gave up on the idea. But if it works for you, go for it.

Lately I have been resting after getting the website online. I think Richard is just playing with the back end at the moment. I know I said I would release new builds when we got the site up, but my life has changed a little bit, I'm looking for work so I haven't got the time to play with HFS just now. Hopefully I can get them out soon enough, but at least the currently releases aren't buggy. Stability is the key now. Our next project is going to be the Admin Panel. But I can't see that coming out till late this year.
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: mprprozac on May 22, 2009, 12:21:06 PM
Can you make one that will work with RAWR too?  Or can this be added to a RAWR theme as well?  I don't use Terayon.  Tried it but it just didn't have what I needed. ;D

i'll try to make it possible, but i need to finish some other things.I'll keep you updated :)
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: mprprozac on May 22, 2009, 12:25:18 PM
RAWR-Player will support .mov h264, and I'll make a silverlight player also when I get around to it.

The browsers can get buggy when you use quicktime or wmp plugins, we tested all of this once before.

We also pulled the DivX Web Player cause it was too buggy depending on the situation. And they pulled down Stage 6 so I just gave up on the idea. But if it works for you, go for it.
DivX web player seems to run stable on the four major browsers (firefox, Chrome, Opera & IE) on my system and on my relatives computers, same for wmv plug-in. But i hate to use different plug-ins and trying to make one complete package.
But i'll try to add some features as a 3rd party dev to some templates. :)
Title: Re: Added DivX/Avi platyer to Terayon v1.3.2 theme
Post by: TSG on May 22, 2009, 06:16:18 PM
With the DivX Web Player, it was something to do with the URL that was being fed to the player. And randomly, depending on HFS permissions, would throw up errors within the player.

http://www.divx.com/en/products/software/windows/divx

It does seem like they are continuing support for the player... So I might add it to the release templates again... Which I haven't decided when I am going to release yet, been too busy. My apologies. It is nice to know that the current templates are stable enough to avoid complaints. I might sit down and tidy them up over the coming week.

I have no idea how to even start programming a silverlight player... for wmv, wma. So maybe I will have to borrow one that people can install if they need the feature.

Of course these players would only be available in RAWR-Template and Terayon. ToG is supposed to be very lightweight. I will not be adding anymore than is needed for basic usage. But like always the code is always pretty much the same so anyone can have a go at installing one of these other players to ToG if they want it. When the tutorial feature of our website fires up, this is the sort of thing that can be found there.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on June 01, 2009, 12:32:17 PM
I think this will work with Terayon... not sure. But this is the code I have worked out for RAWR-Template. Much more optimised. Any smaller than this and you run into compatability issues.

Also, I didnt know but AVI also works with windows media player, so long as the codec is installed. I even managed to get MKV working with WMP. however both formats were buggy and really taxed HFS. So I have stuck with what you came up with. I wont be adding anymore than these formats to the templates. You could go on forever making plugins for streaming media. mp3,flv,mp4,m4a,mov,3gp,aac,avi,divx,wmv,wma are the containers supported by our templates now. I think we have covered most of the popular ones and a few extra.

Code: [Select]
// Insert DivX
function spawnDIVXBox(target,file) {
    spawnBox(target,640,370);
    setTimeout("setDIVXBox(\""+target+"\",\""+file+"\");",300);
}
function setDIVXBox(target,file) {
    setName(file);
    gEBI(target+"Content").innerHTML = "<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width=640 height=370><param name=src value=\""+file+"\"/><embed type='video/divx' src="+file+" width=640 height=370 autoplay=true/></object>";
}
// Insert WM
function spawnWMBox(target,file) {
    height = ext!=".wma"?405:45;
    width = ext!=".wma"?640:400;
    spawnBox(target,width,height);
    setTimeout("setWMBox(\""+target+"\",\""+file+"\");",300);
}
function setWMBox(target,file) {
    setName(file);
    gEBI(target+"Content").innerHTML = "<object classid='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width="+width+" height="+height+" type='application/x-oleobject'><param name=filename value=\""+file+"\"><param name=autostart value=true /><embed type='application/x-mplayer2' width="+width+" height="+height+" src=\""+file+"\" autostart=1 /></object>";
}
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 07, 2009, 11:42:37 AM
this is awsome man. i've been waiting for this for ever. i have been using 1.3.0 finally can upgrade.

edit: i keep getting error with divx player.

Can you upload your complete template or pm it to me.

Thanks
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 07, 2009, 02:34:28 PM
Nevermind, I redid it on fresh download and its working great.

I'm attaching the changed files in template with divx player addon.

Credit goes to mprprozac for posting the code and template author.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 11, 2009, 12:59:01 PM
Hey and thanks for the great upload, but im having a problem.. when i click the preview button the windows opens but its all white and all it does is starting to download the file :s what am i doing wrong?

Thanks for any help you might have :)
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 11, 2009, 01:07:53 PM
Hey and thanks for the great upload, but im having a problem.. when i click the preview button the windows opens but its all white and all it does is starting to download the file :s what am i doing wrong?

Thanks for any help you might have :)
forgot to add a error message i get when i load template:  

3:08:07 PM WARNING, deprecated macro: set item|hide - Use instead: set item|hide=1
3:08:07 PM WARNING, deprecated macro: set item|no log - Use instead: set item|no log=1

how do i change it?
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 12, 2009, 10:42:09 AM
Hey and thanks for the great upload, but im having a problem.. when i click the preview button the windows opens but its all white and all it does is starting to download the file :s what am i doing wrong?

Thanks for any help you might have :)
forgot to add a error message i get when i load template: 

3:08:07 PM WARNING, deprecated macro: set item|hide - Use instead: set item|hide=1
3:08:07 PM WARNING, deprecated macro: set item|no log - Use instead: set item|no log=1

how do i change it?

i got that error msg to when i installed it, but it still works fine.

what version and build are you using of HFS?

do you have Web Divx player installed?
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 12, 2009, 12:43:45 PM
well i have the newest release of beta, didnt have divx player installed (DUH! XD) but its installed now. BUT! not i get a 401 error saying that the server is denying access to the file? please help i realy want this to work :)
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on June 12, 2009, 03:48:07 PM
lol, like I said, I have no control over how the DivX Web Player reacts with HFS. Try accessing the server externally. Sometimes its a security conflict.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: torolix on June 12, 2009, 08:28:22 PM
lol, like I said, I have no control over how the DivX Web Player reacts with HFS. Try accessing the server externally. Sometimes its a security conflict.

yeah... im a total newb here :P how do i access the server externally? do you mean from another computer outside my homenetwork?
:) thanks for helping this utter newb
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 13, 2009, 05:28:43 AM
well i have the newest release of beta, didnt have divx player installed (DUH! XD) but its installed now. BUT! not i get a 401 error saying that the server is denying access to the file? please help i realy want this to work :)

Set a user and pass at root, and for your movies folder set it to allow anonymous access. THen it should work fine.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 13, 2009, 09:22:22 AM
I just wont to edit what the man above me said :) as long as the FOLDER you have your movies in is set to anonym the movies will stream, but you dont need a user/pass at root(had to find a new solution since that fucked up my server)
all you need to do is put the Folder containing your movies inside another folder, then you put
account restriction on the folder leading to your movie folder ( witch is set to anonym). Streaming should now work :)

Im sorry if its hard to understand what i mean :)

Thanks for all the help!

Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 13, 2009, 09:32:25 AM
kk il make this quick since im heading out, i am now getting a 404 error... it tells me that the files is not on the server`? But it is.. im able to download and all! please help me (again xD) ty!
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Torolix on June 13, 2009, 09:45:29 AM
hmm it now "finds" some of those movies but not all.. about half still get the 404 error
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 13, 2009, 11:45:11 AM
ya something is screwed up sometime i get that to, Firefox gives me error for some them then they work in IE.

You can also checkout program Weezo, its like hfs its free it has support for web divx, vlc, flv, media player. Plays MKV's as well. also has retime encoding option and iphone/wii support.

i still prefer HFS, as Weezo uses more resources.


Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TOrolix on June 18, 2009, 04:36:13 PM
hmm it now "finds" some of those movies but not all.. about half still get the 404 error


is there a fix for this yet? :)
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 19, 2009, 02:41:05 AM
hmm it now "finds" some of those movies but not all.. about half still get the 404 error


is there a fix for this yet? :)

Well i've done some research, according to divx site/forums. We cannot stream with web divx player from a htaccess (from protected resource) best bet is to use set folder
to anonymous access and use internet explorer.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: Francesco on June 22, 2009, 10:51:35 PM
Hi, first i'm very afraid for my bad "google translate :P" english.
i'm Francesco and it's shortly that i try to use Hfs with this tamplate.
Trying to improve the avi streaming i only replaced the original "terayon_prewievbox.fs" and the " .tpl" with the slasherx's posted files.
Is enough? Because now i see a new icon near .avi files but if i clik it under firefox nothing happens and under IE appears a blank divx player windows and the browsers say that i must install divx plugin.
I already have installed the request pugin but the same happens again whenever...

Thanks for the attenction and for the great job!!

again sorry for the english.. :)

i hope in a possible solution
Bye
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on June 23, 2009, 03:54:11 AM
Hi, first i'm very afraid for my bad "google translate :P" english.
i'm Francesco and it's shortly that i try to use Hfs with this tamplate.
Trying to improve the avi streaming i only replaced the original "terayon_prewievbox.fs" and the " .tpl" with the slasherx's posted files.
Is enough? Because now i see a new icon near .avi files but if i clik it under firefox nothing happens and under IE appears a blank divx player windows and the browsers say that i must install divx plugin.
I already have installed the request pugin but the same happens again whenever...

Thanks for the attenction and for the great job!!

again sorry for the english.. :)

i hope in a possible solution
Bye

Welcome to the forums,

make sure you allow anonymous access to your video folder other wise it will not play with web divx player.
and use Internet explorer.

also make sure your web divx player works go to this site and make sure video plays.
Code: [Select]
http://www.stage6.com/
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: mysoogal on June 29, 2009, 09:25:56 PM
its amazing nobody mentions that vlc media player can be embedded into html php etc and can stream everything mkv ETC

 :-\

why bother making support for each extension type wmv, avi,mp4 etc when you can have one player that accepts all videos and audio. and plus its supported in every single operating system there is, linux,xp,mac,all types of linux distros  :-\

its strange that i am the only person whom is thinking about such thing while the whole open source community is always talking about open source software but none of them are promoting it strange really  ;D
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on June 30, 2009, 06:45:47 AM
I used VLC as my video player until Windows 7, the video smoothing doesn't work properly so its all pixelly. But I guess they will fix it. We considered VLC years ago but scrapped the idea for some reason...

I guess like divx web player it requires the plugin to be installed. I have also read that VLC requires sending a JavaScript API and settings file for the actual embedded player... which increases load times for the templates, these other methods require no such thing.

VLC doesn't work with some quicktime videos and rmvb. They glitch like crazy anyway. But its no issue really.

The main problem at the moment is no time.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: rejetto on July 01, 2009, 12:17:59 AM
i'm not sure i got it. are you suggesting to replace the flash video player with a vlc-thing ?
(i use vlc as my main video player)
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on July 01, 2009, 05:23:07 AM
Just for other formats I guess, too much work went into the flash player not to use it. I still doubt we will do it. The javascript overhead is a concern.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on July 01, 2009, 07:10:46 AM
its amazing nobody mentions that vlc media player can be embedded into html php etc and can stream everything mkv ETC

 :-\

why bother making support for each extension type wmv, avi,mp4 etc when you can have one player that accepts all videos and audio. and plus its supported in every single operating system there is, linux,xp,mac,all types of linux distros  :-\

its strange that i am the only person whom is thinking about such thing while the whole open source community is always talking about open source software but none of them are promoting it strange really  ;D


would be great, if you can get it implemented and post the solution. VLC is my primary media player i use.

I share my movies and stuff with family friends on my server so have vlc for mkv files would be great.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: rejetto on July 01, 2009, 06:12:30 PM
Just for other formats I guess, too much work went into the flash player not to use it. I still doubt we will do it. The javascript overhead is a concern.

but doesn't it require you to install VLC ?
everyone has flash, but can't say the same for vlc.
i mean... how compatible is this method
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on July 02, 2009, 05:26:34 AM
I haven't tried it, but from reading posts here and on the internet it seems to only work with internet explorer and sometimes in mozilla, i have no idea bout the other browsers out there. I wont try to implement it till i see it confirmed working.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on July 03, 2009, 02:44:04 PM
For me IE and Safari work, Firefox use to work at times not any more.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: mysoogal on July 03, 2009, 11:30:15 PM
its very easy to install Videolan plug-in, the only thing you need to do is pick the Full installation option during the install process. look in picture below.

this will install vlc plug-in for IE and Mozilla browser. now that isn't very hard it takes few seconds to install everything. and i can tell you that the vlc plug-in loads very fast TSG it really runs fast even when its being embedded on HFS template.

(http://i41.tinypic.com/2klhk2.png)

OK now here is the proof that it works on HFS and runs pretty fast

(http://i40.tinypic.com/107tkdt.png)

and this is the code as attached file


and here is the firefox browser loading it fast and nothing it just works.

(http://i41.tinypic.com/mmwzgx.png)

you can check how fast vlc player loads using only the HFS template and the vlc javascript

http://hss.hopto.org/  i didnt enable the vlc command yet for the file section. but you can see how fast it loads. its very much possible to make a stage6 clone out of HFS now that mencoder and ffmpeg have support in HFS 2.3 it just takes a very smart coder in javascript and html css, hfs coding.

 :D note im not very good with javascript nor php html css, i just like dreamweaver :P
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: mysoogal on July 03, 2009, 11:51:00 PM
i just fixed the issue now i can play videos on firefox to :D everything is working fine  ;D
only thing left is the thumb css gallery type of layout  ;D

i will release the code and all the files i will make it really easy to undertand  ;D. and to that poster Yes now you can play Mkv files through HFS on the template  :D
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on July 04, 2009, 12:53:50 PM
Very nice work mate, this way all video files have to be in root directory? I just tested it, video didn't load but then again i need to go to bed. I will try again.


Possible to implement this in the rawr template would be pretty sweet.

My Setup is files divided in catagories and stuff.

Would be cool vlc plugin with rawr template in spawn box.

My set is like this right now

(http://img21.imageshack.us/img21/733/servera.th.jpg) (http://img21.imageshack.us/img21/733/servera.jpg)
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: mysoogal on July 04, 2009, 02:22:07 PM
Very nice work mate, this way all video files have to be in root directory? I just tested it, video didn't load but then again i need to go to bed. I will try again.


Possible to implement this in the rawr template would be pretty sweet.

My Setup is files divided in catagories and stuff.

Would be cool vlc plugin with rawr template in spawn box.

My set is like this right now

(http://img21.imageshack.us/img21/733/servera.th.jpg) (http://img21.imageshack.us/img21/733/servera.jpg)



yes that is possible in RAWR you would just copy the vlc player embed code and place it somewhere in top before folders, and look for [file] and replace it with the code from the video template, yes i know the issue with folder dont worry videos don't have to be in root they can be in folder, Now the fix for that is to copy all the vlcControls.zip files into each folder you create, so when you load for example Video folder, the vlc javascript is asking for the js files to be inside this folder. but there is a issue here.

please check this post, http://www.rejetto.com/forum/index.php?topic=7161.0

everything works good on firefox, but IE having isssue about this
Quote
<a href="#" onClick="vlc_controls.play ('%item-url%')"%new%>%item-name%</a>

if you want to fix this issue for IE, you will need to put the full url path like this

Quote
<a href="#" onClick="vlc_controls.play ('http://yoursite.com/%item-url%')"%new%>%item-name%</a>

i'm not sure i have to ask rej for help here or TSG, another issue is that here %item-url% before this i need to know how to get the current new folder when i'm viewing lets say newfolder. so it should be like this newfolder/%item-url%

just to note if you leave this out like this
everything works good on firefox, but IE having isssue about this
Quote
<a href="#" onClick="vlc_controls.play ('%item-url%')"%new%>%item-name%</a>

this will only work on firefox. :-\
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: TSG on July 05, 2009, 04:57:37 AM
Use %item-full-url%.
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: slasherx on July 05, 2009, 05:31:06 AM
Use %item-full-url%.

That works with IE & Firefox also safari

Thanks
Title: Re: Added DivX/Avi player to Terayon v1.3.2 theme
Post by: bmartino1 on June 17, 2014, 03:01:37 AM
this is all cool code, but most of the time..

issues with files not playing is due to the mime types:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/

Great codes by the way.
Thank you for your work!