Download link for movies

dr_cool

Joined: 2011-01-04
Posts: 1
Posted: Tue, 2011-01-04 02:01

Hi there,
is there a way to add "Download this item" option to a movie if ffmpeg is activated?
My movies are playing well inside the page but i need an option for download also (if possible)

Thanks in advance

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-01-04 03:32

add:

  <div class="gbBlock">
    <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}">
      {g->text text="Download %s in original format" arg1=$theme.sourceImage.itemTypeName.1}
    </a>
  </div>

somewhere in /gallery2/themes/your theme/templates/local/photo.tpl <- you may have to copy the original here

Also, ffmpeg has nothing to do with it.
Ffmpeg only extracts a frame to use as a thumb and detects dimensions, has nothing to do with playing the videos.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2