rejetto forum

i need help please !

mysoogal · 25 · 40691

0 Members and 1 Guest are viewing this topic.

Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
alright let me explain what i've done and what my problem is,

i'm using lightyhttp server that runs on port 80, i have this script dynamic_flv_player_v2.2.zip

which reads flv video and jpg image and displays it to player.php

ok so far, it seems to work, now i'm using HFS 2.3 as the encoding engine, with mencoder and ffmpeg to get image and flv etc. through the events

so everything seem to be working fine you can see here my project, http://cdn.hopto.org/player.php?p=1

so when you upload a video on hfs it puts the jpg and video into the htdoc and image folder where this php script reads the needed info to display, it works so far but, i have gone even more deep into this by adding vlc media player to the html

so hope your still following, so far i have vlc displayed on top.

right now im looking into player.php file which, this is where im stuck and really can't figure why its not understanding this,



Quote
$result .= "<li><TABLE border=0 cellspacing=0 cellpadding=0 align=center width=440><TR><TD valign=\"top\" align=\"left\" width=\"35%\"><a href=\"javascript:fullwin('$file')\"><img src=\"images/$file.jpg\" border=\"0\" align=\"absmiddle\" alt=\"File Name $file\"></a></td><TD valign=\"top\" align=\"left\" width=\"65%\"><B>Video:</B>&nbsp;<a href=\"javascript:fullwin('$file')\">$file</a><BR><BR><B>File Size:</B> <FONT COLOR=\"#1185D0\">$fsize</FONT><BR><BR>".@file_get_contents($_SERVER["DOCUMENT_ROOT"]."/demos/feeds/text/$file.txt")."</td></tr></table><hr>\n";
         $cnt++;


<a href=\"javascript:fullwin('$file')\">$file</a>

as you can see, from my understanding the $file is the outout link to file,

so i tried to change it into this


<a href="#" onclick="vlc_controls.play('$file')">$file</a>

i tried to replace this but, it just doesnt seem to work, so that is my problem, i need to have the $file with onclick javascript so when i click title or image to fire the vlc command to play video to send url into vlc to play click.

i believe it should play but doesnt work  ???

this is a complete tiny video sharing script.

here is the full source of player.php please tell me why its not picking up the vlc command

Code: [Select]
<?php
//////////////////////////////////////////////
// Pagination object library,
// copyright www.flvhosting.com
// Please do not show source
//////////////////////////////////////////////

/**
* set $items_per_page to how many 
* lines of products must be shown on page
*/
$items_per_page ;

require 'abstract.php' ;
require 'paginate.php' ;

//if ($_POST["url"])
//   $url = $_POST["url"];
//else if ($_GET["url"])
//   $url = $_GET["url"];
//else 
//   $url = 'ad.flv';

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Video Player </TITLE>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/ExternalLibLoader.js"></script>
 
<style>
 * {
 font-family:Trebuchet Ms, Arial;
 font-size:12px;
 }
 select, input {
border:1px solid silver;
 }
</style>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/VLCobject.js"> </script>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/VLCcontrols.js"> </script>
<script language="javascript">
var vlc_controls = null;

function init() {
// load plugin
myvlc = new VLCObject("mymovie", "600", "350");
// myvlc.addParam("MRL","http://code.revolunet.com/VLCjs/rambo.mpg");
myvlc.write("vlccontent");

// load controls
vlc_controls = new VLCcontrols(myvlc);

vlc_controls.onready = function () {
vlc_controls.play("http://images.apple.com/movies/wb/i_am_legend/i_am_legend-tlr1_h.480.mov");
}

}




</script>

<body onload="init()">

<style>
<!--
TD {
    FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; COLOR: #000000; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
P {
    FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; COLOR: #000000; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
DL {
    COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
LI {
    COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
UL {
    COLOR: #1185D0; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
H1 {
    COLOR: #1185D0; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 14pt; FONT-WEIGHT: bolder
}
A:link {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:visited {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:active {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:hover {
    COLOR: #1185D0; FONT-SIZE: 10pt; TEXT-DECORATION: underline; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-WEIGHT: bold
}
//-->
</style>
<script language="JavaScript">
<!--
function fullwin(targeturl){
window.open(targeturl,"", "scrollbars=no,resizable=yes,width=480,height=360")
}
//-->
</script>
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE border=0 cellspacing=0 cellpadding=0 align=center width="100%" HEIGHT="100%">
<TR>
<TD valign="top" align="center">
<div id="vlccontent">replaced by VLC controller</div>

<?   
static $exclude = array(
"." , "..", "player.php", "counter", "text", "index.php", "mwm_flmx_88_31.gif", "readme.txt", "abstract.php", "paginate.php", "ad.flv", " ", "320x240.swf", "listing_example.jpg", "flv.jpg", "popup.swf", "iframe.php", "flash_detection.swf", "alternate.html", "320x240.fla", "popup.fla", "alternate.gif", "mwm_flmx_88_31.gif", "images", "powered_by_php.jpg"
);

function dir_count() {
global $exclude ; $num = 0 ;
$handle=opendir(".");   
while ($file = readdir($handle)) {
if(in_array($file, $exclude)) continue;
else $num++;
}
closedir($handle);
return $num;
}

$props = array(
'itemsperpage'=> $items_per_page,
'file'=>basename($_SERVER[PHP_SELF]),
'delimiter'=>' <span style="font-size: 20pt; vertical-align: absmiddle;">&middot;</span> ',
'link_active' => 'font-weight: bold; font-family: Arial, Verdana; color: #1185D0; font-size: 12pt;',
'link_inactive' => 'font-weight: bold; font-family: Arial, Verdana; color: #FF0000; font-size: 12pt;'
);
$pm = paginate(dir_count(),'p',$props);
$range = $pm->get_range();

function directory(&$range) {

global $exclude; $cnt = 0;
$handle=opendir(".");   
     
while ($file = readdir($handle)) { 
$fsizebyte = filesize($file);
// Correctly parse the filesize
if ($fsizebyte > 1000) {
$fsizeraw = ($fsizebyte/1000);
$fsizefin = round($fsizeraw, 2);
$fsize = $fsizefin.' <FONT COLOR=#000000>kb</FONT>';
}
if ($fsizebyte > 1048576) {
$fsizeraw = ($fsizebyte/1048576);
$fsizefin = round($fsizeraw, 2);
$fsize = $fsizefin.' <B>mb</B>';
}
if ($fsizebyte < 1024) {
$fsize = $fsizebyte.' bytes';
}

if(in_array($file, $exclude)) {
continue;
}
else {
if(in_array($cnt, $range))
$result .= "<li><TABLE border=0 cellspacing=0 cellpadding=0 align=center width=440><TR><TD valign=\"top\" align=\"left\" width=\"35%\"><a href=\"javascript:fullwin('$file')\"><img src=\"images/$file.jpg\" border=\"0\" align=\"absmiddle\" alt=\"File Name $file\"></a></td><TD valign=\"top\" align=\"left\" width=\"65%\"><B>Video:</B>&nbsp;<a href=\"javascript:fullwin('$file')\">$file</a><BR><BR><B>File Size:</B> <FONT COLOR=\"#1185D0\">$fsize</FONT><BR><BR>".@file_get_contents($_SERVER["DOCUMENT_ROOT"]."/demos/feeds/text/$file.txt")."</td></tr></table><hr>\n";
$cnt++;

     }   
    closedir($handle); 
return $result;   
}   

//javascript:fullwin('"$file')
?>
<TABLE border=0 cellspacing=0 cellpadding=0 align=center width=448>
<TR>
<TD valign="top" align="center"><BR>
<h1>Select A Movie Below</h1>
</tr></td>
<tr>
<TD valign="top" align="center">
<ol start="<?=($range[0]+1)?>">
<?   
echo directory($range);
?>
</ol>
<?=$pm->show();?>
<BR>
 
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<?php
//  echo '<pre>' ; 
//  print_r($range);
?>

the funny thing is, this fullwin allows the file to be downloaded like target url something like that i want to change this into vlc enabled onclick event  ???

please some php coder tell me why not working


thank you.

you can test hfs upload with this php script
http://cdn.hopto.org:8080/upload/


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
i find this,

<script language="JavaScript">
<!--
function fullwin(targeturl){ window.open(targeturl,"", "scrollbars=no,resizable=yes,width=480,height=360")
}
//-->
</script>

is it due to this thing ?  fullwin(targeturl ?


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
no no, im not using php against HFS  ;D

im just using the HFS.exe with mencoder ffmpeg to encode uploaded video and put into htdoc root, where php script reads info, that uses lightyhttp web server software, so its not using HFS php  ;D

im still stuck with this problem

i am using HFS 2.3 by the way :p



Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
 :'(

still not working cant understand this thing, always something doesn't go right  :-\

is there more scripts like these http://www.flvhosting.com/index.php?sc=25 ??

for hfs ?

i have encoded video and jpg, now just cant put it all together into a web format


Offline AvvA

  • Tireless poster
  • ****
    • Posts: 135
    • View Profile
assuming that the original script works, and you write exactly this in replacement :
<a href="#" onclick="vlc_controls.play('$file')">$file</a>
and regarding the syntax used in your quotes, i say you should try this :
<a href=\"#\" onclick=\"vlc_controls.play('$file')\">$file</a>

After I don't know VLC's command options so I can't tell more, but I find the syntax used in this script obscure, never seen so much \ ^^


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
assuming that the original script works, and you write exactly this in replacement :
<a href="#" onclick="vlc_controls.play('$file')">$file</a>
and regarding the syntax used in your quotes, i say you should try this :
<a href=\"#\" onclick=\"vlc_controls.play('$file')\">$file</a>

After I don't know VLC's command options so I can't tell more, but I find the syntax used in this script obscure, never seen so much \ ^^

thanks but i check error out it says, doesn't seem to be working  :'( yes it looks like this thing has been wrote in such weird way.  :'(

imagine that, everything else works, only this thing doesn't seem work :(
Quote
illegal character
http://cdn.hopto.org/player.php#
Line 1

on Firebug firefox console

thanks for helping


here is player

http://www.flvhosting.com/downloads/dynamicplayer/

if anybody interested on building video gallery combined with hfs upload and apache2 web server to serve php files or whatevr.


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
http://www.revolunet.com/labo/code/VLCcontrols

the vlc controls i use on my project.

maybe someone else will have better luck  :)


Offline AvvA

  • Tireless poster
  • ****
    • Posts: 135
    • View Profile
Sorry to be so short, but I just notice the call to VLC video, on the VLC commands page :
controls.play(uri); launch the movie in the plugin

So my first though is that you call the wrong thing, as $file seems to be the filename and not the uri, but as I can't check your server, I can't tell for sure. It would be easier if I (and others) can see the errors and what's already working. For now, server doesn't respond or do a 404 error.

I see that you just copy the examples in your php page, that means you do call all included files from the "originals" servers, it's a thing not to be done ^^
You'll have to copy each file near your php script that is called, and rewrite the call in it without uri, just the filename, as it will be in the same folder (or make a subfolder "include", and your calls like this : <script language="javascript" src="./include/ExternalLibLoader.js"></script> )




But, that way, and with all respect, if you have not a lot of knowledge in php, it takes less interest...
I mean, if you were PHP scripter, you can do a lot of things that would justify to do like you just try to, but if it's not the case, you just lose time to do something twisted and difficult for a newbie in PHP, instead of just including the VLC commands inside a HFS template.

Also people in here are interested in HFS things, here you ask for PHP/apache/lightserver things ^^
I just want to mean that you'll probably get more answer if you ask about how to include the VLC commands in a HFS template ;)

I'm on others things for now, i'll look further into templates later, as it is for me a free way to anything i'll sure do it, but for now no ^^
I'm sure that actuals addicts know how to do this ^^
As template like RAWR's one can show an image an propose action depending on the extension of the file.
So, the procedure should look like this :

- RAWR see a FLV video,
- it shows the miniature image with the same name,
- on click on it, it launches the VLC command (it should be better to propose more buttons, as not every one have VLC, and as people like me do not install such plugins.).

You just have to include the files for VLC (correctly, don't call them from the originals servers), and ask the HFS's templates lovers some help :)
In fact your PHP script reproduce the file listing done with HFS templates(and is not necssary, as HFS templates do the same), and add HTML/Javascript commands to propose and launch VLC. That, i'm sure HFS can handle, as Javascript is handled by the visitor's navigator.


Just my idea, after, you're free to persist in the PHP way ;)


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
 :) thanks for reply

aw  :o you made such big post lol how should i reply, firstly i know i can use the hfs template system to have the vlc player embed like in php and also have the onclick event enabled through the file section on hfs code, but the problem is that, there are to many things which are missing.

i have not seen any hfs template that supports a thumbs gallery that has pagination support in the php flv player script it has this support and thumbnail automatically linked to flv video plus title. this is the problem in hfs no samples which show how to load all images from folder into a css formated gallery that has support for title size,time etc. the RAWR's templates i believe one of them has something like this,

Quote
RAWR's see a FLV video,
- it shows the miniature image with the same name,
- on click on it, it launches the VLC command (it should be better to propose more buttons, as not every one have VLC, and as people like me do not install such plugins.).

but really it doesnt show the image in a gallery format and doesnt show image as in html src etc plus video link  :-\


Quote
So my first though is that you call the wrong thing, as $file


i see, but still isnt it the same thing calling file from local example, both ways should play since its requesting data from server and sends it to vlc player  ???

folder

Quote
<a href="#" onclick="vlc_controls.play('$file')">$file</a>

url

Quote
<a href="#" onclick="vlc_controls.play('http://blaaaa.com/videos/$file')">$file</a>


that is a shame you know, i use vlc player due to its large codec / audio support i really don't like flash player   :D i can stream alot of codecs with different audio through vlc player on html that is why i use it.

Quote
as not every one have VLC, and as people like me do not install such plugins.).

this image below is what i'm trying to achive by php or using the hfs template system but you see below the vlc player that is the gallery css script i used, thats what i mean when i say no samples showing how to get this type of css based layout of images with titles on hfs template. the RAWR template only shows image when mouse is hoving over link which is not really what i wanted

here is the html files css etc the whole html project for below picture if anybody wants to integrate or mess around with it.
http://www.megaupload.com/?d=QZIFO1HG



i dont know what to say more, it simply is hard to achive these things without good  experience  :-\


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
i found this  ;D

http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm

now if i can figure how hfs can load the images from folder into the gallery instead  :o


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
well it seems i got another php script to get thumbs alright

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

hehe

now the only problem is to get the flv location and title of video lol

like i said things never go alright  ;D

i'm really begging right now for some php coder to help me with this, i know its probably like 7 or 9 lines of code to get the flv location and use vlc onclick to play,

please if anybody is interested in helping me. do so whenever your having free time

thanks for reading, i will also share the php script html, etc and how it works.


Offline AvvA

  • Tireless poster
  • ****
    • Posts: 135
    • View Profile
Well :D

About the php possibilities, as I said, I agree with you it's more complex than HFS templates possibilities (I assume, as PHP is quite a big language). I just said that because if you need help on this, it's not the better place to ask, in fact, problem doesn't come from HFS, but from the php script you're using, so I think you could find more help/examples/scripts on php forums than in here.
It's totally out of HFS control  :P

Now with the HFS template, it perhaps doesn't already exist, but it's really achievable as HFS's template language is kind of acting like PHP :)
During the time someone HFS's template-able come to help you, you should try more PHP scripts, until you find one that works for you.

These kind of scripts are legions on the web, here 2 of them, I leave you with google and his friends to find others ^^
http://www.clip-share.com/product/demo/
http://www.phpmotion.com/


By the way, it's not just 8 or 9 lines, no offense but... it's a matter of been afraid of what will be your next request, if you request for this kind of things :)

this :
Code: [Select]
function buildimage(i){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0]
var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" onClick="return popuplinkfunc(this)">'
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'" title="'+galleryarray[i][0]+' ['+galleryarray[i][1]+']" />'
tempcontainer+='</a><br />'
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
return tempcontainer
}
should becomes :
Code: [Select]
function buildimage(i){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0]
var videofile = imagecompletepath.replace('.jpg',"");
var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" onClick="vlc_controls.play(videofile)">'
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'" title="'+galleryarray[i][0]+' ['+galleryarray[i][1]+']" />'
tempcontainer+='</a><br />'
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
return tempcontainer
}
var videofile = imagecompletepath.replace('.jpg',"");
The first change assume that your preview picture are the name.extension of the video file like this : rambo.avi.jpg

onClick="vlc_controls.play(videofile)"
The second change use the previously created variable to launch with the VLC command you gave us :)

I didn't test and I only change the onclick event behaviour, so remember to go to the page where they explain how to include the vlc's javascript file, and so on ^^


edit: about the url/folder thing, it's just a matter of telling the right location, even if it's on the same server, it doesn't act like windows shortcuts which search for the file if not at the location given :p

re-edit :S :
You said, that one of the problem was to find the correct .flv location... I hope you were kiding :P You must redirect all succefully encoded files and all miniatures.jpg to the folder that is browsed by this php-photoalbum script ;D
« Last Edit: June 28, 2009, 11:55:07 PM by AvvA »


Offline mysoogal

  • Tireless poster
  • ****
    • Posts: 127
    • View Profile
i aleady done this , issue is still at large  :-\


Quote
function buildimage(i){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[0] : imagepath+galleryarray[0]
var videofile = imagecompletepath.replace('.jpg',"");
var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" onClick="vlc_controls.play(videofile)">'
tempcontainer+='<img src="'+imagepath+galleryarray[0]+'" title="'+galleryarray[0]+' ['+galleryarray[1]+']" />'
tempcontainer+='</a><br />'
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
return tempcontainer
}


i changed the php script that displays the jpg so it also reads the .flv extension,

Quote
<?
Header("content-type: application/x-javascript");

function returnimages($dirname=".") {
   $pattern="\.(jpg|jpeg|png|gif|flv)$";
   $files = array();
   $curimage=0;
   if($handle = opendir($dirname)) {
       while(false !== ($file = readdir($handle))){
               if(eregi($pattern, $file)){
       $filedate=date ("M d, Y H:i:s", filemtime($file));
                 echo 'galleryarray[' . $curimage .']=["' . $file . '", "'.$filedate.'"];' . "\n";
                 $curimage++;
               }
       }

       closedir($handle);
   }
   return($files);
}

echo "var galleryarray=new Array();" . "\n";
returnimages();




?>



lets end the php ! talk giving me freaking headechz  :-\

so now about HFS template, how does one display images from folder in a gallery css formate  ??? has anybody developed a video gallery template for HFS ? :-\  or image gallery ?

oh no please i run away from those very very bad scripts, phpmotion,vshare,vidiscript etc i used them all on ubuntu ! and all of them are boring they only encoding to flv1 which is flash thing, so i  run away from flash  ;D did i mention i really hate flash i believe its making the whole internet slow  :o, noo my laptop is fast 2 ghz 1 gb ram :D if your wondering haa


i guess i have to wait until some super hfs developer makes video gallery template for hfs !  :-\


thanks for your help anyway dude  ;D


Offline AvvA

  • Tireless poster
  • ****
    • Posts: 135
    • View Profile
Hum ^^ Okay :)
Sorry for the scripts, I was thinking that you could just take the gallery part and change the onclick behaviour, I didn't know they were not good :/

Just to know, have you put the Exemple part at the begining of the page we're modifying ? (exemple on this page : http://www.revolunet.com/labo/code/VLCcontrols)
Code: [Select]
<script type="text/javascript" src="VLCobject.js"></script>
    <script type="text/javascript" src="VLCcontrols.js"></script>
           
    <div id="vlccontent">
      This text is replaced by the VLC player.
    </div>

    <script type="text/javascript">
        var vlc_controls = null;
        function init() {
            // load basic VLCobject
            var vlcobject = new VLCObject("mymovie", "400", "200", "0.8.6");
            vlcobject.write("vlccontent");
            // add controls
            vlc_controls = new VLCcontrols(vlcobject, true);
            }
        window.onload = init();
    </script>
This should be before <script src="http://www.mysite.com/gallery/getpics.php" type="text/javascript"></script>, or just after :)

Of course, you have to change the references url in the dynamicdrive script so that they point to the current folder (and verify that the file you call is in the same folder.

Also, are the miniatures pictures and the videos files in the same folder as your php script ?

But ok, I stop about php, after all I'm the one that redirect you to HFS marvelous templates possibilities ^^
So I've got an idea, it seems to be quite cool to me :D
Why don't you change the title of your post, so that people get attract to your subject ?
Something like "VLC commands in an HFS template" or "Video gallery template with VLC commands", in all case something near what you need :p

As far as I have understood the "mod actual template" thing, it seems that you'll just have to ask for a part of template, a thing that will only work when your visitors are browsing the videos folder, and a thing that will only change the behaviour of how showing miniature pictures and how clicking on it will react :)
It should be a mini .tpl file that you'll have to put in the video folder.


Always a plaisure to help, but sorry about didn't really helping you succeed in what you wanted...
I Finish what i'm doing and I start messing with the template, I sincerely hope that someone will help you in the meantime, as it could take me few weeks ;D