There doesn't appear to be any easy way to provide a download link for a video file. This is an option for regular file fields via the display formatter, but is lost when video module takes over.
There doesn't appear to be any easy way to provide a download link for a video file. This is an option for regular file fields via the display formatter, but is lost when video module takes over.
Comments
Comment #1
Jorrit commentedYou can override the template in your theme to add this kind of functionality.
Comment #2
Tsubo commentedYup. I could think of quite a few ways to achieve, but though it would be a nice addition to the module.
Comment #3
worldzfree commentedI'm rather new to Drupal and customizing it. Can someone provide a link to a site that would help me expose the download link for a video?
Comment #4
Jorrit commentedI don't know of a site, but you can start by copying the file
video-play-html5.tpl.phpto your theme directory and change it to your need. You need to be using the Video for everybody player to activate this file.Comment #5
worldzfree commentedThanks for the lead. So if I am using Video.JS I should copy the videojs.tpl.php file to my theme directory and change it to include download link?
Comment #6
hypertext200Yep, that'll do the magic.
Comment #7
stovpow commentedCan you tell me how to link to the original file? I can't find the code in the video module. I found the code in the player to link to the playing file, i.e. MP4 or FLV, but I would like to add a link to the original file instead.
Thanks!
Comment #8
hypertext200