Well, the first place I would start is in an .htaccess file. See if
simply adding this line makes it work:
AddType mp4 video/mpeg
If your server is Apache, and if you are allowed to do these changes
in your hosting environment, then that one line in a plain-text file
called .htaccess (leading period/full stop incredibly important here)
in the same folder as your files, or in any folder “above” it in the
filesystem hierarchy will do everything you need.
If that doesn’t work for some reason, then you could attack it with
larger weapons.
In PHP, you would save the following in a plain text file and call it
mp4.php.
<?php
$base = dirname(__FILE__);
$file = trim(strip_tags($_GET['f']));
header('Content-type: video/mpeg');
header('Content-disposition: inline');
readfile($base . '/' . $file);
?>
Upload this file to your Resources folder on your server. It won’t
work locally unless you have enabled PHP on your Mac.
Then in your Freeway file, when you wanted to link to a video in this
format, you would manually write the URL yourself, like this:
Resources/mp4.php?f=myvid.mp4
.
Make sure that your video files are getting uploaded to the server –
I recommend using Upload Stuff or Extra Resources for this, or even
simpler, just make a scratch page and drag them on it.
Walter
On Feb 10, 2008, at 5:22 PM, Keith Martin wrote:
Walter, you said:
Your server needs to send Content-
type: video/mp4; along as a header before sending any data from an
mp4 file.
As the server apparently doesn’t do this, is it something that could
be set up by script in some way?
k
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options