Author Topic: Video Support in HFS using VLC ready  (Read 64017 times)

0 Members and 1 Guest are viewing this topic.

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Video Support in HFS using VLC ready
« on: July 04, 2009, 12:12:16 AM »
you will need HFS 2.3 build 242

here is the theme tpl and vlcControl.zip files which you need to drag into your root and new folders you create

http://www.megaupload.com/?d=XFDE8PKA

inside have readme check it out if you still not sure come here and ask me :)
« Last Edit: July 04, 2009, 08:38:14 PM by mysoogal »

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #1 on: July 04, 2009, 12:27:41 AM »
updated all files needed are in first post


To relieve the code, the script VLC was put in a section then called by means of the %sym-vlc%
 variable

Code: [Select]
[sym-vlc]
<script language="javascript" src="VLCobject.js"> </script>
<script language="javascript" src="VLCcontrols.js"> </script>
<script language="javascript">
   var vlc_controls = null;

   function init() {
     // load plugin
 
    myvlc = new VLCObject("mymovie", "600", "350");
    myvlc.write("vlccontent");

    //myvlc.VLC_options.set("http-reconnect", 1);
    //myvlc.VLC_options.set("http-reconnect", 5);

    // load controls

    vlc_controls = new VLCcontrols(myvlc);

    vlc_controls.options.set("ffmpeg-pp-q", 6);
    //vlc_controls.options.set("start-time", 60);

    //vlc_controls.onready = function () {
    //vlc_controls.play("http://code.revolunet.com/VLCjs/rambo.mpg");

    //}
 
    //waitControlsLoaded();
    }
 
    // function waitControlsLoaded() {
        //if (!vlc_controls.loaded) {
            //setTimeout("waitControlsLoaded()", 250);
            //return;
            //}
         // }
</script>


YOU CAN DOWNLOAD THE FULL TEMPLATE AS ATTACHED FILE   ;)
« Last Edit: July 04, 2009, 08:38:59 PM by mysoogal »

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #2 on: July 04, 2009, 12:52:03 AM »
geez again

ok this is a silly problem

on firefox this works <a href="#" onClick="vlc_controls.play ('%item-url%')"%new%>%item-name%</a>

in bold works on firefox, now on IE8 it doesnt seem to work, so i had to do add something like this

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

but guess again this , doesn't follow your new folder name ? before %item-url% so the only way to get things working on IE is to have the full url path which works on both firefox and IE but the issue is that video files can not be in folders rather in root of HFS  :(


how to display new created foldername ? something like this %new-folder%/%item-url%  :(

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #3 on: July 05, 2009, 12:12:24 AM »
for thumbs support please check this post

http://www.rejetto.com/forum/index.php?topic=7166.0

right now the css is messed up but its working fine just need to order the title,thumb,indo into a gride style view  ;D

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #4 on: July 05, 2009, 04:57:41 AM »
yup its working now nicely done. Have to admit picture looks much better with vlc then web divx player.


Current issues with me is.
- I have real folder inside i have each movie with different folder i have to add controls to each folder thats too much files.
- Gotta figure out a way to have the controls in one location and play movies. Possibly add a frame for vlc that shows on each page i guess.
- Second can't fastword the movie - may theres a way to implement this.

For example i have real folder for TV Shows in HFS - i added the controls.


- In my real folder i have each show folder, i have to add controls to each thats too many files.


something like this might work i think
http://vlc.revolunet.com/free.html

http://vlc.revolunet.com/
« Last Edit: July 05, 2009, 12:31:52 PM by slasherx »

Offline TSG

  • Operator
  • Insane poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Video Support in HFS using VLC ready
« Reply #5 on: July 05, 2009, 01:24:00 PM »
Code: [Select]
[sym-vlc]
<script language="javascript" src="/VLCobject.js"> </script>
<script language="javascript" src="/VLCcontrols.js"> </script>
<script language="javascript">
   var vlc_controls = null;

   function init() {
       myvlc = new VLCObject("mymovie", "600", "350");
       myvlc.write("vlccontent");
       vlc_controls = new VLCcontrols(myvlc);
       vlc_controls.options.set("ffmpeg-pp-q", 6);
    }
</script>

Try this, the '/' indicates the root of the file system. Should fix your problem there.

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #6 on: July 05, 2009, 05:02:40 PM »
Code: [Select]
[sym-vlc]
<script language="javascript" src="/VLCobject.js"> </script>
<script language="javascript" src="/VLCcontrols.js"> </script>
<script language="javascript">
   var vlc_controls = null;

   function init() {
       myvlc = new VLCObject("mymovie", "600", "350");
       myvlc.write("vlccontent");
       vlc_controls = new VLCcontrols(myvlc);
       vlc_controls.options.set("ffmpeg-pp-q", 6);
    }
</script>

Try this, the '/' indicates the root of the file system. Should fix your problem there.



or you can type the full url to js files like this

find  <script language="javascript" src="http://your-hfs.com/javascript/ExternalLibLoader.js"></script>

and and the rest should be looking like this

[sym-vlc]
<script language="javascript" src="http://your-hfs.com/javascript/VLCobject.js"> </script>
<script language="javascript" src="http://your-hfs.com/javascript/VLCcontrols.js"> </script>
<script language="javascript">
   var vlc_controls = null;

   function init() {   
       myvlc = new VLCObject("mymovie", "600", "350");
       myvlc.write("vlccontent");            
       vlc_controls = new VLCcontrols(myvlc);      
       vlc_controls.options.set("ffmpeg-pp-q", 6);
    }
</script>

add a folder into hfs call it javascript, and add the vlc  files into it, it should load the vlc controls from the full url now instead or local  ;D

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #7 on: July 05, 2009, 05:13:55 PM »
well it seems there is a problem with this, even when i use the full path to vlc js files the controler bar doesnt appear,

when i used the / for root the vlc player didn't show up, i really not sure how to fix this, as i only used 2 folders  :o not sure how to fix this sorry dude, it looks like you will need to copy the vlc controls into all the folders for now im not sure how to fix it  :-\



this should've worked :O

<script language="javascript" src="./ExternalLibLoader.js"></script>

or this

<script language="javascript" src="./javascript/ExternalLibLoader.js"></script>



« Last Edit: July 05, 2009, 05:27:57 PM by mysoogal »

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #8 on: July 06, 2009, 05:52:22 AM »
well it seems there is a problem with this, even when i use the full path to vlc js files the controler bar doesnt appear,

when i used the / for root the vlc player didn't show up, i really not sure how to fix this, as i only used 2 folders  :o not sure how to fix this sorry dude, it looks like you will need to copy the vlc controls into all the folders for now im not sure how to fix it  :-\



this should've worked :O

<script language="javascript" src="./ExternalLibLoader.js"></script>

or this

<script language="javascript" src="./javascript/ExternalLibLoader.js"></script>





Actually adding / worked.

it doesn't work if your url is http://localhost.....

if you use your lan/wan ip ex: 192.168.1.100 or the redirect ex: hfs.myftp.org  the video loads fine. Only place i have the vlc controls are in the same directory as hfs.exe. and in hfs root filesystem.

Video loads fine, play,stop,volume up&down works fine, full screen, the video timer and status doesn't work.
problem is the slider doesn't' work, but video plays. i'm guessing we need to add / to SimpleSlider.js but its not in tpl file.

i added the attachment of template file, and screenshot of error.


EDIT:


i added the following to template file, the slider error fixed and its working perfect in Internet Explorer, but not in firefox, it works in firefox if i add the controls to the folder of the videofile, but works fine in IE without it.

Code: [Select]
<script language="javascript" src="/SimpleSlider.js"> </script>
Scrolled download for updated files.

« Last Edit: July 06, 2009, 02:42:12 PM by slasherx »

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #9 on: July 06, 2009, 01:30:26 PM »
i got the video to play in both IE and Firefox.

Only issue is now

onces you play the video and want to click on second video it doesnt load the video have to refresh the page to do it.

i will upload the files in couple minutes doing more testing :D

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #10 on: July 06, 2009, 02:13:33 PM »
Ok so its working with both IE & FireFox.

Added the VLC controls and images folder in folder called js

js in same directory as hfs.exe and add js to hfs filesystem root.


Only problem is when switching to another video it doesn't load it. however refreshing the page and click the new video works.
hopefully someone can help with this issue.


attached new files.

Updated Files down below.
« Last Edit: July 06, 2009, 03:13:03 PM by slasherx »

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #11 on: July 06, 2009, 02:20:00 PM »
it works on ie and firefox

i also see the bar  ;)

but that issue about playing second video is a real problem  ??? refreshing page and picking new video to play only fix  :'(

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #12 on: July 06, 2009, 02:28:03 PM »
it works on ie and firefox

i also see the bar  ;)

but that issue about playing second video is a real problem  ??? refreshing page and picking new video to play only fix  :'(

i think might be a issue in one of java script files.

i'm gonna try to do a file compare with original ones.

btw i got the changed files here maybe you can find something
http://media.lscube.org/

Offline slasherx

  • Experienced poster
  • ***
  • Posts: 98
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #13 on: July 06, 2009, 02:38:46 PM »
Problem Solved :)

problem was in VLCcontrols.js

- btw did you notice for MKV files it shows timer as to how long the video is, is doesnt do that for avi  ::)

*Add JS folder to hfs.exe directory and to HFS filesystem root.
« Last Edit: July 06, 2009, 03:14:31 PM by slasherx »

Offline mysoogal

  • Tireless poster
  • ****
  • Posts: 127
    • View Profile
Re: Video Support in HFS using VLC ready
« Reply #14 on: July 06, 2009, 05:21:25 PM »
I'm glad you figured it out, i'm still messing around with some mootools scripts on hfs template  ;D

to be honest, i havn't looked very hard into what you did but it seems your issue has been fixed and happy to read it, so im sure it will help me and many other users  ;D


somebody has been reading my ubuntu threads for sure, ha i found this long time ago but never knew how to put it together nor what the hell it is really, this website has to much information and confusein me alot  :o http://lscube.org/

so what is it a php ? vlc streaming script ? something like that

this what i mean


Quote
The LScube - Libre Streaming, Libre Software, Libre Standards (formerly known as OMSP - Open Media Streaming Project) is a free/libre software project, supported by the Internet Media Group, that develops and maintains a suite of programs focused on multimedia streaming. We strive to fully support the IETF's standards for the real-time data transport over IP. The aim of the project is to provide open, free and interoperable solutions on a par with other proprietary streaming applications. All LScube software is released under Free Software licenses.

// about the timer, i believe you need a properly encode video to get the timer, some old avi mpg are not encoded right so no time stamp on them i think. modern encoded video have modern video container like mkv which vlc understands very well.

what the hell is  Libre Streaming, Libre Software, Libre Standards  ? how can i use when i dont understand what i need first  :D

anyways. i will be reading this thread again, since i also want to fix the issue you had, hfs and vlc is great with bittorrent haha u know what i mean. utorrent web interface  with hfs vlc ! ;D
« Last Edit: July 06, 2009, 05:37:22 PM by mysoogal »