Add download link for movie files

Would it be possible to change the code to add download links for movietype files (AVI/MPG etc)

ZenPhoto meets all the requirements I need for at gallery (and, I tried 5 or 6 yesterday, including all the "big" ones), except for the handling of movies.

For starters, it could just be a default icon (eg. a film-roll or something), and when clicked, would just make it possible for the user to download it.

I have looked at the PHP a little, and if someone could throw me a few pointers, I think I could make this function myself, so, if someone with insight into the codebase has a few minutes, I would be very grateful. (What I really need is to know where the actual file-scanning / committing to MySQL happens, I think I can handle the rest from there)

/Flyve

Comments

  • acrylian Administrator, Developer
    You could just use `<?php echo getUnprotectedImageURL(); ?>` which prints the link to the full movie (or image) within your albums folders.
    There is an solution for video download here, that will work in zenphoto 1.1.5, but not the nightly builds or the next version because of changes within zenphoto: http://www.zenphoto.org/support/topic.php?id=2663&replies=1#post-15852

    The current nightly builds include two different players for video playback as plugins nows (btw, both do not support avi or mpg). Both players itself have options for download, too. You would have to modify the player configuration within that plugins. Follow the links to the player's websites if you want to modify,
  • Have you considered adding native, download-link, support for AVI/MPG/WMV?

    I have no issues with not having an embedded player for those filetypes, but, my galleries have a fair amount of movies in them, and, besides not having download support for these files, ZenPhoto fulfills all my gallery requirements.

    I have looked at the code for 1.1.5, and I think it would be pretty easy to modify the code to show a direct download link, but, native support is always better :)
  • acrylian Administrator, Developer
    The reason we have flv as the "main type" is that this is the format most likely all systems can play, because the flash player is sort of preinstalled on every system.

    But we might indeed consider adding more formats. I will talk to my fellow developers about that.
Sign In or Register to comment.