I've had several complaints that users are having trouble downloading the (.mp4) videos on lullabot.com when they click on the download link. The problem is that the QuickTime plugin recognizes the download as a video and decides to play it in the browser. This is confusing for the user who has just clicked "download"... especially since they don't end up with the video in their download directory like they were hoping for.

Right clicking and selecting "download link..." also gives odd/unexpected behavior because of the http redirect (drupal_goto()). Usually they end up downloading a file called "download" that the system doesn't know how to open.

Another problem with the download redirects is that iTunes doesn't follow them. This means that if you want to track the downloads, you can't successfully provide a video-podcast that iTunes will recognize. It looks like the current solution to this is that video.module is not tracking downloads initiated through RSS feeds (it just serves out a direct Apache link to the files directory).

Okay... so some solutions:

1) Audio.module seems to have solved this download/tracking/redirect problem pretty nicely. I recommend taking a look at the download code in that module. You can find it around line 1400 here.

2) By sending header('Content-type: application/octet-stream'); (rather than 'Content-Type: '. $node->audio_file->filemime, as the audio module does it,) it's actually possible to force download of the file rather than inline display. You can see an example of this in the sIFR module: line 784 here.

Seems that by combining these two things, we could get a considerably better download system for video.module.

Comments

agilpwc’s picture

the audio module solution for downloading would only be good for videos hosted on your drupal server. If they were remotely hosted, it would defeat the purpose of remotely hosting the videos.

because the video would first be transferred to drupal, then spit out to the end user.

fax8’s picture

Yeah... the download link should only let the user download the file.
The user should not be able to play it.

I already started thinking about this problem and this is what I thought:
http://drupal.org/node/94158 - Send videos as attachment.

However I'm not sure what would be the best approach.

Any input appreciated.

Fabio

Ron5150’s picture

Download Other Formats is giving me a problem for all files listed.
When I hover over a file the link is something like;
http://www.DOMAIN.com/DUPAL/node/10/multidownload/aHR0cDov...
but when clicked it takes me to;
http://www.DOMAIN.com/DRUPAL/aHR0cDov...
which is a blank page ~ Page not found ---GRRRRR

This really puzzles me as I have a duplicate site, using the same settings, same setup and it works fine. The file drops the node/10/mulitdownload and plays the file with no issue.

Can anyone help me out here? Any, ANY suggestions? What am I missing???

hypertext200’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.