rejetto forum

Tog 4.0.0 Window Login + Streaming Video Files

meph++ · 8 · 3797

0 Members and 1 Guest are viewing this topic.

Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Hello at all.. in particular That_Stevens_Guy
I think that ToG template is the best ever for both hfs for graphics that functionality..
I installed the version 4.0.0 and I noticed that there is no template for the login window as in 3.0.0, it's possible add it on 4.0.0 ?? would be the maximum.

Finally, to share video files in streamed am using "Unreal Media Server" ( http://www.umediaserver.net/umediaserver/download.html ) as streaming server, this works very well, adding media-links in hfs performs a redirect to the streaming serves that listen to another port (default is 5119) in same pc.

es.
HFS  http://192.168.0.1/media/video.lnk (contain link mms://TCP:192.168.0.1:5119/media/video.avi)
redirect to:
Unreal Media Server  mms://TCP:192.168.0.1:5119/media/video.avi

and play all video with windows media player.

It's possible create under real folder in hfs an "Diff Template" that automatically redirect

es.
I have a file .avi named test.avi under folder video in hfs

this is a ipotetic link
http://192.168.0.1/video/test.avi
the diff template under folder video should tranform in:
mms://TCP:192.168.0.1:5119/video/test.avi
for play with windows media player and streamed with Unreal Media Server

Many Thanks 

« Last Edit: April 30, 2008, 04:06:30 PM by meph++ »


Offline Giant Eagle

  • Moderator
  • Tireless poster
  • *****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
The login screen was discared because of the instability it caused. Sometimes it worked, sometimes it did not.

It's possible create under real folder in hfs an "Diff Template" that automatically redirect

es.
I have a file .avi named test.avi under folder video in hfs

this is a ipotetic link
http://192.168.0.1/video/test.avi
the diff template under folder video should tranform in:
mms://TCP:192.168.0.1:5119/video/test.avi
for play with windows media player and streamed with Unreal Media Server

Sure it is, replace the [file] section inside the ToG 4.0 template with the code below

Code: [Select]
[file]
<tr>
<td class="iconCol">
<a href="%item-url%">
<div style="background:url('/~img_file') center center no-repeat">{.switch|%item-ext%|,|jpg,jpeg,png,bmp,tif,tiff|
<div style="background:url('previews_and_thumbnails/thumb-%item-name%.jpg') center center no-repeat"></div>|.}
</div>
</a>
</td>
<td class="fileCol{.if not|{.get|can access.}|protected.}">
<div class="fileInfo">
<a href="%item-url%" {.$target.}>%item-name%{.if|{.get|is new.}|&nbsp;-&nbsp;<b class="new">{.!lv_new.}</b>.}</a><br/>%comment%
<div class="info"><b>{.!lv_size.}:</b> %item-size%</div><div class="info"><b>{.!lv_hits.}:</b> %item-dl-count%</div><div class="age"><b>{.!lv_age.}:</b> %item-modified%</div>
</div>
</td>
<td class="quickCol">{.switch|%item-ext%|,|
jpg,jpeg,png,bmp,tif,tiff|
  {.if|{.filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg.}
    |{.$preview-btn.}
    |<div class="quickBtn disabled hide"><img src="/template/images/preview.gif" alt="" align="middle"/></div>
  .}
|mp3|{.$preview-btn.}|<div class="quickBtn disabled hide"></div>.}
<noscript><div class="quickBtn disabled"></div></noscript>
<div class="quickBtn1 {.if not|{.get|can access.}|disabled.}"><a href="{.if|{.%item-ext%=avi.}|mms://TCP:%host%:5119%encoded-folder%.}%item-url%" {.$target.}><img src="/template/images/download.gif" alt="DL" title="{.!lv_downloadTitle.}"/></a></div>
</td>
</tr>

The only thing that is changed is this:
Code: [Select]
<a href="{.if|{.%item-ext%=avi.}|mms://TCP:%host%:5119%encoded-folder%.}%item-url%" {.$target.}>


Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Hello Giant Eagle

I have change the code in the ToG 4 .tpl and all works fine..
in this mode ToG 4.0.0 work with a streaming video when click any .avi files, the link (THANKS TO YOU) is redirect to "Unreal Media Server" port and start media player... ENJOY... ;)

I am very glad for the speed of response, if you are in Italy and specifically in Sicily have a dinner paid

VeryVeryVeryVeryVery THANKS ;)


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
if you are in Italy and specifically in Sicily have a dinner paid

lol! Australia and Netherlands, both quite a way from Italy :D, but we do have a donation link on our website for this reason... its not really for a meal... but money that will go towards paying off our web hosting company ;).

We have quite a setup here... The time differences allow use to have almost 24hr forum support... I was in bed when Giant Eagle replied.

I've gotten over the first wave of university assignments, so I will check the forum more often now.


Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Hello boy
I will certainly paypal for a donation  ;) , but I wanted to ask the last thing.
you can enable the redirect of a link .avi on the button right as a preview for .mp3 and to see the icon.

With the new Giant Eagle mod code if I click on the name or icon to the file in hfs-tog4 start download (ok correct) and when I click the arrow (download) on the right start the redirect vs "Unreal Media Server".

At a glance, consider that .avi are equal to .mp3 (as a graphic ToG interface), but when you click on a .avi preview start redirect


last last.. 
how I add other extension es .mpg .mpeg .mov for redirect mode in this row:

<a href="{.if|{.%item-ext%=avi.}|mms://TCP:%host%:5119%encoded-folder%.}%item-url%" {.$target.}>

I have try to:

<a href="{.if|{.%item-ext%=avi,mpg,mpeg,mov.}|mms://TCP:%host%:5119%encoded-folder%.}%item-url%" {.$target.}>

but not work  ???


Very Thanks
« Last Edit: May 01, 2008, 08:10:27 AM by meph++ »


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
Quote
[file]
<tr>
<td class="iconCol">
   <a href="%item-url%">
   <div style="background:url('/~img_file') center center no-repeat">{.switch|%item-ext%|,|jpg,jpeg,png,bmp,tif,tiff|
   <div style="background:url('previews_and_thumbnails/thumb-%item-name%.jpg') center center no-repeat"></div>|.}
   </div>
   </a>
</td>
<td class="fileCol{.if not|{.get|can access.}|protected.}">
   <div class="fileInfo">
   <a href="%item-url%" {.$target.}>%item-name%{.if|{.get|is new.}|&nbsp;-&nbsp;<b class="new">{.!lv_new.}</b>.}</a><br/>%comment%
   <div class="info"><b>{.!lv_size.}:</b> %item-size%</div><div class="info"><b>{.!lv_hits.}:</b> %item-dl-count%</div><div class="age"><b>{.!lv_age.}:</b> %item-modified%</div>
   </div>
</td>
<td class="quickCol">{.switch|%item-ext%|,|
jpg,jpeg,png,bmp,tif,tiff|
  {.if|{.filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg.}
    |{.$preview-btn.}
    |<div class="quickBtn disabled hide"><img src="/template/images/preview.gif" alt="" align="middle"/></div>
  .}
|mp3|{.$preview-btn.}
|avi,mpg,mpeg,mov|<div class="quickBtn hide"><a href="mms://tcp:%host%:5119%encoded-folder%%item-url%"><img src="/template/images/preview.gif" alt="P" title="{.!lv_previewTitle.}" align="middle"/></a></div>
|<div class="quickBtn disabled hide"></div>.}
   <noscript><div class="quickBtn disabled"></div></noscript>
   <div class="quickBtn1 {.if not|{.get|can access.}|disabled.}"><a href="%item-url%" {.$target.}><img src="/template/images/download.gif" alt="DL" title="{.!lv_downloadTitle.}"/></a></div>
</td>
</tr>

As simple as that, the preview link will now activate the streaming, which is what you were after am i right?
The download button is a normal http download link as usual.
« Last Edit: May 01, 2008, 09:25:54 AM by That_Stevens_Guy »


Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Yes Stevens  :o  ALL PERFECT ALL WORK PERFECT :-* your response are very fast.. Thanks

As previous message since I can not offer a dinner, I donated PayPal with a contribution for your project RAWR-Designs.com

Thanks Giant Eagle & That_Stevens_Guy

Ancora Grazie (anche in italiano)
Agostino


Offline Giant Eagle

  • Moderator
  • Tireless poster
  • *****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
I'll take myself out for a dinner! ;D

Thank you very much for the donation :) i'ts really appreciated.