Tracker: Feature Requests

5 [G2] Always display movie download link - ID: 1246628
Last Update: Settings changed ( ckdake )

Original forum thread at
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=31402


"I want my users to be able to download whatever
documents I put on my Gallery ; they can do so with
pictures and sounds, as every browser out there allows
the download of this type of resources. However, we
have absolutely no control over what browser plugin is
used by the client to view inline movies, hence we
cannot guarantee that he/she will be able to download,
or even visualize the movie.

I have users who cannot (or don't know how, or don't
want to) install a plugin. Since my gallery is setup
with ffmpeg for inline viewing, all they see is a
gallery page with nothing inside (sometimes with a
warning from the browser that it can't display some
parts of the page). And for people who can view the
movie, they often cannot download it (Quicktime's
default behavior prohibits saving streamed files). So,
I would like to have a way to download the movie, no
matter which setup is used."

So basically, the request is to have the "download
movie" link appear even if the movie is already
embedded in the page.


Tonton Fred ( tonton_fred ) - 2005-07-28 08:50

5

Open

None

Nobody/Anonymous

None

Gallery 2

Public


Comments ( 7 )

Date: 2007-08-15 20:26
Sender: macmeister


I think the title on this feature should be:
"Direct download link based on MIME or filetype"

Sounds to me to be a hack of the MIME module. Based on the filetype, we
should be able to have a direct download, when someone clicks the thumbnail
of the movie/pdf/doc/xls/ppt/etc., avoiding the extra page, requiring yet
another click to download.

I temporarily edited my album.tpl file to allow direct downloads when
clicking on the thumbnail by replacing line 93:

{else}

with:

{elseif $child.mimeType == 'application/pdf'}
{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}
{else}

I hope this helps others and can make its way into Gallery somehow...


Date: 2007-05-24 09:23
Sender: nobody

Logged In: NO

it is wonderful


Date: 2006-09-26 02:33
Sender: mdeegan

Logged In: YES
user_id=1248468

I agree that download links and embedded videos should not
be mutually exclusive, even if only to cater for the case
where the browser thinks the plugin can play the video, but
the plugin itself doesn't. Of course, there will be people
who will prefer embed-only or link-only as well...


Date: 2005-11-01 23:02
Sender: mylo78

Logged In: YES
user_id=1330854

This is a good feature to add. My PHP skills are not
tremendous as I've only just started with XML parsing in PHP
in late October 05. This sort of thing may be what I'm
looking to add to my site so perhaps I could help as well.

I'm more after being able to download files off gallery and
they will an archive - so the motivation is similar. If it
isn't, then at least I can learn this time around and then
start it later.


Date: 2005-10-25 15:55
Sender: zhangweiwuSourceForge.net Subscriber

Logged In: YES
user_id=769477

What andy_st makes a lot of sense on standard-complaince,
but not my real problem! You can let the <object> fall back
to a <noembed/a> link, which is pretty standard, the point
to make is many browsers think they understand <object> but
actually they don't. They think they can play the video but
they simply cannot! I don't only look for a
standard-complaint workaround, I am looking for a method to
stop being troubled by support requests.

Here is my case: on my Gallery2 site there are avi, wmv and
rmvb clips. I always wish to let the visitors download these
clips rather then include them in an <object> tag and call
for local player. Reasons:

* The users do wish to download the clips. I am tired time
after time teach users how to use each of his/her own player
to be able to save the clip.
* The general connection speed is not enough to play my
hi-resolution clips
* I am strongly encourage my users to use Firefox and later
found I am shooting my feet: Firefox always fail with this
or that clip.
* I am tired of supporting. Suppose the clip is in xvid, and
the user don't have proper decoder, and IF the clip is
downloaded, no problem, the user thinks "Oh, I cannot open
this file, but it's downloaded, so something must be wrong
with my player and I need to ask the person who uploaded the
clip". IF the clip is played in-browser and it failed, the
user thinks "Oh, I play other clips online without problem,
but this clip doesn't work ON THE WEBSITE, I must call for
website support" and I die on every phone call.

Put the question simple: is it possible for every clip,
offer user a download path rather then embed this clip in
<object> and stupidly expect the client browser can open it?!

Thank you for the hint from tonton_fred so that I will work
on photo.tpl and get this link ready on my site. Anyway this
is only my modification, wish the release version have this
feature.


Date: 2005-07-28 19:04
Sender: tonton_fred

Logged In: YES
user_id=1320027

The code works correctly, I just have a problem with the
design choice : I chose to embed my movies, but not all my
users have the right plug-in, so some of them cannot
visualize the movie in the browser. And since the download
link does not appear in this case, there is no way for them
to access the movie. What I would like is to embed the movie
and still show the link for people who cannot stream it. My
purpose is to allow anyone to see the movie, even if they
don't have the right plugin in their browser, they still can
download the movie.

I'm not sure if am clear enough, so you can see what I mean
here :
http://frederic.degand.net/gallery2/videotest/oc-s.mpg.html

I modified 'photo.tpl' and added a check : if itemTypeName
is 'film' then fallback procedure is invoked, displaying the
link. Of course, what you are suggesting (2 independent
checkboxes) would be much better : I would just have to
check both boxes to display the embedded movie AND the link.


Date: 2005-07-28 10:41
Sender: andy_stSourceForge.net SubscriberProject Admin

Logged In: YES
user_id=942712

To answer your request:
The current code should actually display the "Download
movie" link as a fallback. So you should already always see
a download movie link OR an embedded movie. You see the
embedded movie if you've got a plugin to display it, you see
the link otherwise.
If it doesn't work correctly, it's a bug.

What i thought you'd file here:
This should be an option:
2 independent checkboxes:
- Show movies,... embedded (bandwidth issue)
- Show download item link

We could add these options to the mime manager module or so.


Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
category_id deleted 2008-10-24 19:29 ckdake
summary Always display movie download link 2005-07-28 08:52 tonton_fred