[Dclug] [Ma-linux] How does one put a video into a web page?
Joseph S D Yao
jsdy at tux.org
Sat May 2 20:05:15 EDT 2009
On Sat, May 02, 2009 at 07:07:35PM -0400, Alan McConnell wrote:
...
> Hi, Joe, You and Keith Bennett have both suggested that I should
> change the extension. So I mv-ed alan-video to alan-video.vob,
> which is the extension that my original, processed by a M$ friend,
> had. Wikipedia says that .vob files are a sub-set of .mpegs.
> And of course I changed the index.html correspondingly.
>
> Still no luck.
>
> I reiterate: if I point my iceweasel(aka firefox, but has to be renamed
> because of a Debian spat) at the file on my home hard-drive, I see and
> hear the video nicely. Which leads me to believe that the syntax of
> my index.html ain't right.
...
So if you do File -> Open -> /var/web/html/alan-video.vob, then your
local video app pops up and plays it; but if your index.html page
contains:
<html>
<head>
...
</head>
<body ...>
...
<a href="alan-video.vob">Alan's Video</a>
...
</body>
</html>
and you click on the words "Alan's Video", then absolutely nothing
happens?
Try doing one of these, and then re-start your Apache httpd Web server:
In your /etc/httpd/conf/mime.types file [or similar], if you can't find
a line with the "vob" extension", add ONE of these two lines [without
the initial tab]:
video/dvd vob
video/mpeg vob
[you may have to look for a TypesConfig declaration to find the actual
location of this file];
OR add the extension to one of the already existing lines, above;
OR add ONE of the two following lines to your httpd.conf file [or the
appropriate file which it includes, depending on how your system lays
out such things]:
AddType video/dvd .vob
AddType video/mpeg .vob
I'm not sure whether the video/dvd MIME type will do anything for you
without a defined helper app. Google also serves up these possibilities
as MIME types:
video/x-divx
video/x-ms-vob
video/mp2t
but I don't think most browsers would support those. I could be wrong.
I'm pretty sure that the AddType will add the file extension to the
video/mpeg definition in the TypesConfig file; but I don't remember if
I've ever done this - so if this works, also check that you can still
browse ".mpeg" or ".mpg" or ".mpe" files.
If that doesn't work, try pasting WITHOUT ALTERATION that particular
line of your HTML file with about three lines above and below it into
your response.
--
/*********************************************************************\
**
** Joe Yao jsdy at tux.org - Joseph S. D. Yao
**
\*********************************************************************/
More information about the Dclug
mailing list